blob: 4e10becb159f0a6ec40c84abb413bec489e91f40 (
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.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="95ab0e5f4fd86b3487bf81404dc83bca acf-core-0.20.0.tar.xz"
sha256sums="ff26bacae993e3521c891883b428a458271f1999e8d4f0eef8430285d64b2cfb acf-core-0.20.0.tar.xz"
sha512sums="5f6a095f620d95b90b9f820ed5dfdfb88479a6824e7500b556fee691cdb052d6d4b612404ff180bb0385a7cdaf1ceae76ac755155fa20ee1cdcd9dfa662a4758 acf-core-0.20.0.tar.xz"
|