From 5ce892c5603191fe7d828dca9ce0a07704b81663 Mon Sep 17 00:00:00 2001 From: TBK Date: Tue, 10 Apr 2018 15:31:19 +0200 Subject: main/lua-stdlib: upgrade to 41.2.1, modernize --- main/lua-stdlib/APKBUILD | 24 ++++++++---------------- 1 file 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 - _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" -- cgit v1.2.3