aboutsummaryrefslogtreecommitdiffstats
path: root/main/acf-lib/APKBUILD
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2016-01-18 17:19:00 +0000
committerTed Trask <ttrask01@yahoo.com>2016-01-18 17:19:00 +0000
commit108cd1ee400a9114b4c1c064eb394701660646e1 (patch)
treec9d3bcd3016b63090038243be39cfd0f53af52d3 /main/acf-lib/APKBUILD
parent084bab18c5d4bf515d8830882e895b6c41ba5b2d (diff)
downloadaports-108cd1ee400a9114b4c1c064eb394701660646e1.tar.bz2
aports-108cd1ee400a9114b4c1c064eb394701660646e1.tar.xz
main/acf-lib: upgrade to 0.9.0
Diffstat (limited to 'main/acf-lib/APKBUILD')
-rw-r--r--main/acf-lib/APKBUILD28
1 files changed, 23 insertions, 5 deletions
diff --git a/main/acf-lib/APKBUILD b/main/acf-lib/APKBUILD
index d8cd888e0d..ad875a6351 100644
--- a/main/acf-lib/APKBUILD
+++ b/main/acf-lib/APKBUILD
@@ -2,22 +2,40 @@
# Maintainer: Ted Trask <ttrask01@yahoo.com>
_luaversions="5.1 5.2"
pkgname=acf-lib
-pkgver=0.8.1
+pkgver=0.9.0
pkgrel=0
pkgdesc="Lua libraries for ACF"
url="http://git.alpinelinux.org/cgit/acf-lib"
arch="noarch"
license="GPL2"
depends="lua-subprocess"
+subpackages=""
+for _i in $_luaversions; do
+ subpackages="$subpackages acf-lib-lua$_i:split_${_i/./_}"
+done
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz"
package() {
+ mkdir -p "$pkgdir"
+ echo "package with pkgdir=$pkgdir"
cd "$srcdir/$pkgname-$pkgver"
for _i in $_luaversions; do
sed "s~luadir=.*~luadir=\${prefix}/share/lua/$_i/acf~" -i config.mk
- make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir-lua$_i" install
done
}
-md5sums="fe51c8849e501908b3768228d59f8828 acf-lib-0.8.1.tar.xz"
-sha256sums="123f7bdb386c6dd0428b347c34132f63ea62e753e093a6187294b71cdbfd169f acf-lib-0.8.1.tar.xz"
-sha512sums="059c802c3fc2a0ab0f50e443b5c326cb5735f08b260c87e7ec7d047b027424bca5983781392a8f50c2c27df89e9ef56d3d30c2edb7b706cf9785d002d9c5a0e3 acf-lib-0.8.1.tar.xz"
+
+_split() {
+ local d= _ver=$1
+ pkgdesc="Lua $_ver libraries for ACF"
+ replaces="$pkgname"
+ depends=
+}
+
+for _i in $_luaversions; do
+ eval "split_${_i/./_}() { _split $_i; }"
+done
+
+md5sums="1d9927a6db573fd6ae8a28b02f08cb1e acf-lib-0.9.0.tar.xz"
+sha256sums="6643554b5e684871181c5c162039fb5f7dbfee8e246b48e0d1c731410700e6c8 acf-lib-0.9.0.tar.xz"
+sha512sums="04f59a5f8e949e93e104bbd283a3bab789df287e3da6e19caf18546b5fedb3d5458acdf0a1f8322cb28373dec1d81b6eae4033dc424a40371b022d2c1202c3fb acf-lib-0.9.0.tar.xz"