Commit | Line | Data |
---|---|---|
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 | ||
6 | name=libusb | |
7 | version=0.1.12 | |
8 | release=1 | |
9 | source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz) | |
10 | ||
11 | build () { | |
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 | } |