diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-12 03:40:54 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-12 03:40:54 +0000 |
commit | 5d4b5782f03734e12c907cbc7e4b8c35926e9554 (patch) | |
tree | d6b52861ee269d63f88807a3e6cefc926a173247 /community/hwinfo | |
parent | 345769552026b46d72b7318f1efa6d615ce03ee3 (diff) |
Wed Mar 12 03:36:36 UTC 2014
Diffstat (limited to 'community/hwinfo')
-rw-r--r-- | community/hwinfo/PKGBUILD | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/community/hwinfo/PKGBUILD b/community/hwinfo/PKGBUILD index 0b790dbae..79088553f 100644 --- a/community/hwinfo/PKGBUILD +++ b/community/hwinfo/PKGBUILD @@ -1,43 +1,44 @@ -# $Id: PKGBUILD 103280 2014-01-02 12:43:36Z arodseth $ +# $Id: PKGBUILD 107044 2014-03-11 18:19:44Z arodseth $ # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: Kaiting Chen <kaitocracy@gmail.com> # Contributor: Gergely Imreh <imrehgATgmailDOTcom> -# Contributor: champus -# Contributor: madeye -# Contributor: Ranguvar -# Contributor: ninja_pt +# Contributor: champus, madeye, ranguvar and ninja_pt pkgname=hwinfo -pkgver=21.0 -_subver=1.2 +pkgver=21.0.1.3 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') +depends=('libx86emu' 'bash') +makedepends=('sysfsutils' 'rpmextract' 'flex' 'aria2') options=('!emptydirs') -source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/$pkgname-$pkgver-$_subver.src.rpm" +source=("hwinfo.meta4::http://download.opensuse.org/source/factory/repo/oss/suse/src/$pkgname-${pkgver%.*.*}-${pkgver#*.*.}.src.rpm" 'custom_ioctl.patch') -sha256sums=('4126875621a935a450cf616b69a1f922047f241cedc3ac02ece54cd78b23a9fb' - '6e83b50aa34f31db5fe6de938402e7c4dda6ffa9ffe1346c076e4779018fcf1d') +sha256sums=('SKIP' '6e83b50aa34f31db5fe6de938402e7c4dda6ffa9ffe1346c076e4779018fcf1d') prepare() { - rpmextract.sh "$pkgname-$pkgver-$_subver.src.rpm" - tar jxf $pkgname-$pkgver.tar.bz2 - cd "$pkgname-$pkgver" + # Downloading the source rpm file, using meta4 + aria2c -M "$pkgname.meta4" -V -c --allow-overwrite=true --no-conf=true + + # Wish they would just provide a normal $pkgname-$pkgvar.tar.gz... + rpmextract.sh "$pkgname-${pkgver%.*.*}-${pkgver#*.*.}.src.rpm" + tar jxf "$pkgname-${pkgver%.*.*}.tar.bz2" + + # Patching + cd "$pkgname-${pkgver%.*.*}" patch -p0 -i ../custom_ioctl.patch } build() { - make -C "$pkgname-$pkgver" -j1 \ - CFLAGS+="-fPIC -I$srcdir/$pkgname-$pkgver/src/hd" \ + make -C "$pkgname-${pkgver%.*.*}" -j1 \ + CFLAGS+="-fPIC -I$srcdir/$pkgname-${pkgver%.*.*}/src/hd" \ LIBDIR=/usr/lib } package() { - make -C "$pkgname-$pkgver" LIBDIR=/usr/lib DESTDIR="$pkgdir" install + make -C "$pkgname-${pkgver%.*.*}" LIBDIR=/usr/lib DESTDIR="$pkgdir" install mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin" } |