summaryrefslogtreecommitdiffstats
path: root/libusb/Pkgfile
blob: 6577bc24bfa97661783e72020b15bfe8a177a322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
description="Library giving userland programs access to USB devices."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://libusb.sourceforge.net/"
depends=()

name=libusb
version=1.0.8
release=1
source=(http://downloads.sourceforge.net/project/$name/$name-${version%\.*}/$name-$version/$name-$version.tar.bz2)
build () 
{ 
	cd $name-$version;
	./configure \
		${CBUILD:+--build=${CBUILD}} \
		${CHOST:+--host=${CHOST}} \
		--prefix=$prefix \
		--mandir=$mandir;
	make;
	make DESTDIR=$PKG install;
	install -d $PKG/lib;
	mv $PKG$prefix/lib/libusb-1.0.so.* $PKG/lib;
	ln -sf ../../lib/libusb-1.0.so.0.0.0 $PKG$prefix/lib/libusb-1.0.so
}