summaryrefslogtreecommitdiffstats
path: root/abs/core/sdparm
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-11-26 14:50:20 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-11-26 14:50:20 (GMT)
commit1aac1090f517acec0cb4f721a5b669bc2b411d02 (patch)
tree829298e6d1015a5da93e4528b7e2155b17babf6a /abs/core/sdparm
parent5d5a44bcf2183b2a8e0767b8be9fcf62b139dcff (diff)
downloadlinhes_pkgbuild-1aac1090f517acec0cb4f721a5b669bc2b411d02.zip
linhes_pkgbuild-1aac1090f517acec0cb4f721a5b669bc2b411d02.tar.gz
linhes_pkgbuild-1aac1090f517acec0cb4f721a5b669bc2b411d02.tar.bz2
sdparm: 1.07
Diffstat (limited to 'abs/core/sdparm')
-rw-r--r--abs/core/sdparm/PKGBUILD31
1 files changed, 21 insertions, 10 deletions
diff --git a/abs/core/sdparm/PKGBUILD b/abs/core/sdparm/PKGBUILD
index e0019e1..d983def 100644
--- a/abs/core/sdparm/PKGBUILD
+++ b/abs/core/sdparm/PKGBUILD
@@ -1,23 +1,34 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
-# Maintainer: Roman Kyrylych <Roman.Kyrylych@gmail.com>
+# $Id: PKGBUILD 148461 2012-02-01 12:06:03Z stephane $
+# Maintainer:
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: grimi@poczta.fm
pkgname=sdparm
-pkgver=1.05
+pkgver=1.07
pkgrel=1
pkgdesc="An utility similar to hdparm but for SCSI devices"
arch=('i686' 'x86_64')
url="http://sg.danny.cz/sg/sdparm.html"
-groups=('base')
license=('BSD')
depends=('glibc')
-source=("http://sg.danny.cz/sg/p/$pkgname-$pkgver.tgz")
+source=("http://sg.danny.cz/sg/p/${pkgname}-${pkgver}.tgz")
+md5sums=('c807f9db3dd7af175214be0d7fece494')
build() {
- cd $startdir/src/$pkgname-$pkgver
+ cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr
- make || return 1
- make DESTDIR=$startdir/pkg install || return 1
- install -Dm644 COPYING $startdir/pkg/usr/share/licenses/sdparm/COPYING
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 COPYING \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-md5sums=('8f42a10c5f4a826a29d6f5ccccf0c280')