summaryrefslogtreecommitdiff
path: root/core/usbutils/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-13 22:36:49 +0000
committerroot <root@rshg047.dnsready.net>2011-05-13 22:36:49 +0000
commit2c4629f613c001fd29740d0f4c0e497c771a2182 (patch)
treeddc90e9111a5137677fd53e503992fd12a661ac0 /core/usbutils/PKGBUILD
parent1982ae8d63ab142a2a16bdf1b055110d9c9f40fd (diff)
Fri May 13 22:36:49 UTC 2011
Diffstat (limited to 'core/usbutils/PKGBUILD')
-rw-r--r--core/usbutils/PKGBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/core/usbutils/PKGBUILD b/core/usbutils/PKGBUILD
index b03109219..2edabc2f0 100644
--- a/core/usbutils/PKGBUILD
+++ b/core/usbutils/PKGBUILD
@@ -1,9 +1,10 @@
-# $Id: PKGBUILD 118970 2011-04-09 20:52:11Z tpowa $
+# $Id: PKGBUILD 123172 2011-05-09 02:20:17Z allan $
# Maintainer: Judd Vinet <jvinet@zeroflux.org>
# Contributor: Curtis Campbell <curtisjamescampbell@hotmail.com>
pkgname=usbutils
pkgver=002
-pkgrel=2
+pkgrel=3
+_usb_ids_date=2011.04.14
pkgdesc="USB Device Utilities"
arch=(i686 x86_64)
license=('GPL')
@@ -14,16 +15,18 @@ optdepends=('python2: for lsusb.py usage'
'coreutils: for lsusb.py usage')
url="http://linux-usb.sourceforge.net/"
source=(http://www.kernel.org/pub/linux/utils/usb/$pkgname/$pkgname-$pkgver.tar.gz
- fix-python2.patch)
+ fix-python2.patch
+ usb.ids-${_usb_ids_date}) # from http://linux-usb.sourceforge.net/usb.ids
md5sums=('05610d15c3c8c8ada3d691c320ca784a'
- '45766196895b4cc50b53cd56e1bbf3d1')
+ '45766196895b4cc50b53cd56e1bbf3d1'
+ 'd64f120c208ca742d3a1d05d84e3f531')
build() {
cd $srcdir/$pkgname-$pkgver
rm usb.ids
- wget http://www.linux-usb.org/usb.ids
+ cp $srcdir/usb.ids-${_usb_ids_date} usb.ids
# patch lsusb.py to use correct usb.ids file and python2 interpreter
- patch -Np1 -i ../fix-python2.patch
+ patch -Np1 -i $srcdir/fix-python2.patch
./configure --prefix=/usr --datadir=/usr/share/hwdata --disable-zlib
make
}
@@ -32,6 +35,6 @@ package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
# fix pkgconfig file
- mkdir -p $pkgdir/usr/lib
+ install -dm755 $pkgdir/usr/lib
mv $pkgdir/usr/share/pkgconfig $pkgdir/usr/lib/
}