mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
main/lua-curl: modernize abuild
This commit is contained in:
parent
f2a94ccf14
commit
94cc71da6f
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user