# Contributor: Ted Trask # Maintainer: Ted Trask _luaversion="5.2" pkgname=acf-core pkgver=0.18.6 pkgrel=0 pkgdesc="A web-based system administration interface framework" url="http://git.alpinelinux.org/cgit/acf-core" arch="noarch" license="GPL-2" 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="df99edc9dacbef858870b41b5873879a acf-core-0.18.6.tar.xz" sha256sums="4e2a146a436cb7062878852fd188d0c87daf2d72a4ea135a035471a02a3a7b75 acf-core-0.18.6.tar.xz" sha512sums="2b538cf51a5552d4e1a6bad37f3b0566180f62f66c3a1a12cde6fcf6df597abc247dbb50dc0ddb98a9b71465dfb05b4288c47a238927d6746a63dd5c758bef34 acf-core-0.18.6.tar.xz"