APKBUILD 1.3 KB
Newer Older
1 2
# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
3
_luaversion="5.2"
Natanael Copa's avatar
Natanael Copa committed
4
pkgname=acf-core
Ted Trask's avatar
Ted Trask committed
5 6
pkgver=0.18.9
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
7
pkgdesc="A web-based system administration interface framework"
8
url="http://git.alpinelinux.org/cgit/acf-core"
9
arch="noarch"
10
license="GPL2"
11
install="$pkgname.post-upgrade"
12 13 14
depends="acf-jquery acf-lib acf-skins haserl-lua$_luaversion lua$_luaversion
	lua$_luaversion-posix lua$_luaversion-md5 lua$_luaversion-json4
	lua$_luaversion-subprocess"
Ted Trask's avatar
Ted Trask committed
15
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz"
Natanael Copa's avatar
Natanael Copa committed
16

17
package() {
Natanael Copa's avatar
Natanael Copa committed
18
	cd "$srcdir/$pkgname-$pkgver"
19
	sed "s~luadir=.*~luadir=\${prefix}/share/lua/$_luaversion/acf~" -i config.mk \
20 21 22 23 24 25 26 27 28 29
		|| 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
30
	mkdir -p "$pkgdir"/etc/acf/skins
Natanael Copa's avatar
Natanael Copa committed
31
}
Ted Trask's avatar
Ted Trask committed
32 33 34
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"