From 5f8abc6a5415f3ae22744fea3208952679a04b83 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 6 Apr 2015 12:18:22 +0000 Subject: main/lua-stringy: add lua 5.3 and use install_if --- main/lua-stringy/APKBUILD | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main') 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 # Maintainer: Natanael Copa -_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" -- cgit v1.2.3