aboutsummaryrefslogtreecommitdiffstats
path: root/main/acf-core/APKBUILD
blob: 9453f163c72eeb502d550ce5926b92a99bca8070 (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
# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
_luaversions="5.1 5.2"
pkgname=acf-core
pkgver=0.18.5
pkgrel=1
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 lua-posix lua-md5 lua-json4 lua-subprocess"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz"

package() {
	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
	done
	mkdir -p "$pkgdir"/etc/acf/skins
}
md5sums="0f097c3b40277f35d89fce7f482ac5f7  acf-core-0.18.5.tar.xz"
sha256sums="d5b132ac45d24b4a4d86a503ac2ad288314bc8d7b4cb6d0de051ecbef05abe57  acf-core-0.18.5.tar.xz"
sha512sums="9a0be9c9d6cd9a194900e3c25ff6be9286acbaf7030de8f72e20218f7f346ab2b587c55ecc65fa92507cff66cf796554323f869d838ecfb5d8b6bb88e65a122e  acf-core-0.18.5.tar.xz"