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

Andrea Scarpino andrea at archlinux.org
Wed Nov 2 16:15:33 EDT 2011


    Date: Wednesday, November 2, 2011 @ 16:15:33
  Author: andrea
Revision: 141892

upgpkg: sdparm 1.06-2

Signing package

Modified:
  sdparm/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-11-02 20:06:46 UTC (rev 141891)
+++ PKGBUILD	2011-11-02 20:15:33 UTC (rev 141892)
@@ -5,7 +5,7 @@
 
 pkgname=sdparm
 pkgver=1.06
-pkgrel=1
+pkgrel=2
 pkgdesc="An utility similar to hdparm but for SCSI devices"
 arch=('i686' 'x86_64')
 url="http://sg.danny.cz/sg/sdparm.html"
@@ -15,14 +15,20 @@
 md5sums=('5e19913658bb4f9849ddd909e0f47cde')
 
 build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+  cd "${srcdir}/${pkgname}-${pkgver}"
   ./configure --prefix=/usr
   make
 }
 
+check() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make check
+}
+
 package() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-  make DESTDIR=${pkgdir}/ install
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
 
-  install -Dm644 COPYING $pkgdir/usr/share/licenses/${pkgname}/LICENSE
+  install -Dm644 COPYING \
+    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }



More information about the arch-commits mailing list