2006-02-23 18:19:35 +01:00
|
|
|
# Description: Library giving userland programs access to USB devices
|
2020-06-04 16:56:32 +02:00
|
|
|
# URL: https://libusb.info
|
2008-05-07 22:50:28 +02:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2014-02-25 04:34:17 +01:00
|
|
|
# Depends on: eudev
|
2006-02-23 18:19:35 +01:00
|
|
|
|
|
|
|
name=libusb
|
2022-04-11 12:12:07 +02:00
|
|
|
version=1.0.26
|
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 () {
|
2014-01-28 14:03:55 +01:00
|
|
|
cd $name-$version
|
2020-12-13 13:15:39 +01:00
|
|
|
|
|
|
|
./configure --prefix=/usr
|
2018-03-26 12:55:04 +02:00
|
|
|
make
|
2006-02-23 18:19:35 +01:00
|
|
|
make DESTDIR=$PKG install
|
2020-12-13 13:15:39 +01:00
|
|
|
|
2009-05-13 21:00:42 +02:00
|
|
|
install -d $PKG/lib
|
2009-07-15 15:49:40 +02:00
|
|
|
mv $PKG/usr/lib/libusb-1.0.so.* $PKG/lib
|
2012-04-24 08:59:49 +02:00
|
|
|
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
|
|
|
}
|