summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-10-27 10:00:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-10-27 10:00:34 +0000
commit7116a2dbbca77f28246e6050f43e48041a901405 (patch)
tree99d647d09b05b8e560b501ca7795eda2a53364d9 /main
parent62818e2599b53602074b541ef87481623dd20eaa (diff)
downloadaports-7116a2dbbca77f28246e6050f43e48041a901405.tar.bz2
aports-7116a2dbbca77f28246e6050f43e48041a901405.tar.xz
main/lua-nixio: moved from testing
Diffstat (limited to 'main')
-rw-r--r--main/lua-nixio/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/main/lua-nixio/APKBUILD b/main/lua-nixio/APKBUILD
new file mode 100644
index 000000000..9a900dfb0
--- /dev/null
+++ b/main/lua-nixio/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=lua-nixio
+_name=nixio
+pkgver=0.3
+pkgrel=2
+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"