From f72cb0ced39aca827b5269eba5455dbf846410e2 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Fri, 3 Jan 2014 03:19:39 +0000 Subject: Fri Jan 3 03:17:00 UTC 2014 --- community/hwinfo/PKGBUILD | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'community/hwinfo/PKGBUILD') diff --git a/community/hwinfo/PKGBUILD b/community/hwinfo/PKGBUILD index 11bd4bb06..0b790dbae 100644 --- a/community/hwinfo/PKGBUILD +++ b/community/hwinfo/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 90497 2013-05-12 23:11:39Z arodseth $ +# $Id: PKGBUILD 103280 2014-01-02 12:43:36Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Kaiting Chen # Contributor: Gergely Imreh @@ -8,23 +8,22 @@ # Contributor: ninja_pt pkgname=hwinfo -pkgver=20.1 -_subver=3.10 -pkgrel=2 +pkgver=21.0 +_subver=1.2 +pkgrel=1 pkgdesc='Hardware detection tool from openSUSE' arch=('x86_64' 'i686') url='http://download.opensuse.org/source/factory/repo/oss/suse/src/' license=('GPL2') depends=('perl' 'libx86emu') makedepends=('sysfsutils' 'rpmextract' 'flex') +options=('!emptydirs') source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/$pkgname-$pkgver-$_subver.src.rpm" 'custom_ioctl.patch') -sha256sums=('b0e2e51b4dd754071fb40843deaaafb0755388de5335b1d2c4c081d0f6393841' +sha256sums=('4126875621a935a450cf616b69a1f922047f241cedc3ac02ece54cd78b23a9fb' '6e83b50aa34f31db5fe6de938402e7c4dda6ffa9ffe1346c076e4779018fcf1d') prepare() { - cd "$srcdir" - rpmextract.sh "$pkgname-$pkgver-$_subver.src.rpm" tar jxf $pkgname-$pkgver.tar.bz2 cd "$pkgname-$pkgver" @@ -32,17 +31,14 @@ prepare() { } build() { - cd "$srcdir/$pkgname-$pkgver" - - make -j1 CFLAGS+="-fPIC -I$srcdir/$pkgname-$pkgver/src/hd" LIBDIR=/usr/lib + make -C "$pkgname-$pkgver" -j1 \ + CFLAGS+="-fPIC -I$srcdir/$pkgname-$pkgver/src/hd" \ + LIBDIR=/usr/lib } package() { - cd "$srcdir/$pkgname-$pkgver" - - make LIBDIR=/usr/lib DESTDIR="$pkgdir" install + make -C "$pkgname-$pkgver" LIBDIR=/usr/lib DESTDIR="$pkgdir" install mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin" - rmdir "$pkgdir/sbin" } # vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf