diff options
-rw-r--r-- | abs/core/usbutils/PKGBUILD | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/abs/core/usbutils/PKGBUILD b/abs/core/usbutils/PKGBUILD index 944e26a..fff0508 100644 --- a/abs/core/usbutils/PKGBUILD +++ b/abs/core/usbutils/PKGBUILD @@ -1,25 +1,30 @@ -# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ +# $Id: PKGBUILD 87429 2010-08-13 10:22:39Z tpowa $ # Maintainer: Judd Vinet <jvinet@zeroflux.org> # Contributor: Curtis Campbell <curtisjamescampbell@hotmail.com> pkgname=usbutils -pkgver=0.73 -pkgrel=14 +pkgver=0.90 +pkgrel=1 pkgdesc="USB Device Utilities" -arch=(i686 x86_64) +arch=('i686' 'x86_64') license=('GPL') groups=('base') makedepends=('wget') depends=('glibc' 'libusb') -url="http://usb.cs.tum.edu/" -source=(http://downloads.sourceforge.net/sourceforge/linux-usb/usbutils-$pkgver.tar.gz) -md5sums=('88978b4ad891f610620b1b8e5e0f43eb') +url="http://linux-usb.sourceforge.net/" +source=(http://www.kernel.org/pub/linux/utils/usb/$pkgname/$pkgname-$pkgver.tar.gz) build() { - cd $startdir/src/$pkgname-$pkgver - ./update-usbids.sh - sed -i 's|DEST=|&/usr/share/hwdata/|' update-usbids.sh - ./configure --prefix=/usr --datadir=/usr/share/hwdata --enable-usbmodules --disable-zlib + cd $srcdir/$pkgname-$pkgver + rm usb.ids + wget http://www.linux-usb.org/usb.ids + ./configure --prefix=/usr --datadir=/usr/share/hwdata --disable-zlib make || return 1 - make DESTDIR=$startdir/pkg install - install -D -m755 update-usbids.sh $startdir/pkg/usr/sbin/update-usbids } +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install + # fix pkgconfig file + mkdir -p $pkgdir/usr/lib + mv $pkgdir/usr/share/hwdata/pkgconfig $pkgdir/usr/lib/ +} +md5sums=('53f0269e2cba704d5a35dfe291511292') |