# SliTaz package receipt. PACKAGE="usbredir" VERSION="0.8.0" CATEGORY="network" SHORT_DESC="A protocol to send USB traffic over a network connection." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2 LGPL2.1" WEB_SITE="https://www.spice-space.org/usbredir.html" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="https://spice-space.org/download/usbredir/$TARBALL" DEPENDS="libusb" BUILD_DEPENDS="glib libusb-dev pkg-config" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/sbin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib }