wok annotate florence/receipt @ rev 24462
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 21:07:01 2022 +0000 (2022-02-16) |
parents | 4c8bedebfea2 |
children | ad0bc3efbf37 |
rev | line source |
---|---|
psychomaniak@19105 | 1 # SliTaz package receipt. |
psychomaniak@19105 | 2 |
psychomaniak@19105 | 3 PACKAGE="florence" |
Hans-G?nter@22763 | 4 VERSION="0.6.3" |
Hans-G?nter@22763 | 5 CATEGORY="utilities" |
Hans-G?nter@22763 | 6 SHORT_DESC="On-screen virtual keyboard." |
Hans-G?nter@22763 | 7 MAINTAINER="psychomaniak@xakep.ru" |
psychomaniak@19105 | 8 LICENSE="GPL" |
Hans-G?nter@22763 | 9 WEB_SITE="https://sourceforge.net/projects/florence/" |
Hans-G?nter@22763 | 10 |
psychomaniak@19105 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@22763 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL" |
psychomaniak@19105 | 13 |
Hans-G?nter@22763 | 14 DEPENDS="at-spi2 at-spi2-atk GConf gstreamer-1.0 gtk+3 librsvg" |
Hans-G?nter@22764 | 15 BUILD_DEPENDS="at-spi2 at-spi2-atk file GConf-dev gstreamer-1.0-dev |
Hans-G?nter@22763 | 16 gnome-doc-utils gnome-doc-utils-dev gtk+3-dev libnotify-dev |
Hans-G?nter@22763 | 17 librsvg-dev util-linux-uuid-dev" |
psychomaniak@19105 | 18 |
pascal@24385 | 19 # What is the latest version available today? |
pascal@24385 | 20 current_version() |
pascal@24385 | 21 { |
pascal@24385 | 22 wget -O - https://sourceforge.net/projects//florence/files/florence/ 2>/dev/null | \ |
pascal@24385 | 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24385 | 24 sed '/scope="row/!d;s|.*/florence/||;s|/.*||;q' |
pascal@24385 | 25 } |
pascal@24385 | 26 |
psychomaniak@19105 | 27 # Rules to configure and make the package. |
psychomaniak@19105 | 28 compile_rules() |
psychomaniak@19105 | 29 { |
Hans-G?nter@22763 | 30 ./configure \ |
Hans-G?nter@22763 | 31 --prefix=/usr \ |
Hans-G?nter@22763 | 32 --without-panelapplet \ |
Hans-G?nter@22763 | 33 --without-docs \ |
Hans-G?nter@22763 | 34 --without-notification \ |
psychomaniak@19105 | 35 --disable-schemas-compile |
Hans-G?nter@22763 | 36 make && |
Hans-G?nter@22763 | 37 make install |
psychomaniak@19105 | 38 } |
psychomaniak@19105 | 39 |
psychomaniak@19105 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@19105 | 41 genpkg_rules() |
psychomaniak@19105 | 42 { |
Hans-G?nter@22763 | 43 cp -a $install/* $fs |
psychomaniak@19121 | 44 sed 's|Categories.*$|&Utility;|' -i \ |
psychomaniak@19121 | 45 $fs/usr/share/applications/florence.desktop |
psychomaniak@19105 | 46 } |