[arch-commits] Commit in hddtemp/trunk (PKGBUILD)

Gaëtan Bisson bisson at archlinux.org
Mon Feb 24 20:01:58 UTC 2020


    Date: Monday, February 24, 2020 @ 20:01:58
  Author: bisson
Revision: 376159

implement FS#62777

Modified:
  hddtemp/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-24 19:58:07 UTC (rev 376158)
+++ PKGBUILD	2020-02-24 20:01:58 UTC (rev 376159)
@@ -8,7 +8,7 @@
 _origver=0.3-beta15
 _patchver=${_origver}-53
 pkgver=${_patchver//-/.}
-pkgrel=1
+pkgrel=2
 pkgdesc='Gives you the temperature of your hard drive by reading S.M.A.R.T. information'
 url='https://savannah.nongnu.org/projects/hddtemp/'
 license=('GPL')
@@ -20,6 +20,8 @@
             '6f1ddaa9fbc90ea5c00b949e0981b78c5014e109de88804ae2512209091eae56'
             '7f6fda4379630a21a8014d8f471eef6451fa15d73df32ec90a85d6a3f9d0c7d4')
 
+backup=('etc/hddtemp.db')
+
 prepare() {
 	cd "${srcdir}/${pkgname}-${_origver}"
 
@@ -33,7 +35,7 @@
 		--prefix=/usr \
 		--sbindir=/usr/bin \
 		--mandir=/usr/share/man \
-		--with-db-path="/usr/share/${pkgname}/hddtemp.db"
+		--with-db-path="/etc/hddtemp.db"
 
 	make
 }
@@ -43,6 +45,6 @@
 
 	make DESTDIR="${pkgdir}" install
 
-	install -Dm644 "../${pkgname}-${_origver}/debian/hddtemp.db" "${pkgdir}/usr/share/${pkgname}/hddtemp.db"
+	install -Dm644 "../${pkgname}-${_origver}/debian/hddtemp.db" "${pkgdir}/etc/hddtemp.db"
 	install -Dm644 '../service' "${pkgdir}/usr/lib/systemd/system/hddtemp.service"
 }



More information about the arch-commits mailing list