aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-06 12:18:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-06 12:18:22 +0000
commit5f8abc6a5415f3ae22744fea3208952679a04b83 (patch)
treef78f8cda245460db5d6a84572fcbc02e321d1ec1
parent8e0177312f1c027f0b388ed05f4f1a093c24e3d7 (diff)
downloadaports-5f8abc6a5415f3ae22744fea3208952679a04b83.tar.bz2
aports-5f8abc6a5415f3ae22744fea3208952679a04b83.tar.xz
main/lua-stringy: add lua 5.3 and use install_if
-rw-r--r--main/lua-stringy/APKBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/main/lua-stringy/APKBUILD b/main/lua-stringy/APKBUILD
index 81910ec6c4..0deabe3aad 100644
--- a/main/lua-stringy/APKBUILD
+++ b/main/lua-stringy/APKBUILD
@@ -1,10 +1,10 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-_luaversions="5.1 5.2"
+_luaversions="5.1 5.2 5.3"
pkgname=lua-stringy
pkgver=0.4
-pkgrel=3
+pkgrel=4
pkgdesc="Lua string utility library"
url="https://github.com/brentp/lua-projects/"
arch="all"
@@ -16,7 +16,6 @@ subpackages=""
source="lua-projects-$pkgver.tar.gz::https://github.com/brentp/lua-projects/archive/$pkgver.tar.gz"
for _v in $_luaversions; do
- depends="$depends lua$_v-stringy"
makedepends="$makedepends lua$_v-dev"
subpackages="$subpackages lua$_v-stringy:split_${_v/./_}"
done
@@ -54,8 +53,9 @@ package() {
}
_split() {
- local d=usr/lib/lua
- replaces="$pkgname"
+ local d=usr/lib/lua _ver=$1
+ pkgdesc="$pkgdesc for Lua $_ver"
+ install_if="lua$_ver $pkgname=$pkgver-r$pkgrel"
depends=
mkdir -p "$subpkgdir/$d" || return 1
mv "$pkgdir/$d/$1" "$subpkgdir/$d"