aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-alt-getopt/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/lua-alt-getopt/APKBUILD')
-rw-r--r--main/lua-alt-getopt/APKBUILD24
1 files changed, 18 insertions, 6 deletions
diff --git a/main/lua-alt-getopt/APKBUILD b/main/lua-alt-getopt/APKBUILD
index a40f3f5687..20d15fc81b 100644
--- a/main/lua-alt-getopt/APKBUILD
+++ b/main/lua-alt-getopt/APKBUILD
@@ -1,13 +1,13 @@
# Maintainer: Natanael Copa <ncopa@alpinlinux.org>
_luaversions="5.1 5.2 5.3"
pkgname=lua-alt-getopt
-pkgver=0.7.0
-pkgrel=6
+pkgver=0.7
+pkgrel=7
pkgdesc="Lua module for processing options similar to getopt_long(3)"
url="http://luaforge.net/projects/alt-getopt/"
arch="noarch"
license="MIT"
-depends="lua5.1-alt-getopt lua5.2-alt-getopt"
+depends=""
makedepends=
install=
subpackages=""
@@ -15,11 +15,18 @@ for _v in $_luaversions; do
makedepends="$makedepends lua$_v-dev"
subpackages="$subpackages lua$_v-alt-getopt:split_${_v/./_}"
done
-source="http://mova.org/~cheusov/pub/lua_alt_getopt/lua-alt-getopt-$pkgver.tar.gz"
+source="alt-getopt-$pkgver.tar.gz::https://github.com/LuaDist/alt-getopt/archive/$pkgver.tar.gz
+ lua5.2-compat.patch
+ "
-_builddir="$srcdir"/$pkgname-$pkgver
+_builddir="$srcdir"/alt-getopt-$pkgver
prepare() {
cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
}
build() {
@@ -53,4 +60,9 @@ _split() {
for _v in $_luaversions; do
eval "split_${_v/./_}() { _split $_v; }"
done
-md5sums="f504578b1287ea02759add231b972812 lua-alt-getopt-0.7.0.tar.gz"
+md5sums="6fb65337dda22614ad1bc633a813996e alt-getopt-0.7.tar.gz
+de4d4609ee6b07b7c79a6a958df0bdeb lua5.2-compat.patch"
+sha256sums="69ee2d386797087ba57ba48f7d1d4ed369793efde64341a2c9bbf7ff3408e222 alt-getopt-0.7.tar.gz
+5920af61a938cf56dd4cdcbf6500d113907ce016e86869f7638852269191db19 lua5.2-compat.patch"
+sha512sums="8e7d1a2686a320a47199a71d09da1d3fad51bfa086dd6b1a95414325a24c66c4bef9ac9dd1ec9d866248a3b292a47e6c12cef47e88ce79a7f99bc5eaea68afc7 alt-getopt-0.7.tar.gz
+9c4f44c811e1dd6164fb332bb95c23cff63f3347ee2e130b4bac08683a394cd3578425716a7cd49873ee35344d40414f03f5a30130c6a8fa4f94cd78cb0004f9 lua5.2-compat.patch"