# Contributor: Ted Trask # Maintainer: Ted Trask _luaversion="5.2" pkgname=acf-core pkgver=0.18.10 pkgrel=1 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="a0362ceabe7c26aac8ee3cc37d7c1497 acf-core-0.18.10.tar.xz" sha256sums="e52a05cb93ae369a23e87da02eb68602f12df0a5d3302bdc38af17d849f6ef74 acf-core-0.18.10.tar.xz" sha512sums="f02605be47e97593b6f00b2292f487bc768f816605f7ba54663ae9d93b921c798ebfb2bc175d38b2ec7e02c7c51b20e38244956b85692c364b9ce0c160e5d48e acf-core-0.18.10.tar.xz"