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