blob: 798b3d0ac199e0865ad0cf5b3e05fc8bde16e452 (
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.20.1
pkgrel=1
pkgdesc="A web-based system administration interface framework"
url="http://git.alpinelinux.org/cgit/acf/acf-core"
arch="noarch"
license="GPL2"
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="f7293f1e90619bcbffa5f93b64bb4f18 acf-core-0.20.1.tar.xz"
sha256sums="f59b7b0f679575058dccdf9a8ee7c08782f94f4b9aaa740cb864f55e090221f7 acf-core-0.20.1.tar.xz"
sha512sums="328773ee415c4c914c1c31258d041d6df6df6fe3b3845dbda85782726dd18be245e7e6ca89111f76548b6a3270b81296a8c1928e19b4d63bfe6e9beabf2555ae acf-core-0.20.1.tar.xz"
|