aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-stdlib
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-09-19 13:41:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-09-19 15:12:30 +0000
commitc062da781d413868316199a79ebe3b352e41abe0 (patch)
treeb7def141f4cec460148359ad63621ab2f15c2e9b /main/lua-stdlib
parent3b5c549856261d6798545616581fff71838cd91e (diff)
downloadaports-c062da781d413868316199a79ebe3b352e41abe0.tar.bz2
aports-c062da781d413868316199a79ebe3b352e41abe0.tar.xz
main/lua-stdlib: upgrade to 24
Diffstat (limited to 'main/lua-stdlib')
-rw-r--r--main/lua-stdlib/APKBUILD24
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"