wok-current annotate dfu-util/receipt @ rev 24361
glibmm, glibmm-dev: fix Private:gobj()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 04 09:24:50 2022 +0000 (2022-02-04) |
parents | c2bd5d258aac |
children | 7efe09103840 |
rev | line source |
---|---|
pascal@17335 | 1 # SliTaz package receipt. |
pascal@17335 | 2 |
pascal@17335 | 3 PACKAGE="dfu-util" |
Hans-G?nter@20824 | 4 VERSION="0.9" |
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" |
pascal@22095 | 9 WEB_SITE="http://dfu-util.sourceforge.net/" |
Hans-G?nter@20824 | 10 |
pascal@17335 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@20824 | 12 WGET_URL="http://dfu-util.sourceforge.net/releases/$TARBALL" |
pascal@17335 | 13 |
pascal@17335 | 14 BUILD_DEPENDS="pkg-config glib libusb-dev" |
pascal@17335 | 15 |
pascal@24361 | 16 # What is the latest version available today? |
pascal@24361 | 17 current_version() |
pascal@24361 | 18 { |
pascal@24361 | 19 wget -O - https://sourceforge.net/projects/dfu-util/files/ 2>/dev/null | \ |
pascal@24361 | 20 sed '/scope="row/!d;/[0-9].tar/!d;s|.*/dfu-util-||;s|.tar.*||;q' |
pascal@24361 | 21 } |
pascal@24361 | 22 |
pascal@17335 | 23 # Rules to configure and make the package. |
pascal@17335 | 24 compile_rules() |
pascal@17335 | 25 { |
pascal@22096 | 26 export CFLAGS="$CFLAGS -I/usr/include/libusb-1.0" |
Hans-G?nter@20824 | 27 ./configure \ |
Hans-G?nter@20824 | 28 --prefix=/usr \ |
pascal@17335 | 29 $CONFIGURE_ARGS && |
pascal@17335 | 30 make && |
pascal@17335 | 31 make DESTDIR=$DESTDIR install |
pascal@17335 | 32 } |
pascal@17335 | 33 |
pascal@17335 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17335 | 35 genpkg_rules() |
pascal@17335 | 36 { |
pascal@17335 | 37 mkdir -p $fs/usr |
pascal@17335 | 38 cp -a $install/usr/bin $fs/usr |
pascal@17335 | 39 } |