summaryrefslogtreecommitdiffstats
path: root/abs/extra/hddtemp/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-11-26 14:56:18 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-11-26 14:56:18 (GMT)
commit13a53b0255f00a0fdb3ac9c6724f4394da38457e (patch)
treebcad6420490ffffdc97de49c973cef5b5b8d55f0 /abs/extra/hddtemp/PKGBUILD
parentedb785c434860758abe8c0df08993785a24b89f5 (diff)
downloadlinhes_pkgbuild-13a53b0255f00a0fdb3ac9c6724f4394da38457e.zip
linhes_pkgbuild-13a53b0255f00a0fdb3ac9c6724f4394da38457e.tar.gz
linhes_pkgbuild-13a53b0255f00a0fdb3ac9c6724f4394da38457e.tar.bz2
hddtemp: updated from abs
Diffstat (limited to 'abs/extra/hddtemp/PKGBUILD')
-rw-r--r--abs/extra/hddtemp/PKGBUILD62
1 files changed, 37 insertions, 25 deletions
diff --git a/abs/extra/hddtemp/PKGBUILD b/abs/extra/hddtemp/PKGBUILD
index f43fb8f..94073ce 100644
--- a/abs/extra/hddtemp/PKGBUILD
+++ b/abs/extra/hddtemp/PKGBUILD
@@ -1,41 +1,53 @@
-# $Id: PKGBUILD 98707 2010-11-12 20:24:41Z ibiru $
-# Maintainer: Andrea Scarpino <bash@archlinux.it>
+# $Id: PKGBUILD 163630 2012-07-17 14:24:03Z bisson $
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+# Contributor: Ionut Biru <ibiru@archlinux.org>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Roman Kyrylych <roman@archlinux.org>
# Contributor: Damir Perisa <damir@archlinux.org>
pkgname=hddtemp
-pkgver=0.3.beta15.46
_origver=0.3-beta15
-_patchver=46
+_patchver=${_origver}-52
+pkgver=${_patchver//-/.}
pkgrel=1
pkgdesc="Gives you the temperature of your hard drive by reading S.M.A.R.T. information"
-arch=('i686' 'x86_64')
-url="http://www.guzu.net/linux/hddtemp.php"
+url='https://savannah.nongnu.org/projects/hddtemp/'
license=('GPL')
-depends=('glibc')
+arch=('i686' 'x86_64')
backup=('etc/conf.d/hddtemp')
-source=(http://www.guzu.net/files/hddtemp-${_origver}.tar.bz2
- http://ftp.debian.org/debian/pool/main/h/hddtemp/hddtemp_${_origver}-${_patchver}.diff.gz
- 'hddtemp' 'hddtemp.confd' 'hddtemp-0.3-beta15-reg-eip.patch')
-md5sums=('8b829339e1ae9df701684ec239021bb8'
- '040437845e28771c560b4bb40e41f933'
- 'b7ebb86dfeef3bc4577ed1040307e36b'
- 'fdca5c43900406f0be76534ef2a5a697'
- '526ef28549dd0da7e38d32cfc8523592')
+source=("http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${_origver}.tar.bz2"
+ "http://ftp.debian.org/debian/pool/main/h/${pkgname}/${pkgname}_${_patchver}.diff.gz"
+ 'rc.d'
+ 'conf.d'
+ 'service')
+sha1sums=('65393b0a4d9862c030c81702d95c1acd00da275b'
+ 'b9bcdd0537c1540e55e5056445b571ea61d5a4a3'
+ '71159486b1505ec6acfb7585e0d8fbe78afe54ec'
+ 'd45e3022f614dbf8904ecb1a3e702bb71fcaa808'
+ '501fcf4faf8b2689d010f9cbbf39f917211f611f')
+
options=('!libtool')
build() {
- cd "$srcdir/$pkgname-${_origver}"
+ cd "${srcdir}/${pkgname}-${_origver}"
+
+ patch -p1 -i "../${pkgname}_${_patchver}.diff"
+
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-db-path="/usr/share/${pkgname}/hddtemp.db"
+
+ make
+}
- patch -Np1 -i "$srcdir/${pkgname}_${_origver}-${_patchver}.diff"
- patch -Np1 -i "$srcdir/hddtemp-0.3-beta15-reg-eip.patch"
+package() {
+ cd "${srcdir}/${pkgname}-${_origver}"
- ./configure --prefix=/usr --mandir=/usr/share/man --with-db-path=/usr/share/$pkgname/hddtemp.db
- make
- make DESTDIR=$pkgdir install
+ make DESTDIR="${pkgdir}" install
- install -D -m644 "$srcdir/$pkgname-${_origver}/debian/hddtemp.db" \
- "$pkgdir/usr/share/${pkgname}/hddtemp.db"
- install -D -m644 "$srcdir/hddtemp.confd" "$pkgdir/etc/conf.d/hddtemp"
- install -D -m755 "$srcdir/hddtemp" "$pkgdir/etc/rc.d/hddtemp"
+ install -Dm644 "../${pkgname}-${_origver}/debian/hddtemp.db" "${pkgdir}/usr/share/${pkgname}/hddtemp.db"
+ install -Dm644 '../service' "${pkgdir}/usr/lib/systemd/system/hddtemp.service"
+ install -Dm644 '../conf.d' "${pkgdir}/etc/conf.d/hddtemp"
+ install -Dm755 '../rc.d' "${pkgdir}/etc/rc.d/hddtemp"
}