summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 7 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1cf8525b5d0..a12033ffc9b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = needrestart
pkgdesc = Restart daemons after library updates.
pkgver = 3.5
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/liske/needrestart
arch = any
license = GPL
diff --git a/PKGBUILD b/PKGBUILD
index 0be2e82b944..ffb33ae5bed 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=needrestart
url=https://github.com/liske/needrestart
pkgdesc='Restart daemons after library updates.'
pkgver=3.5
-pkgrel=1
+pkgrel=2
source=("needrestart-${pkgver}.tar.gz::https://github.com/liske/needrestart/archive/v${pkgver}.tar.gz")
arch=(any)
license=('GPL')
@@ -22,6 +22,8 @@ optdepends=(
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
make
}
@@ -32,7 +34,10 @@ prepare() {
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
make DESTDIR="${pkgdir}" install
+ find "$pkgdir" -type d -empty -delete
}
sha256sums=('e9453efde9a0ebaefa5cb3af241382203d14abcc7091bee1249b60039348597e')