27 lines
755 B
Plaintext
27 lines
755 B
Plaintext
# Description: Library giving userland programs access to USB devices, patched to fix a regression in the latest release.
|
|
# URL: https://libusb.info
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
|
# Depends on: eudev
|
|
|
|
name=libusb
|
|
version=1.0.24
|
|
release=1
|
|
source=(https://github.com/libusb/libusb/releases/download/v$version/$name-$version.tar.bz2
|
|
fix-descriptor-parsing.patch)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
patch -p1 < $SRC/fix-descriptor-parsing.patch
|
|
|
|
./configure --prefix=/usr
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
install -d $PKG/lib
|
|
mv $PKG/usr/lib/libusb-1.0.so.* $PKG/lib
|
|
ln -sf ../../lib/$(readlink $PKG/lib/libusb-1.0.so.0) $PKG/usr/lib/libusb-1.0.so
|
|
|
|
# strip .la files
|
|
rm -f $PKG/usr/lib/*.la
|
|
}
|