2006-02-23 18:19:35 +01:00
|
|
|
# Description: Library giving userland programs access to USB devices
|
2021-12-13 12:10:25 +01:00
|
|
|
# URL: https://libusb.info
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
# Depends on: eudev
|
2006-02-23 18:19:35 +01:00
|
|
|
|
|
|
|
name=libusb
|
2022-02-17 13:18:21 +01:00
|
|
|
version=1.0.25
|
2013-07-12 14:59:23 +02:00
|
|
|
release=1
|
2019-08-30 16:34:51 +02:00
|
|
|
source=(https://github.com/libusb/libusb/releases/download/v$version/$name-$version.tar.bz2)
|
2006-02-23 18:19:35 +01:00
|
|
|
|
|
|
|
build () {
|
2021-12-13 12:10:25 +01:00
|
|
|
cd $name-$version
|
2020-12-13 13:15:39 +01:00
|
|
|
|
2021-12-13 12:10:25 +01:00
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2020-12-13 13:15:39 +01:00
|
|
|
|
2021-12-13 12:10:25 +01:00
|
|
|
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
|
2006-02-23 18:19:35 +01:00
|
|
|
}
|