summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorThomas Weißschuh2015-02-15 23:24:55 +0000
committerThomas Weißschuh2015-02-15 23:24:55 +0000
commit9d2eeb9f0dbe2c10c6708f23864ab02b268fba6c (patch)
treeb7a8553e52eacce5cd6fbd2b6b1bde7853e195a7 /PKGBUILD
downloadaur-9d2eeb9f0dbe2c10c6708f23864ab02b268fba6c.tar.gz
add needrestart
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..34bbe61a2bf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Thomas Weißschuh <thomas t-8ch.de>
+
+pkgname=needrestart
+url=https://github.com/liske/needrestart
+pkgdesc='Restart daemons after library updates.'
+pkgver=2.0
+pkgrel=1
+source=("needrestart-${pkgver}.tar.gz::https://github.com/liske/needrestart/archive/v${pkgver}.tar.gz")
+arch=(any)
+license=('GPL')
+options=(!emptydirs)
+depends=(perl-module-find
+ perl-term-readkey
+ perl-proc-processtable
+ perl-sort-naturally
+)
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make
+}
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i -e 's|/usr/sbin|/usr/bin|' Makefile
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
+
+sha256sums=('3626079004ad04a744e647a14ee5dc19b02fc306e9b790c530120ff509a348c9')