blob: 1ae0115b021ec8d098470d2e2433bf8a14f7b0d6 (
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.19.0
pkgrel=0
pkgdesc="A web-based system administration interface framework"
url="http://git.alpinelinux.org/cgit/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="0c4b4436a79b6e26d6ea495e06bc5b03 acf-core-0.19.0.tar.xz"
sha256sums="44e8a38aab70cd355aaeea80d435bde6c213ad08c7184b28f541e0885157c528 acf-core-0.19.0.tar.xz"
sha512sums="69fd58a9ba546ff43445e30bb614d88ad881665f2ba7b713373d487fd2c65b95443c31f80aa1cf44e6483e875dbd7626f5c3dfa3b7b9511c5b9374ba43986238 acf-core-0.19.0.tar.xz"
|