summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-09-07 06:06:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-09-09 06:39:55 +0000
commit33fd2f52602368c8a3252fd4df7eaca476596942 (patch)
treed2b6f2131abdd51dfc01aa2044e5dd67c5d48e21
parent91f750c8ce3c1893135355c2b5b01a9f2b617123 (diff)
downloadaports-33fd2f52602368c8a3252fd4df7eaca476596942.tar.bz2
aports-33fd2f52602368c8a3252fd4df7eaca476596942.tar.xz
testing/lua-curses: new aport
ncurses binding for Lua http://luaforge.net/projects/lcurses
-rw-r--r--testing/lua-curses/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/lua-curses/APKBUILD b/testing/lua-curses/APKBUILD
new file mode 100644
index 000000000..32173a214
--- /dev/null
+++ b/testing/lua-curses/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=lua-curses
+pkgver=7
+pkgrel=0
+pkgdesc="ncurses binding for Lua"
+url="http://luaforge.net/projects/lcurses"
+arch="all"
+license="BSD"
+depends=""
+makedepends="lua-dev ncurses-dev"
+install=""
+subpackages=
+source="http://luaforge.net/frs/download.php/4843/lcurses-$pkgver.tar.gz"
+
+_builddir="$srcdir"/lcurses-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/lua/*/*.*a
+}
+
+md5sums="5268b69548f113fa8205fd9dd86b89b3 lcurses-7.tar.gz"