diff options
-rw-r--r-- | main/lua-posix/APKBUILD (renamed from main/luaposix/APKBUILD) | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/main/luaposix/APKBUILD b/main/lua-posix/APKBUILD index 7b85aeafdf..bb90a0c86f 100644 --- a/main/luaposix/APKBUILD +++ b/main/lua-posix/APKBUILD @@ -1,17 +1,23 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> -pkgname=luaposix +pkgname=lua-posix +_name=luaposix pkgver=5.1.4 pkgrel=0 pkgdesc="POSIX library for Lua" url="http://luaforge.net/projects/luaposix/" license="MIT" -depends="uclibc" +depends="lua" makedepends="lua-dev" -source="http://luaforge.net/frs/download.php/3572/$pkgname-$pkgver.tar.gz" +source="http://luaforge.net/frs/download.php/3572/luaposix-$pkgver.tar.gz" +replaces="luaposix" build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$srcdir/$_name-$pkgver" make PREFIX=/usr || return 1 +} + +package() { + cd "$srcdir/$_name-$pkgver" make PREFIX=/usr DESTDIR="$pkgdir" install } |