22 lines
546 B
Plaintext
22 lines
546 B
Plaintext
# Description: Library giving userland programs access to USB devices
|
|
# URL: https://libusb.info
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: eudev
|
|
|
|
name=libusb
|
|
version=1.0.26
|
|
release=1
|
|
source=(https://github.com/libusb/libusb/releases/download/v$version/$name-$version.tar.bz2)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
|
|
./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
|
|
}
|