CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
42fa425a30fb35db8227ca8b33468bf0ab34b34c
[crossrootfs.git] / libusb / Pkgfile
1 # Description: Library giving userland programs access to USB devices
2 # URL: http://libusb.sourceforge.net/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5
6 name=libusb
7 version=1.0.6
8 release=1
9 source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2)
10
11 build () {
12 cd $name-$version
13
14 ./configure --build=$CHOST \
15 --host=$CTARGET \
16 --prefix=/usr
17 make
18 make DESTDIR=$PKG install
19
20 install -d $PKG/lib
21 mv $PKG/usr/lib/libusb-1.0.so.* $PKG/lib
22 ln -sf ../../lib/libusb-1.0.so.0.0.0 $PKG/usr/lib/libusb-1.0.so
23 }