CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
gawk: updated to 3.1.7
[crossrootfs.git] / libusb / Pkgfile
CommitLineData
6dca1d21
JB
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, crux-arm at mikeux dot dyndns dot org
5
6name=libusb
7version=0.1.12
8release=1
9source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
10
11build () {
12 cd $name-$version
13 ./configure --build=$CHOST \
14 --host=$CTARGET \
15 --prefix=/usr
16 make
17 make DESTDIR=$PKG install
18
19 mkdir $PKG/lib
20 local file libfiles=$PKG/usr/lib/lib*-*.so.*.*.*
21 for file in $libfiles; do
22 mv $file $PKG/lib/
23 ln -sf ../../lib/${file##*/} $PKG/usr/lib/${file##*/}
24 done
25 /sbin/ldconfig -nN $PKG/lib
26}