diff options
Diffstat (limited to 'testing/lua-curses/APKBUILD')
-rw-r--r-- | testing/lua-curses/APKBUILD | 41 |
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" |