void-packages/srcpkgs/hddtemp/template

32 lines
984 B
Bash

# Template file for 'hddtemp'
pkgname=hddtemp
version=0.3.beta15
revision=3
build_style=gnu-configure
configure_args="--with-db-path=/usr/share/hddtemp/hddtemp.db"
hostmakedepends="gettext"
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"
skip_extraction="hddtemp_${version/.b/-b}-53.diff.gz"
post_extract() {
zcat ${XBPS_SRCDISTDIR}/${pkgname}-${version}/$skip_extraction |
patch -Np1 -F0
}
pre_configure() {
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
}