void-packages/srcpkgs/hddtemp/template
Jürgen Buchmüller 0408ca1b8f
hddtemp: remove patch after use
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-04-23 06:40:36 +02:00

27 lines
925 B
Bash

# Template file for 'hddtemp'
pkgname=hddtemp
version=0.3.beta15
revision=3
wrksrc="hddtemp-${version/.b/-b}"
build_style=gnu-configure
configure_args="--with-db-path=/usr/share/hddtemp/hddtemp.db"
short_desc="Hard drive temperature monitoring utility"
maintainer="Georg S. <gescha@posteo.de>"
license="GPL-2.0-or-later"
homepage="https://savannah.nongnu.org/projects/hddtemp/"
distfiles="
${NONGNU_SITE}/hddtemp/hddtemp-${version/.b/-b}.tar.bz2
${DEBIAN_SITE}/main/h/hddtemp/hddtemp_${version/.b/-b}-53.diff.gz"
checksum="
618541584054093d53be8a2d9e81c97174f30f00af91cb8700a97e442d79ef5b
6f1ddaa9fbc90ea5c00b949e0981b78c5014e109de88804ae2512209091eae56"
pre_configure() {
patch -p1 -i ../hddtemp_${version/.b/-b}-53.diff
rm ../hddtemp_${version/.b/-b}-53.diff
sed -i 's|/etc/hddtemp.db|/usr/share/hddtemp/hddtemp.db|' doc/hddtemp.8
}
post_install() {
vinstall debian/hddtemp.db 644 usr/share/hddtemp
vsv hddtemp
}