1 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Roman Kyrylych <roman@archlinux.org>
5 # Contributor: Damir Perisa <damir@archlinux.org>
9 _patchver=${_origver}-53
10 pkgver=${_patchver//-/.}
12 pkgdesc='Gives you the temperature of your hard drive by reading S.M.A.R.T. information'
13 url='https://savannah.nongnu.org/projects/hddtemp/'
16 source=("https://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${_origver}.tar.bz2"
17 "https://deb.debian.org/debian/pool/main/h/${pkgname}/${pkgname}_${_patchver}.diff.gz"
19 sha256sums=('618541584054093d53be8a2d9e81c97174f30f00af91cb8700a97e442d79ef5b'
20 '6f1ddaa9fbc90ea5c00b949e0981b78c5014e109de88804ae2512209091eae56'
21 '7f6fda4379630a21a8014d8f471eef6451fa15d73df32ec90a85d6a3f9d0c7d4')
23 backup=('etc/hddtemp.db')
26 cd "${srcdir}/${pkgname}-${_origver}"
28 patch -p1 -i "../${pkgname}_${_patchver}.diff"
32 cd "${srcdir}/${pkgname}-${_origver}"
37 --mandir=/usr/share/man \
38 --with-db-path="/etc/hddtemp.db"
44 cd "${srcdir}/${pkgname}-${_origver}"
46 make DESTDIR="${pkgdir}" install
48 install -Dm644 "../${pkgname}-${_origver}/debian/hddtemp.db" "${pkgdir}/etc/hddtemp.db"
49 install -Dm644 '../service' "${pkgdir}/usr/lib/systemd/system/hddtemp.service"