diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-10-29 10:01:15 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-10-29 10:01:15 +0000 |
commit | 51a9b5a72a4ce768d6c175518c65ca4841406293 (patch) | |
tree | 6f17526b9406db6d2ec587f2e5d2a5d2827d6d2c /main/tolua++ | |
parent | 09ce1cb1a81343eada8bd3a2837360263f343ad6 (diff) | |
download | aports-51a9b5a72a4ce768d6c175518c65ca4841406293.tar.bz2 aports-51a9b5a72a4ce768d6c175518c65ca4841406293.tar.xz |
main/tolua++: moved from testing
Diffstat (limited to 'main/tolua++')
-rw-r--r-- | main/tolua++/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main/tolua++/APKBUILD b/main/tolua++/APKBUILD new file mode 100644 index 0000000000..4fffbcce22 --- /dev/null +++ b/main/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" |