diff options
Diffstat (limited to 'main/lua-posix/APKBUILD')
-rw-r--r-- | main/lua-posix/APKBUILD | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/main/lua-posix/APKBUILD b/main/lua-posix/APKBUILD index 14a99af687..88928ba522 100644 --- a/main/lua-posix/APKBUILD +++ b/main/lua-posix/APKBUILD @@ -1,26 +1,41 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lua-posix _name=luaposix -pkgver=5.1.11 +pkgver=5.1.14 pkgrel=0 pkgdesc="POSIX library for Lua" url="http://luaforge.net/projects/luaposix/" arch="all" license="MIT" depends="lua" -makedepends="lua-dev" -source="http://luaforge.net/frs/download.php/4813/luaposix-$pkgver.tar.gz" +makedepends="lua-dev perl ncurses-dev" +source="http://luaforge.net/frs/download.php/4848/luaposix-$pkgver.tar.gz" replaces="luaposix" +subpackages="curses" + +_builddir="$srcdir"/$_name-$pkgver +_lualib=/usr/lib/lua/5.1 +_luashare=/usr/share/lua/5.1 -_builddir="$srcdir"/$_name build() { cd "$_builddir" - make PREFIX=/usr || return 1 + ./configure --prefix=/usr \ + --libdir=$_lualib \ + --datadir=$_luashare \ + || return 1 + make || return 1 } package() { cd "$_builddir" - make PREFIX=/usr DESTDIR="$pkgdir" install + make DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/$_lualib/*.la || return 1 } -md5sums="edb76911dbdabe98dec49e3d8a126227 luaposix-5.1.11.tar.gz" +curses() { + pkgdesc="ncurses binding for Lua" + mkdir -p "$subpkgdir"/$_lualib "$subpkgdir"/$_luashare + mv "$pkgdir"/$_lualib/curses* "$subpkgdir"/$_lualib/ || return 1 + mv "$pkgdir"/$_luashare/curses* "$subpkgdir"/$_luashare/ || return 1 +} +md5sums="a06af926a87e8d5e7c5b99304e0371f1 luaposix-5.1.14.tar.gz" |