wok annotate dfu-util/receipt @ rev 24667

updated inotify-tools (3.20.2.2 -> 3.22.1.0)
author Hans-G?nter Theisgen
date Fri Mar 11 16:18:25 2022 +0100 (2022-03-11)
parents 370da83187ab
children ad0bc3efbf37
rev   line source
pascal@17335 1 # SliTaz package receipt.
pascal@17335 2
pascal@17335 3 PACKAGE="dfu-util"
Hans-G?nter@24475 4 VERSION="0.11"
pascal@17335 5 CATEGORY="utilities"
pascal@17335 6 SHORT_DESC="Device Firmware Upgrade Utilities (for USB devices)."
pascal@17335 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17335 8 LICENSE="GPL2"
Hans-G?nter@24475 9 WEB_SITE="https://sourceforge.net/projects/dfu-util/"
Hans-G?nter@20824 10
pascal@17335 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@24475 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@17335 13
Hans-G?nter@24475 14 DEPENDS="libusb"
pascal@17335 15 BUILD_DEPENDS="pkg-config glib libusb-dev"
pascal@17335 16
pascal@24361 17 # What is the latest version available today?
pascal@24361 18 current_version()
pascal@24361 19 {
pascal@24361 20 wget -O - https://sourceforge.net/projects/dfu-util/files/ 2>/dev/null | \
pascal@24361 21 sed '/scope="row/!d;/[0-9].tar/!d;s|.*/dfu-util-||;s|.tar.*||;q'
pascal@24361 22 }
pascal@24361 23
pascal@17335 24 # Rules to configure and make the package.
pascal@17335 25 compile_rules()
pascal@17335 26 {
pascal@22096 27 export CFLAGS="$CFLAGS -I/usr/include/libusb-1.0"
Hans-G?nter@24475 28
Hans-G?nter@24475 29 ./configure \
Hans-G?nter@24475 30 --prefix=/usr \
pascal@17335 31 $CONFIGURE_ARGS &&
pascal@17335 32 make &&
Hans-G?nter@24475 33 make install DESTDIR=$DESTDIR
pascal@17335 34 }
pascal@17335 35
pascal@17335 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17335 37 genpkg_rules()
pascal@17335 38 {
Hans-G?nter@24475 39 cook_copy_folders bin
pascal@17335 40 }