summaryrefslogtreecommitdiff
path: root/nonsystemd/libusb/PKGBUILD
blob: e535d5d2a9a4642a3f351082a3593d39e32a54a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer (Arch):  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor (Arch): Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: David P. <megver83@parabola.nu>

pkgname=libusb
pkgver=1.0.23
pkgrel=2
pkgrel+=.nonsystemd1
pkgdesc='Library that provides generic access to USB devices'
arch=(x86_64)
arch+=(i686 armv7h)
url='https://libusb.info/'
license=(LGPL)
depends=(glibc libudev)
makedepends=(udev)
replaces=(libusb1 libusbx)
provides=("libusbx=$pkgver" libusb-1.0.so)
conflicts=(libusbx)
source=(https://github.com/libusb/libusb/releases/download/v$pkgver/libusb-$pkgver.tar.bz2)
sha256sums=('db11c06e958a82dac52cf3c65cb4dd2c3f339c8a988665110e0d24d19312ad8d')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

check() {
  make -C $pkgname-$pkgver check
}

package () {
  make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
}