# Maintainer: David P. # Contributor: Luke Shumaker # Maintainer (Artix): artoo # Contributor (Artix): williamh pkgbase=opentmpfiles pkgname=(opentmpfiles opentmpfiles-systemdcompat) pkgver=0.1.3 pkgrel=7 pkgdesc="A standalone utility to handle systemd-style tmpfiles.d files" arch=('any') url="https://github.com/OpenRC/opentmpfiles" license=('BSD2') backup=('etc/conf.d/opentmpfiles-dev' 'etc/conf.d/opentmpfiles-setup') makedepends=('git') validpgpkeys=('D57AEC44668E2E5073A440096E5416F430C46538') # William Hubbs source=("git+https://github.com/OpenRC/opentmpfiles#tag=${pkgver}?signed" 'opentmpfiles.hook') sha512sums=('SKIP' '8b3e4af592d5c81bc1f965cb2d70637180821f5cebd947e900f8cdbded66825a3e642857137a781cd443ed17df19b91cf3009a3a590f8e63fa490c74897a0707') package_opentmpfiles() { optdepends=('opentmpfiles-systemdcompat') cd "${srcdir}/${pkgname}" make bindir="/usr/bin" DESTDIR="${pkgdir}" install install -Dm644 license "${pkgdir}/usr/share/licenses/${pkgname}/license.txt" # OpenRC install -Dm755 openrc/opentmpfiles-dev.confd "$pkgdir"/etc/conf.d/opentmpfiles-dev install -Dm755 openrc/opentmpfiles-dev.initd "$pkgdir"/etc/init.d/opentmpfiles-dev install -Dm755 openrc/opentmpfiles-setup.confd "$pkgdir"/etc/conf.d/opentmpfiles-setup install -Dm755 openrc/opentmpfiles-setup.initd "$pkgdir"/etc/init.d/opentmpfiles-setup # Gentoo does this on post-install install -d "${pkgdir}"/etc/runlevels/{boot,sysinit} ln -sT "/etc/init.d/opentmpfiles-dev" "${pkgdir}/etc/runlevels/sysinit/opentmpfiles-dev" ln -sT "/etc/init.d/opentmpfiles-setup" "${pkgdir}/etc/runlevels/boot/opentmpfiles-setup" # pacman hooks (based on libre/systemd) install -Dm644 -t "$pkgdir"/usr/share/libalpm/hooks ../opentmpfiles.hook } package_opentmpfiles-systemdcompat() { pkgdesc='Compatibility wrapper for opentmpfiles providing the systemd-tmpfiles program' depends=('opentmpfiles') conflicts=('systemd-tools') install -d "$pkgdir"/usr/bin ln -s tmpfiles "$pkgdir"/usr/bin/systemd-tmpfiles }