blob: ee0696d6968ac3fa9df4f1f725370dda1aa77b7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
_luaversions="5.1 5.2"
pkgname=acf-lib
pkgver=0.9.0
pkgrel=1
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-lua$_i" install
done
}
_split() {
local d= _ver=$1
pkgdesc="Lua $_ver libraries for ACF"
install_if="lua$_ver $pkgname=$pkgver-r$pkgrel"
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"
|