wok annotate nanoshot/receipt @ rev 25039
Up aspell-pl (6.0_20210731-0), icmptx (20190501)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 26 14:53:15 2022 +0000 (2022-05-26) |
parents | 86790a278e70 |
children | ad0bc3efbf37 |
rev | line source |
---|---|
al@13649 | 1 # SliTaz package receipt. |
al@13649 | 2 |
al@13649 | 3 PACKAGE="nanoshot" |
al@13649 | 4 VERSION="0.2.15" |
al@13649 | 5 CATEGORY="utilities" |
al@13649 | 6 SHORT_DESC="Take screenshots of screen area, selected windows, web pages and videos" |
al@13649 | 7 MAINTAINER="al.bobylev@gmail.com" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@20421 | 9 WEB_SITE="https://sourceforge.net/projects/nanoshot/" |
al@13649 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@13649 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@13649 | 12 |
al@13649 | 13 DEPENDS="xdg-utils python pygobject pygtk pycurl gnome-python-desktop \ |
al@13649 | 14 dbus-python python-pil gst-python" |
al@13649 | 15 BUILD_DEPENDS="xdg-utils python pygobject pygtk pycurl gnome-python-desktop \ |
al@13649 | 16 dbus-python python-pil bash sed" |
al@13649 | 17 |
pascal@24402 | 18 # What is the latest version available today? |
pascal@24402 | 19 current_version() |
pascal@24402 | 20 { |
pascal@24402 | 21 wget -O - https://sourceforge.net/projects/nanoshot/files/ 2>/dev/null | \ |
pascal@24402 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24402 | 23 sed '/scope="row/!d;s|.*/nanoshot-||;s|.tar.*||;q' |
pascal@24402 | 24 } |
pascal@24402 | 25 |
al@13649 | 26 # Rules to configure and make the package. |
al@13649 | 27 compile_rules() |
al@13649 | 28 { |
al@13649 | 29 mkdir -p /usr/share/man |
al@13649 | 30 cd $src |
al@13649 | 31 ./configure $CONFIGURE_ARGS && |
al@13649 | 32 sed -i 's/cp -T/cp/g' ./install |
al@13649 | 33 # fix install paths |
al@13649 | 34 sed -i "s|\"/usr|\"$install/usr|g" ./install |
al@13649 | 35 |
al@13649 | 36 ./install |
al@13649 | 37 } |
al@13649 | 38 |
al@13649 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13649 | 40 genpkg_rules() |
al@13649 | 41 { |
al@13649 | 42 cp -a $install/* $fs |
al@13649 | 43 rm -rf $fs/usr/share/icons/{Humanity,Humanity-Dark,ubuntu-mono-dark} |
al@13649 | 44 rm -rf $fs/usr/man |
al@13649 | 45 # fix paths |
al@13649 | 46 sed -i "s|$install||g" $fs/usr/bin/Nanoshot |
al@13649 | 47 } |