From b7de30427b75ea93978da85a70de59952d8363d7 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 12 Jan 2015 16:55:50 +0000 Subject: main/acf-lib: Temporary patch to install for both Lua 5.1 and 5.2 --- main/acf-lib/APKBUILD | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'main') diff --git a/main/acf-lib/APKBUILD b/main/acf-lib/APKBUILD index 82801a3c57..88cee03cc1 100644 --- a/main/acf-lib/APKBUILD +++ b/main/acf-lib/APKBUILD @@ -1,8 +1,9 @@ # Contributor: Ted Trask # Maintainer: Ted Trask +_luaversions="5.1 5.2" pkgname=acf-lib pkgver=0.7.2 -pkgrel=0 +pkgrel=1 pkgdesc="Lua libraries for ACF" url="http://git.alpinelinux.org/cgit/acf-lib" arch="noarch" @@ -12,7 +13,10 @@ source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz" package() { cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir" install + for _i in $_luaversions; do + sed "s~luadir=.*~luadir=\${prefix}/share/lua/$_i/acf~" -i config.mk + make DESTDIR="$pkgdir" install + done } md5sums="25fb1ecf484a76557cac5eb7839e0bc5 acf-lib-0.7.2.tar.xz" sha256sums="e62b5f103d06035016695b06fbcb95671abe07c3b998e44e9b0618321ecf1d16 acf-lib-0.7.2.tar.xz" -- cgit v1.2.3