diff options
Diffstat (limited to 'main/lua-stdlib')
-rw-r--r-- | main/lua-stdlib/APKBUILD | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/main/lua-stdlib/APKBUILD b/main/lua-stdlib/APKBUILD index 685b1d1c92..f9115674ef 100644 --- a/main/lua-stdlib/APKBUILD +++ b/main/lua-stdlib/APKBUILD @@ -1,29 +1,33 @@ # Maintainer: Natnae pkgname=lua-stdlib -pkgver=13 -pkgrel=1 +pkgver=24 +pkgrel=0 pkgdesc="Lua library of modules for common programming tasks" url="http://luaforge.net/projects/stdlib/" arch="noarch" license="MIT/X" depends= -makedepends= +makedepends="lua-dev" install= subpackages="$pkgname-doc" -source="http://luaforge.net/frs/download.php/4581/stdlib-13.tar.gz" +source="http://luaforge.net/frs/download.php/4847/lua-stdlib-24.zip" -_builddir="$srcdir"/stdlib +_builddir="$srcdir"/lua-stdlib-$pkgver _luashare=/usr/share/lua/5.1 build() { cd "$_builddir" + ./configure --prefix=/usr \ + --datadir="$_luashare" \ + || return 1 + make || return 1 } package() { cd "$_builddir" - install -d "$pkgdir"/$_luashare - install -m644 modules/*.lua "$pkgdir"/$_luashare/ - mkdir -p "$pkgdir"/usr/share/doc/$pkgname - install -m644 modules/*.html "$pkgdir"/usr/share/doc/$pkgname/ + make install DESTDIR="$pkgdir" || return 1 + mkdir -p "$pkgdir"/usr/share/doc/$pkgname || return 1 + cd "$_builddir"/src + cp -r files modules index.html "$pkgdir"/usr/share/doc/$pkgname/ } -md5sums="592cbfb622a0a9a7d8c6d7ca6657bc05 stdlib-13.tar.gz" +md5sums="f768ac3b793e8498e20906d19bf2ef48 lua-stdlib-24.zip" |