PKGBUILD 926 B

123456789101112131415161718192021222324252627282930313233
  1. # Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
  2. # Contributor (Arch): 3V0LU710N <db_eee-at-hotmail-dot-com>
  3. # Maintainer: David P. <megver83@parabola.nu>
  4. pkgname=lib32-libusb
  5. pkgver=1.0.22
  6. pkgrel=1
  7. pkgrel+=.nonsystemd1
  8. pkgdesc="A cross-platform user library to access USB devices (32-bit)"
  9. arch=('x86_64')
  10. url="http://libusb.info/"
  11. license=('LGPL')
  12. depends=('lib32-glibc' 'libusb' 'lib32-eudev')
  13. replaces=('lib32-libusb1' 'lib32-libusbx')
  14. provides=("lib32-libusbx=$pkgver")
  15. source=(https://github.com/libusb/libusb/releases/download/v$pkgver/libusb-$pkgver.tar.bz2)
  16. md5sums=('466267889daead47674df933cea9cacb')
  17. build() {
  18. export CC="gcc -m32"
  19. export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  20. cd "libusb-${pkgver}"
  21. ./configure --prefix=/usr --libdir=/usr/lib32 --disable-static
  22. make -j1
  23. }
  24. package () {
  25. cd "${srcdir}/libusb-${pkgver}"
  26. make DESTDIR="${pkgdir}" install
  27. rm -rf "${pkgdir}"/usr/include
  28. }