aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2018-04-10 15:31:19 +0200
committerTimo Teräs <timo.teras@iki.fi>2018-04-13 05:42:52 +0000
commit5ce892c5603191fe7d828dca9ce0a07704b81663 (patch)
tree4e6c85f8b7f3b7459aae37df154756780c0acb7f
parentc8bd77645ac5d34ac80c0b76da0d9582cb19f2ed (diff)
downloadaports-5ce892c5603191fe7d828dca9ce0a07704b81663.tar.bz2
aports-5ce892c5603191fe7d828dca9ce0a07704b81663.tar.xz
main/lua-stdlib: upgrade to 41.2.1, modernize
-rw-r--r--main/lua-stdlib/APKBUILD24
1 files changed, 8 insertions, 16 deletions
diff --git a/main/lua-stdlib/APKBUILD b/main/lua-stdlib/APKBUILD
index 9265c021dc..023dbf8ad5 100644
--- a/main/lua-stdlib/APKBUILD
+++ b/main/lua-stdlib/APKBUILD
@@ -1,23 +1,19 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-
_luaversions="5.1 5.2 5.3"
pkgname=lua-stdlib
-pkgver=41.2.0
+pkgver=41.2.1
pkgrel=0
pkgdesc="Lua library of modules for common programming tasks"
url="https://github.com/lua-stdlib/lua-stdlib"
arch="noarch"
license="MIT/X"
-depends=
makedepends="autoconf automake"
-install=
subpackages="$pkgname-doc"
for _v in $_luaversions; do
makedepends="$makedepends lua$_v lua$_v-dev"
subpackages="$subpackages lua$_v-stdlib:split_${_v/./_}"
done
source="$pkgname-$pkgver.tar.gz::https://github.com/lua-stdlib/lua-stdlib/archive/release-v$pkgver.tar.gz"
-
_sdir="$srcdir"/lua-stdlib-release-v$pkgver
prepare() {
@@ -27,9 +23,9 @@ prepare() {
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
- aclocal && autoconf && automake --add-missing || return 1
+ aclocal && autoconf && automake --add-missing
for _i in $_luaversions; do
- cp -r "$_sdir" "$srcdir"/build-$_i || return 1
+ cp -r "$_sdir" "$srcdir"/build-$_i
done
}
@@ -40,9 +36,8 @@ build() {
LUA=lua$_i LUA_INCLUDE=$(pkg-config lua$_i --cflags) \
./configure --prefix=/usr \
--libdir=/usr/lib/lua/$_i \
- --datadir=/usr/share/lua/$_i \
- || return 1
- make || return 1
+ --datadir=/usr/share/lua/$_i
+ make
done
}
@@ -50,8 +45,7 @@ package() {
cd "$_builddir"
for _i in $_luaversions; do
cd "$srcdir"/build-$_i
- make DESTDIR="$pkgdir" luadir="/usr/share/lua/$_i" install \
- || return 1
+ make DESTDIR="$pkgdir" luadir="/usr/share/lua/$_i" install
done
}
@@ -63,7 +57,7 @@ _split() {
for d in usr/lib/lua usr/share/lua; do
if [ -d "$pkgdir"/$d/$_ver ]; then
mkdir -p "$subpkgdir"/$d
- mv "$pkgdir"/$d/$_ver "$subpkgdir"/$d/ || return 1
+ mv "$pkgdir"/$d/$_ver "$subpkgdir"/$d/
fi
done
}
@@ -74,6 +68,4 @@ for _v in $_luaversions; do
done
-md5sums="5d99d87b95ca64f1e079289fe9e486ff lua-stdlib-41.2.0.tar.gz"
-sha256sums="c9d9d11dcd2e3e956e697f5455b5f62baadf233d8726d80514d0432273cc27e9 lua-stdlib-41.2.0.tar.gz"
-sha512sums="27ee578d845b70d28e6cdeefc2d0f9163724d2ef4b5dff69820564d7ef2a3f06184b537c5796bd730653bd28cae28bffa29a28cb256f93914b9a43c50aceb8fe lua-stdlib-41.2.0.tar.gz"
+sha512sums="8b0dc34fbaee68f5a8e0d22c253b513faa782a679b1adb7d79418469623f6ff921249641c630d69d8bb1eee59dfd5c7f1b8d2b02a517c8e21f3632880f3540cd lua-stdlib-41.2.1.tar.gz"