diff options
Diffstat (limited to 'community/hwinfo/PKGBUILD')
-rw-r--r-- | community/hwinfo/PKGBUILD | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/community/hwinfo/PKGBUILD b/community/hwinfo/PKGBUILD index 28e2ea582..710e7ce51 100644 --- a/community/hwinfo/PKGBUILD +++ b/community/hwinfo/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 56757 2011-10-11 21:02:19Z arodseth $ +# $Id: PKGBUILD 66324 2012-02-23 14:26:30Z arodseth $ # Maintainer: Kaiting Chen <kaitocracy@gmail.com> # Contributor: Alexander Rødseth <rodseth@gmail.com> # Contributor: Gergely Imreh <imrehgATgmailDOTcom> @@ -6,40 +6,42 @@ # Contributor: madeye # Contributor: Ranguvar # Contributor: ninja_pt + pkgname=hwinfo -pkgver=19.0 -pkgrel=2 +pkgver=19.1 +_subver=1.2 +pkgrel=1 pkgdesc='Hardware detection tool from openSUSE' arch=('x86_64' 'i686') url='http://www.opensuse.org/' license=('GPL2') depends=('perl' 'libx86emu') makedepends=('sysfsutils' 'rpmextract' 'flex') -source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/${pkgname}-${pkgver}-1.1.src.rpm" +source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/$pkgname-$pkgver-$_subver.src.rpm" 'custom_ioctl.patch') -md5sums=('751238feaa13449324593ee5e145cd56' - '1500ecfa26f6aaf4d7967eea74e86e5d') +sha256sums=('77b67512f7a7a027200233b6c89be2b777f96b2a6d742b695cb062f9cf4ec258' + '6e83b50aa34f31db5fe6de938402e7c4dda6ffa9ffe1346c076e4779018fcf1d') build() { - cd "${srcdir}" + cd "$srcdir" msg2 "Extracting source rpm..." - rpmextract.sh "${pkgname}-${pkgver}-1.1.src.rpm" - tar jxf ${pkgname}-${pkgver}.tar.bz2 - cd "${pkgname}-${pkgver}" + rpmextract.sh "$pkgname-$pkgver-$_subver.src.rpm" + tar jxf $pkgname-$pkgver.tar.bz2 + cd "$pkgname-$pkgver" msg2 "Patching..." patch -p0 < ../custom_ioctl.patch msg2 "Compiling..." - make -j1 CFLAGS+="-fPIC -I${srcdir}/${pkgname}-${pkgver}/src/hd" LIBDIR=/usr/lib + make -j1 CFLAGS+="-fPIC -I$srcdir/$pkgname-$pkgver/src/hd" LIBDIR=/usr/lib } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "$srcdir/$pkgname-$pkgver" msg2 "Packaging files..." - make LIBDIR=/usr/lib DESTDIR=${pkgdir} install + make LIBDIR=/usr/lib DESTDIR="$pkgdir" install msg2 "Cleaning up..." - rmdir "${pkgdir}/sbin" + rmdir "$pkgdir/sbin" } # vim:set ts=2 sw=2 et: |