# SliTaz package receipt. PACKAGE="dfu-util" VERSION="0.11" CATEGORY="utilities" SHORT_DESC="Device Firmware Upgrade Utilities (for USB devices)." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://sourceforge.net/projects/dfu-util/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="libusb" BUILD_DEPENDS="pkg-config glib libusb-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/dfu-util/files/ 2>/dev/null | \ sed '/scope="row/!d;/[0-9].tar/!d;s|.*/dfu-util-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { export CFLAGS="$CFLAGS -I/usr/include/libusb-1.0" ./configure \ --prefix=/usr \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders bin }