aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-curl
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-05-14 12:13:55 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-05-14 12:16:57 +0200
commit94cc71da6f822e42b70257cebde421aec24b4abf (patch)
tree5b8d8ccc656326dd72a5e98ffd1c24c94f989a07 /main/lua-curl
parentf2a94ccf147a236e9240fe932f2f7a731c321eb1 (diff)
downloadaports-94cc71da6f822e42b70257cebde421aec24b4abf.tar.bz2
aports-94cc71da6f822e42b70257cebde421aec24b4abf.tar.xz
main/lua-curl: modernize abuild
Diffstat (limited to 'main/lua-curl')
-rw-r--r--main/lua-curl/APKBUILD9
1 files changed, 4 insertions, 5 deletions
diff --git a/main/lua-curl/APKBUILD b/main/lua-curl/APKBUILD
index 09bc935883..70e617f05e 100644
--- a/main/lua-curl/APKBUILD
+++ b/main/lua-curl/APKBUILD
@@ -1,5 +1,4 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-_luaversions="5.1 5.2 5.3"
pkgname=lua-curl
_pkgname=Lua-cURLv3
pkgver=0.3.7
@@ -8,22 +7,22 @@ pkgdesc="Lua bindings to cURL library"
url="https://github.com/Lua-cURL/Lua-cURLv3"
arch="all"
license="MIT"
-depends=""
makedepends="curl-dev"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/Lua-cURL/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+_luaversions="5.1 5.2 5.3"
for _v in $_luaversions; do
makedepends="$makedepends lua$_v-dev"
subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage"
done
prepare() {
- default_prepare || return 1
+ default_prepare
local lver; for lver in $_luaversions; do
- cp -r "$builddir" "$builddir-$lver" || return 1
+ cp -r "$builddir" "$builddir-$lver"
done
}
@@ -33,7 +32,7 @@ build() {
cd "$builddir-$lver"
echo LUA_IMPL=lua$lver >> .config
- make LUA_VERSION=$lver || return 1
+ make LUA_VERSION=$lver
done
}