wok annotate nanoshot/receipt @ rev 14908

slitaz-i18n: rewrite locale-pack.functions; slitaz-configs: now generate openbox desktop menu using po files; locale-*: update using new locale-pack.functions (FIXME: post_remove)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Aug 03 17:37:48 2013 +0300 (2013-08-03)
parents
children 380ffe05937a
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"
al@13649 8 WEB_SITE="http://sourceforge.net/projects/nanoshot/"
al@13649 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@13649 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
al@13649 11
al@13649 12 DEPENDS="xdg-utils python pygobject pygtk pycurl gnome-python-desktop \
al@13649 13 dbus-python python-pil gst-python"
al@13649 14 BUILD_DEPENDS="xdg-utils python pygobject pygtk pycurl gnome-python-desktop \
al@13649 15 dbus-python python-pil bash sed"
al@13649 16
al@13649 17 # Rules to configure and make the package.
al@13649 18 compile_rules()
al@13649 19 {
al@13649 20 mkdir -p /usr/share/man
al@13649 21 cd $src
al@13649 22 ./configure $CONFIGURE_ARGS &&
al@13649 23 sed -i 's/cp -T/cp/g' ./install
al@13649 24 # fix install paths
al@13649 25 sed -i "s|\"/usr|\"$install/usr|g" ./install
al@13649 26
al@13649 27 ./install
al@13649 28 }
al@13649 29
al@13649 30 # Rules to gen a SliTaz package suitable for Tazpkg.
al@13649 31 genpkg_rules()
al@13649 32 {
al@13649 33 cp -a $install/* $fs
al@13649 34 rm -rf $fs/usr/share/icons/{Humanity,Humanity-Dark,ubuntu-mono-dark}
al@13649 35 rm -rf $fs/usr/man
al@13649 36 # fix paths
al@13649 37 sed -i "s|$install||g" $fs/usr/bin/Nanoshot
al@13649 38 }