needrestart/PKGBUILD
Thomas Weißschuh 6f308731fe update to 3.9
2025-03-27 23:01:49 +01:00

47 lines
1.3 KiB
Bash

# Maintainer: Thomas Weißschuh <aur t-8ch de>
pkgname=needrestart
url=https://github.com/liske/needrestart
pkgdesc='Restart daemons after library updates.'
pkgver=3.9
pkgrel=1
source=("needrestart-${pkgver}.tar.gz::https://github.com/liske/needrestart/archive/v${pkgver}.tar.gz"
'needrestart.hook'
)
sha256sums=('709f4ac9e87483fc7cb1887c5720f671e1f9a509ad92b99a5dc6bb3189592cda'
'e5c6696a281f5445a3b7e2b7d1055f9189a2c39d4940721aa0c2718780f15f63')
arch=(any)
license=('GPL-2.0-or-later')
options=(!emptydirs)
depends=(perl-module-find
perl-term-readkey
perl-proc-processtable
perl-sort-naturally
perl-module-scandeps
perl-libintl-perl
)
optdepends=(
'iucode-tool: for outdated microcode detection'
)
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
make
}
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i -e 's|/usr/sbin|/usr/bin|' Makefile
}
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
install -Dm444 "${srcdir}/needrestart.hook" \
"${pkgdir}/usr/share/libalpm/hooks/needrestart.hook"
}