# Maintainer: Natanael Copa pkgname=libusb pkgver=1.0.21 _ver=${pkgver/_/-} pkgrel=1 pkgdesc="Library to enable user space application programs to communicate with USB devices" url="http://libusb.info/" arch="all" license="LGPL-2.0-or-later" subpackages="$pkgname-dev" replaces="libusbx" makedepends="linux-headers" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 " builddir="$srcdir"/$pkgname-$_ver build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-udev make -j1 } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="015ca07bdb559aa40af5db1302ab0b1c8a30d593699fe2f3c9f45162673dc7b608cecc58d60fde8f3bde2a68370794a045e8efa48fc55402eece11261e525762 libusb-1.0.21.tar.bz2"