blob: 9458ab62c1b1642222bb2b2da76da20b4956662f (
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
|
# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
_luaversion="5.2"
pkgname=acf-core
pkgver=0.21.3
pkgrel=0
pkgdesc="A web-based system administration interface framework"
url="https://git.alpinelinux.org/cgit/acf/acf-core"
arch="noarch"
license="GPL-2.0"
install="$pkgname.post-upgrade"
depends="acf-jquery acf-lib acf-skins haserl-lua$_luaversion lua$_luaversion
lua$_luaversion-posix lua$_luaversion-md5 lua-json4
lua$_luaversion-subprocess"
source="https://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
}
sha512sums="89537cceaa59b8150c451db3e07510d403503703a1d4782b8c8b79c860449946d365dfcecf852e9e6ff194ab9690b52f0c19e08c8b22f840bd16f02db42b0e16 acf-core-0.21.3.tar.xz"
|