db-move: moved webkitgtk-6.0 from [testing] to [extra] (x86_64)
[arch-packages.git] / libusb / trunk / PKGBUILD
blob26430615915193a3886b126f431f0ab2956c1aa3
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: BartÅ‚omiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
5 pkgname=libusb
6 pkgver=1.0.26
7 pkgrel=2
8 pkgdesc="Library that provides generic access to USB devices"
9 arch=(x86_64)
10 url="https://libusb.info/"
11 license=(LGPL2.1)
12 depends=(glibc)
13 makedepends=(systemd)
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')
19 prepare() {
20   cd $pkgname-$pkgver
21   autoreconf -fiv
24 build() {
25   cd $pkgname-$pkgver
26   ./configure --prefix=/usr
27   # prevent excessive overlinking due to libtool
28   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
29   make
32 check() {
33   make -k check -C $pkgname-$pkgver
36 package () {
37   depends+=(
38     systemd-libs libudev.so
39   )
41   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
42   install -vDm 644 $pkgname-$pkgver/{AUTHORS,ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname/"