aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-09-29 03:53:14 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-09-29 03:53:14 -0300
commit3dc272025dad44235f80a46e616831f8063d72b6 (patch)
treecbe468ab57d7305a45f50fd63f4532cdb0726cfd
parent96d7e555bc306dce276f0719c1949fdbf1f8e835 (diff)
downloadaports-3dc272025dad44235f80a46e616831f8063d72b6.tar.gz
aports-3dc272025dad44235f80a46e616831f8063d72b6.tar.bz2
aports-3dc272025dad44235f80a46e616831f8063d72b6.tar.xz
testing/lua-net-url: rebuild to fix BAD signature errors
-rw-r--r--testing/lua-net-url/APKBUILD44
1 files changed, 22 insertions, 22 deletions
diff --git a/testing/lua-net-url/APKBUILD b/testing/lua-net-url/APKBUILD
index c37a7b3433..f49569f15d 100644
--- a/testing/lua-net-url/APKBUILD
+++ b/testing/lua-net-url/APKBUILD
@@ -2,53 +2,53 @@
pkgname=lua-net-url
_rockname=${pkgname#lua-}
pkgver=0.9
-pkgrel=0
+pkgrel=1
pkgdesc="URL and Query string parser, builder, normalizer for Lua"
url="https://github.com/golgote/neturl"
license="MIT"
arch="noarch"
makedepends="luarocks"
-subpackages="${pkgname}-doc"
+subpackages="$pkgname-doc"
options="!check" #test dependencies not available
-source="${_rockname}-${pkgver}.tar.gz::https://github.com/golgote/neturl/archive/${pkgver}-1.tar.gz"
-builddir="${srcdir}/neturl-${pkgver}-1"
+source="$_rockname-$pkgver.tar.gz::https://github.com/golgote/neturl/archive/$pkgver-1.tar.gz"
+builddir="$srcdir/neturl-$pkgver-1"
_luaversions="5.1 5.2 5.3"
for _luaversion in $_luaversions; do
- makedepends="${makedepends} lua${_luaversion}-dev"
- subpackages="${subpackages} lua${_luaversion}-${_rockname}:_subpackage"
+ makedepends="$makedepends lua$_luaversion-dev"
+ subpackages="$subpackages lua$_luaversion-$_rockname:_subpackage"
done
build() {
- for _luaversion in ${_luaversions}; do
- msg "Building for Lua ${_luaversion}"
- "luarocks-${_luaversion}" \
+ for _luaversion in $_luaversions; do
+ msg "Building for Lua $_luaversion"
+ "luarocks-$_luaversion" \
CC="$CC" \
CFLAGS="$CFLAGS -fPIC" \
- LUA_INCDIR="$(pkg-config --variable=includedir "lua${_luaversion}")" \
- LUA_LIBDIR="$(pkg-config --variable=libdir "lua${_luaversion}")" \
- LUA_VERSION="${_luaversion}" \
- make --tree="./build-${_luaversion}" \
- "rockspec/${_rockname}-${pkgver}-"*".rockspec"
+ LUA_INCDIR="$(pkg-config --variable=includedir "lua$_luaversion")" \
+ LUA_LIBDIR="$(pkg-config --variable=libdir "lua$_luaversion")" \
+ LUA_VERSION="$_luaversion" \
+ make --tree="./build-$_luaversion" \
+ "rockspec/$_rockname-$pkgver-"*".rockspec"
done
}
package() {
- mkdir -p "${pkgdir}/usr/share/doc/${pkgname}/"
- cp -r "docs/" "${pkgdir}/usr/share/doc/${pkgname}/"
+ mkdir -p "$pkgdir/usr/share/doc/$pkgname/"
+ cp -r "docs/" "$pkgdir/usr/share/doc/$pkgname/"
}
_subpackage() {
_luaversion="${subpkgname%-${_rockname}}"
_luaversion="${_luaversion#lua*}"
- pkgdesc="${pkgdesc} - for Lua ${_luaversion}"
- depends="${depends} lua${_luaversion}"
- install_if="lua${_luaversion} ${pkgname}=${pkgver}-r${pkgrel}"
+ pkgdesc="$pkgdesc - for Lua $_luaversion"
+ depends="$depends lua$_luaversion"
+ install_if="lua$_luaversion $pkgname=$pkgver-r$pkgrel"
- for _luascript in "${builddir}/build-${_luaversion}/share/lua/${_luaversion}/${_rockname%-url}/"*.lua; do
+ for _luascript in "$builddir/build-$_luaversion/share/lua/$_luaversion/${_rockname%-url}/"*.lua; do
install -D -m 644 \
- -t "${subpkgdir}/usr/share/lua/${_luaversion}/${_rockname%-url}" \
- "${_luascript}"
+ -t "$subpkgdir/usr/share/lua/$_luaversion/${_rockname%-url}" \
+ "$_luascript"
done
}