wok-current annotate gtk-screenshot/receipt @ rev 24797
updated libhtp and libhtp-dev (0.5.32 -> 0.5.39)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 21 17:10:45 2022 +0100 (2022-03-21) |
parents | a88f87d4098b |
children | ad0bc3efbf37 |
rev | line source |
---|---|
al@14427 | 1 # SliTaz package receipt. |
al@14427 | 2 |
al@14427 | 3 PACKAGE="gtk-screenshot" |
Hans-G?nter@22899 | 4 VERSION="0.2.0" |
al@14427 | 5 CATEGORY="x-window" |
Hans-G?nter@22899 | 6 TAGS="gtk2 screenshot" |
Hans-G?nter@22899 | 7 SHORT_DESC="A simple GTK+ tool to take screen capture in interactive mode or in shell." |
al@14427 | 8 MAINTAINER="al.bobylev@gmail.com" |
pascal@15000 | 9 LICENSE="GPL2" |
pascal@20421 | 10 WEB_SITE="https://sourceforge.net/projects/gtk-screenshot/" |
Hans-G?nter@22899 | 11 |
Hans-G?nter@22899 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@14427 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@14427 | 14 |
al@14427 | 15 DEPENDS="gtk+" |
Hans-G?nter@22899 | 16 BUILD_DEPENDS="autoconf automake gtk+-dev libxml2-dev xorg-libXext-dev" |
al@14427 | 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/gtk-screenshot/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|.*/gtk-screenshot-||;s|.tar.*||;q' |
pascal@24403 | 24 } |
pascal@24403 | 25 |
al@14427 | 26 # Rules to configure and make the package. |
al@14427 | 27 compile_rules() |
al@14427 | 28 { |
al@14427 | 29 cp $stuff/ru.po $src/po |
al@14427 | 30 autoreconf |
Hans-G?nter@22899 | 31 sed -i 's|ALL_LINGUAS="fr"|ALL_LINGUAS="fr ru"|' \ |
Hans-G?nter@22899 | 32 $src/configure |
Hans-G?nter@22899 | 33 |
Hans-G?nter@22899 | 34 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@22899 | 35 make && |
Hans-G?nter@22899 | 36 make install |
Hans-G?nter@22899 | 37 |
al@14427 | 38 sed -i 's|int|in|' $install/usr/bin/screenshot # typo |
al@14427 | 39 } |
al@14427 | 40 |
al@14427 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@14427 | 42 genpkg_rules() |
al@14427 | 43 { |
Hans-G?nter@22899 | 44 cp -a $install/* $fs |
Hans-G?nter@22899 | 45 rm -rf $fs/usr/share/man |
al@14427 | 46 } |