From 17d769825fef8d6594f9b0e65394be7a34cedcae Mon Sep 17 00:00:00 2001 From: Antonio Malcolm Date: Fri, 12 Feb 2016 01:35:49 -0800 Subject: [PATCH] New Package: tolua --- common/shlibs | 2 ++ srcpkgs/tolua-devel | 1 + srcpkgs/tolua/template | 26 ++++++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 120000 srcpkgs/tolua-devel create mode 100644 srcpkgs/tolua/template diff --git a/common/shlibs b/common/shlibs index 755a3f2eb0c..b7ad10c1d82 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2343,3 +2343,5 @@ libpodofo.so.0.9.3 podofo-0.9.3_1 libIrcUtil.so.3 libcommuni-3.4.0_1 libIrcCore.so.3 libcommuni-3.4.0_1 libIrcModel.so.3 libcommuni-3.4.0_1 +libtolua.so tolua-5.2.0_1 + diff --git a/srcpkgs/tolua-devel b/srcpkgs/tolua-devel new file mode 120000 index 00000000000..bf41ed74c71 --- /dev/null +++ b/srcpkgs/tolua-devel @@ -0,0 +1 @@ +tolua \ No newline at end of file diff --git a/srcpkgs/tolua/template b/srcpkgs/tolua/template new file mode 100644 index 00000000000..2382c202171 --- /dev/null +++ b/srcpkgs/tolua/template @@ -0,0 +1,26 @@ +# Template file for 'tolua' +pkgname=tolua +version=5.2.0 +revision=1 +build_style=cmake +hostmakedepends="pkg-config cmake" +makedepends="lua52-devel" +short_desc="A tool that greatly simplifies the integration of C/C++ code with Lua" +maintainer="Antonio Malcolm " +license="GPL-2" +homepage="https://github.com/LuaDist/tolua" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=121ae6b6e1fb86d064e5994be5ef43ee2e20d2602f40e6ba48fa9de867ffc3d5 + +shlib_provides="libtolua.so" + +CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.2 -fPIC" +nopie=yes + +tolua-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove "usr/include" + } +}