jobcore/opentmpfiles/PKGBUILD

47 lines
1.9 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=opentmpfiles
pkgdesc="Script written in pure POSIX sh to parse and apply tmpfiles.d style files like systemd - maintained by Eric Vidal at Obarun"
pkgver=0.3.1
pkgrel=04
url="https://git.obarun.org/obdev/opentmpfiles.git"
source=("${pkgname}::git+${url}#tag=v$pkgver" ## README.md carries additional licensing info for maintainer of the source code
"opentmpfiles.hook"
"README.md")
makedepends=('git')
build() {
cd $pkgname
./configure --bindir=/usr/bin
}
package() {
cd $pkgname
make DESTDIR="${pkgdir}" install
install -Dm 0644 ${srcdir}/opentmpfiles.hook ${pkgdir}/usr/share/libalpm/hooks/opentmpfiles.hook
install -Dm 0644 LICENSE ${pkgdir}/usr/share/${pkgname}/LICENSE
# Originally this was maintained by Gentoo who adopted systemd and terminated alternatives
# such as sysusers and tmpfiles so Eric Vidal (Obarun) adopted it and is now the keeper of the code
# If he abandons it as he may replace the script with his own in 66 obtmpfiles then we will
# carry the torch. There is no other difference between 3.1 and master
install -Dm 0644 $srcdir/README.md ${pkgdir}/usr/share/${pkgname}/README.md
ln -s /usr/bin/opentmpfiles.sh "${pkgdir}/usr/bin/tmpfiles" # for use by runit-rc
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('BSD 2-Clause')
sha256sums=(SKIP
1319fbe1d6fc8c413fb13252c6bac8ccaa1af31ed3269db7c4a3a7c7ed673639 # opentmpfiles.hook
6c6dce366ff934cefd4867ffc425d14e25d4c23088b254e3a6dd9795be5075a0) # README.md
## 658b7928e03646f1b263109f59721d397f010f99fd20fe0cf211ba745b6f74e4 opentmpfiles-0.3.1-04-x86_64.pkg.tar.lz