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