From fecb3a7dbb06f80aae47047987cd0edcea23f611 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 30 Mar 2010 15:56:05 +0000 Subject: testing/lua-nixio: new aport General POSIX IO library for Lua http://dev.luci.freifunk-halle.net/nixio/doc/ --- testing/lua-nixio/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 testing/lua-nixio/APKBUILD (limited to 'testing') diff --git a/testing/lua-nixio/APKBUILD b/testing/lua-nixio/APKBUILD new file mode 100644 index 00000000..6e84e8c1 --- /dev/null +++ b/testing/lua-nixio/APKBUILD @@ -0,0 +1,34 @@ +# Maintainer: Natanael Copa +pkgname=lua-nixio +_name=nixio +pkgver=0.3 +pkgrel=0 +pkgdesc="General POSIX IO library for Lua" +url="http://dev.luci.freifunk-halle.net/nixio/doc/" +license="Apache" +makedepends="lua-dev openssl-dev" +depends="lua" +source="http://dev.luci.freifunk-halle.net/nixio/nixio-0.3.tar.bz2" + +_builddir="$srcdir"/$_name-$pkgver +build() { + cd "$_builddir" + make LUA_MODULEDIR="$pkgdir"/usr/share/lua/5.1 \ + LUA_LIBRARYDIR="$pkgdir"/usr/lib/lua/5.1 \ + CFLAGS="$CFLAGS" +} + +package() { + cd "$_builddir" + install -d "$pkgdir"/usr/share/lua/5.1 \ + "$pkgdir"/usr/lib/lua/5.1 + # The makefiles put the LDFLAGS to early, we trick them to the end + # by override LINK and NIXIO_LDFLAGS_POST + make LUA_MODULEDIR="$pkgdir"/usr/share/lua/5.1 \ + LUA_LIBRARYDIR="$pkgdir"/usr/lib/lua/5.1 \ + LINK="$CC" \ + NIXIO_LDFLAGS_POST="-lcrypto $LDFLAGS" \ + install +} + +md5sums="7fa6a989cd2644347d969cb6e3a5c186 nixio-0.3.tar.bz2" -- cgit v1.2.3