# Description: outils internet
# URL: http://www.pilot-link.org/
# Maintainer: NutyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: libusb, libpng, popt

name=pilot-link
version=0.12.5
release=1
source=(http://downloads.pilot-link.org/$name-$version.tar.bz2\
	pilot-link-png14.patch)

build () {
cd $name-$version
patch -Np1 -i ../pilot-link-png14.patch
./configure --prefix=/usr \
	--enable-conduits \
	--enable-libusb \
	--with-libiconv \
	--with-libpng
make -j3
make DESTDIR=$PKG install
# Put udev rules at the right place
mkdir -p $PKG/etc/udev/rules.d
mv $PKG/usr/share/pilot-link/udev/60-libpisock.rules \
	$PKG/etc/udev/rules.d
rm -rf $PKG/usr/share/pilot-link/udev

}