aboutsummaryrefslogtreecommitdiffstats
path: root/main/acf-core/APKBUILD
blob: 1a21e016b1fa8ded074dc6124384ab9fca084a79 (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.9
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="740157df00593c311652102dd3f98c85  acf-core-0.18.9.tar.xz"
sha256sums="e7cca1e88a6aa66ec1440b64734b99596dde8f1cf5d248ebc8626cec5f1b6adf  acf-core-0.18.9.tar.xz"
sha512sums="4f9fce1ede6590247a1d1a5ec8e222453ca00e8c5afa2b8753059141c492de518f97ca6ff2d7e0febc69400d7906129a69cb99858349542110b5492399dd781c  acf-core-0.18.9.tar.xz"