core/usbutils/PKGBUILD

28 lines
824 B
Bash

# $Id: PKGBUILD 72938 2010-03-21 16:22:12Z tpowa $
# Maintainer: Judd Vinet <jvinet@zeroflux.org>
# Contributor: Curtis Campbell <curtisjamescampbell@hotmail.com>
pkgname=usbutils
pkgver=0.87
pkgrel=2
pkgdesc="USB Device Utilities"
arch=(i686 x86_64)
license=('GPL')
groups=('base')
makedepends=('wget')
depends=('glibc' 'libusb')
url="http://linux-usb.sourceforge.net/"
source=(http://www.kernel.org/pub/linux/utils/usb/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('c19a11092dd0f5a5c6a93b0599740fe5')
build() {
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=$pkgdir install
# fix pkgconfig file
mkdir -p $pkgdir/usr/lib
mv $pkgdir/usr/share/hwdata/pkgconfig $pkgdir/usr/lib/
}