# Maintainer : David Phillips pkgname=initscripts-phillid-git pkgver=r11.a078a88 pkgrel=1 pkgdesc='Small collection of initscripts for Arch Linux' arch=('any') url='https://github.com/phillid/initscripts' license=('unknown') conflicts=('initscripts-phillid') depends=() # FIXME optdepends=() # FIXME backup=('etc/openrc/conf.d') source=("$pkgname::git+https://github.com/phillid/initscripts.git") sha512sums=('SKIP') pkgver() { cd "${srcdir}/${pkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "${pkgname}" make } package() { cd "${pkgname}" make DESTDIR="${pkgdir}" OPENRC_DIR="/etc/openrc" install # trick taken from openrc-arch-services-git cd "${pkgdir}" backup=("etc/openrc/conf.d/"*) }