Commit 5f8abc6a authored by Natanael Copa's avatar Natanael Copa

main/lua-stringy: add lua 5.3 and use install_if

parent 8e017731
# 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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment