mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
38 lines
820 B
Plaintext
38 lines
820 B
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libusb
|
|
pkgver=1.0.22
|
|
_ver=${pkgver/_/-}
|
|
pkgrel=0
|
|
pkgdesc="Library that enables userspace access to USB devices"
|
|
url="http://libusb.info/"
|
|
arch="all"
|
|
license="LGPL-2.0-or-later"
|
|
subpackages="$pkgname-dev"
|
|
replaces="libusbx"
|
|
makedepends="linux-headers"
|
|
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
|
|
"
|
|
builddir="$srcdir/$pkgname-$_ver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--disable-udev
|
|
make -j1
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="2a93ba48bb66b9775838c16d74f7269348d9bc163f94ccf2842d1108d95a41cf79f8c8065233bea410fb94261a462dbb08ecfa1a9b6d3ddf4a5980e6043f74f4 libusb-1.0.22.tar.bz2"
|