summaryrefslogtreecommitdiffstats
path: root/main/lua-posix
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-09-27 06:21:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-09-27 08:38:26 +0000
commit230c3777579499822b97ed38496afd138eeced04 (patch)
tree407fab75611f9a4dfb2ff5a63adbf0371b1bf023 /main/lua-posix
parente699d6eba75263bced4c27fde15347e3ff919dcb (diff)
downloadaports-230c3777579499822b97ed38496afd138eeced04.tar.bz2
aports-230c3777579499822b97ed38496afd138eeced04.tar.xz
main/lua-posix: upgrade to 5.1.14
Diffstat (limited to 'main/lua-posix')
-rw-r--r--main/lua-posix/APKBUILD29
1 files changed, 22 insertions, 7 deletions
diff --git a/main/lua-posix/APKBUILD b/main/lua-posix/APKBUILD
index 14a99af68..88928ba52 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"