summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d97e6c274d4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Hec <hec@heccraft.com>
+_reponame=void-runit
+pkgname=cryptsetup-void-runit
+pkgver=1.0.r355.42ca737
+pkgrel=1
+pkgdesc="runit stage1 script for cryptsetup, ripped straight from Void Linux"
+arch=('any')
+url="https://voidlinux.org"
+license=('BSD')
+depends=('sh' 'awk' 'runit-rc' 'cryptsetup')
+makedepends=('git')
+provides=('cryptsetup-runit')
+conflicts=('cryptsetup-runit')
+source=("git+https://github.com/void-linux/void-runit"
+ "cryptsetup")
+sha256sums=('SKIP'
+'e58cac4e8e8b7de0f71827b4a011337be1869330097d2829f9ea8bbe3568f1cc'
+)
+
+pkgver() {
+ cd ${_reponame}
+ printf "1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ mkdir "$pkgdir"/usr/lib/rc/sv.d/ -p
+ mkdir "$pkgdir"/etc/rc/sysinit/ -p
+ mkdir "$pkgdir"/etc/rc/shutdown/ -p
+ mkdir "$pkgdir"/etc/runit -p
+ install -Dm755 $srcdir/cryptsetup "$pkgdir"/usr/lib/rc/sv.d/cryptsetup
+ ln -s /usr/lib/rc/sv.d/cryptsetup "$pkgdir"/etc/rc/sysinit/34-cryptsetup
+ ln -s /usr/lib/rc/sv.d/cryptsetup "$pkgdir"/etc/rc/shutdown/65-cryptsetup
+ install -Dm644 $_reponame/crypt.awk "$pkgdir"/etc/runit/crypt.awk
+}