PKGBUILD 869 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Maintainer (Arch): Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
  2. # Contributor (Arch): Tobias Powalowski <tpowa@archlinux.org>
  3. # Maintainer: David P. <megver83@parabola.nu>
  4. pkgname=libusb
  5. pkgver=1.0.23
  6. pkgrel=2
  7. pkgrel+=.nonsystemd1
  8. pkgdesc='Library that provides generic access to USB devices'
  9. arch=(x86_64)
  10. arch+=(i686 armv7h)
  11. url='https://libusb.info/'
  12. license=(LGPL)
  13. depends=(glibc libudev)
  14. makedepends=(udev)
  15. replaces=(libusb1 libusbx)
  16. provides=("libusbx=$pkgver" libusb-1.0.so)
  17. conflicts=(libusbx)
  18. source=(https://github.com/libusb/libusb/releases/download/v$pkgver/libusb-$pkgver.tar.bz2)
  19. sha256sums=('db11c06e958a82dac52cf3c65cb4dd2c3f339c8a988665110e0d24d19312ad8d')
  20. build() {
  21. cd $pkgname-$pkgver
  22. ./configure --prefix=/usr
  23. make
  24. }
  25. check() {
  26. make -C $pkgname-$pkgver check
  27. }
  28. package () {
  29. make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
  30. }