blob: dfbb47fe4c665da1a08a56e4bd482a2bd0686628 (
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
|
# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
_luaversion="5.2"
pkgname=acf-core
pkgver=0.18.8
pkgrel=0
pkgdesc="A web-based system administration interface framework"
url="http://git.alpinelinux.org/cgit/acf-core"
arch="noarch"
license="GPL-2"
install="$pkgname.post-upgrade"
depends="acf-jquery acf-lib acf-skins haserl-lua$_luaversion lua$_luaversion
lua$_luaversion-posix lua$_luaversion-md5 lua$_luaversion-json4
lua$_luaversion-subprocess"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz"
package() {
cd "$srcdir/$pkgname-$pkgver"
sed "s~luadir=.*~luadir=\${prefix}/share/lua/$_luaversion/acf~" -i config.mk \
|| return 1
# fix shebang
sed -i -e "1s:#!/usr/bin/haserl :#!/usr/bin/haserl-lua$_luaversion :" \
www/cgi-bin/acf || return 1
sed -i -e "1s:#!/usr/bin/lua.*:#!/usr/bin/lua$_luaversion:" \
bin/acf-cli || return 1
make DESTDIR="$pkgdir" install || return 1
mkdir -p "$pkgdir"/etc/acf/skins
}
md5sums="1e9c0579eafb9c28fc7e873df1c47073 acf-core-0.18.8.tar.xz"
sha256sums="fdd19d211f35728b17807d39af699b2729aab0aa7923d9359cd861d650cedba5 acf-core-0.18.8.tar.xz"
sha512sums="77d813f0a51c3e50100955b9786f30590397f0391312ccfca726b3ae26685bad536cf4a2c77bf30811376b9f088ea38db2875c720b6625a63c011182e74b132a acf-core-0.18.8.tar.xz"
|