diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-03 03:19:39 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-03 03:19:39 +0000 |
commit | f72cb0ced39aca827b5269eba5455dbf846410e2 (patch) | |
tree | 7047d64bf11194dc5e44ed4f6765ffccb11676cf /community/hwinfo/PKGBUILD | |
parent | 3cbc40e327b77b23d48f55c76c0efde35a5dad16 (diff) |
Fri Jan 3 03:17:00 UTC 2014
Diffstat (limited to 'community/hwinfo/PKGBUILD')
-rw-r--r-- | community/hwinfo/PKGBUILD | 24 |
1 files changed, 10 insertions, 14 deletions
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 <rodseth@gmail.com> # Contributor: Kaiting Chen <kaitocracy@gmail.com> # Contributor: Gergely Imreh <imrehgATgmailDOTcom> @@ -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: |