summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKevin MacMartin2015-06-10 00:37:47 -0400
committerKevin MacMartin2015-06-10 00:37:47 -0400
commite96fb12eb26a17278e100a9b9fdf65bd1eac17e5 (patch)
tree13d9b84dc02778061e2e39c7227651036347f9a7 /PKGBUILD
downloadaur-cjdns-git-sysvinit.tar.gz
Initial import into AUR 4
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..eb78918dc85
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Prurigro
+
+pkgname=cjdns-git-sysvinit
+pkgver=20140626.r12.dda687c
+pkgrel=1
+pkgdesc="Legacy sysvinit (rc.d/init.d) service for the cjdns-git package"
+url="https://github.com/prurigro/${pkgname}"
+license=('GPL2')
+arch=('any')
+depends=('cjdns-git' 'bash')
+makedepends=('git')
+source=("git://github.com/prurigro/${pkgname}.git#branch=master")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ printf "%s.r%s.%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ install -Dm644 ${pkgname}/cjdns "${pkgdir}"/etc/default/cjdns
+ install -Dm755 ${pkgname}/cjdns.sh "${pkgdir}"/usr/bin/cjdns.sh
+ install -Dm755 ${pkgname}/cjdns.rc.d "${pkgdir}"/etc/rc.d/cjdns
+}