db-move: moved d-spy from [testing] to [extra] (x86_64)
[arch-packages.git] / hddtemp / repos / extra-x86_64 / PKGBUILD
blob1ae684e76195898e74a5cf97373534b7332fd045
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>
7 pkgname=hddtemp
8 _origver=0.3-beta15
9 _patchver=${_origver}-53
10 pkgver=${_patchver//-/.}
11 pkgrel=3
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/'
14 license=('GPL')
15 arch=('x86_64')
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"
18         'service')
19 sha256sums=('618541584054093d53be8a2d9e81c97174f30f00af91cb8700a97e442d79ef5b'
20             '6f1ddaa9fbc90ea5c00b949e0981b78c5014e109de88804ae2512209091eae56'
21             '7f6fda4379630a21a8014d8f471eef6451fa15d73df32ec90a85d6a3f9d0c7d4')
23 backup=('etc/hddtemp.db')
25 prepare() {
26         cd "${srcdir}/${pkgname}-${_origver}"
28         patch -p1 -i "../${pkgname}_${_patchver}.diff"
31 build() {
32         cd "${srcdir}/${pkgname}-${_origver}"
34         ./configure \
35                 --prefix=/usr \
36                 --sbindir=/usr/bin \
37                 --mandir=/usr/share/man \
38                 --with-db-path="/etc/hddtemp.db"
40         make
43 package() {
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"