1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
8 pkgdesc="Library that provides generic access to USB devices"
10 url="https://libusb.info/"
14 provides=(libusb-1.0.so)
15 source=(https://github.com/$pkgname/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2)
16 sha512sums=('fcdb85c98f21639668693c2fd522814d440972d65883984c4ae53d0555bdbdb7e8c7a32199cd4b01113556a1eb5be7841b750cc73c9f6bda79bfe1af80914e71')
17 b2sums=('0cc397ecf4de0066abbff9b286a9e4fcd48658698d5e0d6b736abf56b48c1b55a05f15fff7be53fd33f767621e0c25d87275a47e05a4bcb44c4b8ac9221cd081')
26 ./configure --prefix=/usr
27 # prevent excessive overlinking due to libtool
28 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
33 make -k check -C $pkgname-$pkgver
38 systemd-libs libudev.so
41 make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
42 install -vDm 644 $pkgname-$pkgver/{AUTHORS,ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname/"