wok-6.x annotate gmtp/receipt @ rev 24403
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 18:20:23 2022 +0000 (2022-02-08) |
parents | c210ab33ff24 |
children | ad0bc3efbf37 |
rev | line source |
---|---|
al@17020 | 1 # SliTaz package receipt. |
al@17020 | 2 |
al@17020 | 3 PACKAGE="gmtp" |
Hans-G?nter@22858 | 4 VERSION="1.3.11" |
al@17020 | 5 CATEGORY="utilities" |
Hans-G?nter@22858 | 6 SHORT_DESC="A simple graphical MTP client." |
al@17020 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@17020 | 8 LICENSE="BSD" |
pascal@20421 | 9 WEB_SITE="https://sourceforge.net/projects/gmtp/" |
Hans-G?nter@22858 | 10 |
al@17020 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@17020 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@17020 | 13 |
Hans-G?nter@22858 | 14 DEPENDS="flac GConf libid3tag libmtp" |
Hans-G?nter@22858 | 15 BUILD_DEPENDS="flac-dev GConf-dev gtk+-dev libid3tag-dev libmtp-dev |
Hans-G?nter@22858 | 16 libvorbis-dev" |
al@17020 | 17 |
pascal@24403 | 18 # What is the latest version available today? |
pascal@24403 | 19 current_version() |
pascal@24403 | 20 { |
pascal@24403 | 21 wget -O - https://sourceforge.net/projects/gmtp/files/ 2>/dev/null | \ |
pascal@24403 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24403 | 23 sed '/scope="row/!d;s|.*/gMTP-||;s|/.*||;q' |
pascal@24403 | 24 } |
pascal@24403 | 25 |
al@17020 | 26 # Rules to configure and make the package. |
al@17020 | 27 compile_rules() |
al@17020 | 28 { |
Hans-G?nter@22858 | 29 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@22858 | 30 make && |
Hans-G?nter@22858 | 31 make install |
al@17020 | 32 } |
al@17020 | 33 |
al@17020 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@17020 | 35 genpkg_rules() |
al@17020 | 36 { |
Hans-G?nter@22858 | 37 cp -a $install/* $fs |
al@17020 | 38 } |