wok diff nanoshot/receipt @ rev 14844

tightvnc-viewer: improve receipt
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Jul 18 01:30:55 2013 +0200 (2013-07-18)
parents
children 380ffe05937a
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nanoshot/receipt	Thu Jul 18 01:30:55 2013 +0200
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="nanoshot"
     1.7 +VERSION="0.2.15"
     1.8 +CATEGORY="utilities"
     1.9 +SHORT_DESC="Take screenshots of screen area, selected windows, web pages and videos"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +WEB_SITE="http://sourceforge.net/projects/nanoshot/"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.14 +
    1.15 +DEPENDS="xdg-utils python pygobject pygtk pycurl gnome-python-desktop \
    1.16 +dbus-python python-pil gst-python"
    1.17 +BUILD_DEPENDS="xdg-utils python pygobject pygtk pycurl gnome-python-desktop \
    1.18 +dbus-python python-pil bash sed"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	mkdir -p /usr/share/man
    1.24 +	cd $src
    1.25 +	./configure $CONFIGURE_ARGS &&
    1.26 +	sed -i 's/cp -T/cp/g' ./install
    1.27 +	# fix install paths
    1.28 +	sed -i "s|\"/usr|\"$install/usr|g" ./install
    1.29 +
    1.30 +	./install
    1.31 +}
    1.32 +
    1.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 +genpkg_rules()
    1.35 +{
    1.36 +	cp -a $install/* $fs
    1.37 +	rm -rf $fs/usr/share/icons/{Humanity,Humanity-Dark,ubuntu-mono-dark}
    1.38 +	rm -rf $fs/usr/man
    1.39 +	# fix paths
    1.40 +	sed -i "s|$install||g" $fs/usr/bin/Nanoshot
    1.41 +}