diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-11 19:58:03 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-11 19:58:03 +0000 |
commit | 4cefa5373fbd8f8587d2b3b717e2901cb641a284 (patch) | |
tree | 8f5e24dc4997fe27d66d499b7c47cdff92adcd79 | |
parent | f810fe0c4dd9fb532c53c15837854fc6880ba553 (diff) | |
download | aports-4cefa5373fbd8f8587d2b3b717e2901cb641a284.tar.bz2 aports-4cefa5373fbd8f8587d2b3b717e2901cb641a284.tar.xz |
testing/tolua++: new aport
a tool to integrate C/C++ code with Lua
http://www.codenix.com/~tolua/
-rw-r--r-- | testing/tolua++/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/tolua++/APKBUILD b/testing/tolua++/APKBUILD new file mode 100644 index 000000000..4fffbcce2 --- /dev/null +++ b/testing/tolua++/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: +# Maintainer: +pkgname=tolua++ +pkgver=1.0.93 +pkgrel=0 +pkgdesc="a tool to integrate C/C++ code with Lua" +url="http://www.codenix.com/~tolua/" +license="MIT" +depends= +makedepends="lua-dev" +install= +subpackages= +source="http://www.codenix.com/~tolua/tolua++-$pkgver.tar.bz2" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" +} + +build() { + cd "$_builddir"/src + # see http://lua-users.org/wiki/CompilingToluappWithoutScons + gcc -c lib/*.c -I../include + ar rcsv libtolua++.a *.o + gcc bin/tolua.c bin/toluabind.c -I../include -L. -llua -ltolua++ \ + -o tolua++ +} + +package() { + cd "$_builddir"/src + install -d "$pkgdir"/usr/lib/ "$pkgdir"/usr/bin "$pkgdir"/usr/include + install libtolua++.a "$pkgdir"/usr/lib/ + install tolua++ "$pkgdir"/usr/bin/ + install ../include/tolua++.h "$pkgdir"/usr/include/ +} + +md5sums="100aa6907b8108582080b37d79c0afd7 tolua++-1.0.93.tar.bz2" |