wok-next diff git-gui/receipt @ rev 5994
libpng: Upgrade to 1.4.3 (security vulnerability)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Sat Aug 14 13:25:30 2010 +0000 (2010-08-14) |
parents | |
children | 91efab18a2ab |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/git-gui/receipt Sat Aug 14 13:25:30 2010 +0000 1.3 @@ -0,0 +1,74 @@ 1.4 +# SliTaz package receipt. 1.5 +PACKAGE="git-gui" 1.6 +VERSION="0.12.0.66" 1.7 +CATEGORY="development" 1.8 +SHORT_DESC="Graphical interface for the Git dRCS." 1.9 +MAINTAINER="ben@seawolfsanctuary.com" 1.10 +DEPENDS="tk git" 1.11 +BUILD_DEPENDS="$DEPENDS" 1.12 +TARBALL="master.tar.gz" 1.13 +WEB_SITE="http://www.kernel.org/pub/software/scm/git/docs/git-gui.html" 1.14 +WGET_URL="http://repo.or.cz/w/git-gui.git/snapshot/$TARBALL" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + cd $PACKAGE 1.20 + make clean 1.21 + make && make DESTDIR=$PWD/_pkg install 1.22 + cd .. 1.23 +} 1.24 + 1.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.26 +genpkg_rules() 1.27 +{ 1.28 + # Need to create a shortcut; change with each release :-( 1.29 + ln -s $PACKAGE $PACKAGE-$VERSION 1.30 + 1.31 + mkdir -p $fs 1.32 + cp -a $_pkg/usr $fs/ 1.33 + 1.34 + # Extra icons, .desktop file etc.: 1.35 + cp -a $WOK/$PACKAGE/stuff/* $fs/usr 1.36 + 1.37 + # We do not need to strip anything! 1.38 +} 1.39 + 1.40 +# Commands to executed before/after package is installed. 1.41 +post_install() 1.42 +{ 1.43 + echo "Processing post-install commands..." 1.44 + echo " - creating links... " 1.45 + ln -sf /usr/lib/git/git-core/git-gui /usr/bin/ 1.46 + ln -sf /usr/lib/git/git-core/git-citool /usr/bin/ 1.47 + ln -sf /usr/lib/git/git-core/git-gui--askpass /usr/bin/ 1.48 + echo " - installing icons... " 1.49 + # Loop through each icon directory, except 'default' 1.50 + for DIR in `ls -d1 /usr/share/icons/*/ | grep -v default` 1.51 + do 1.52 + cp -f /usr/share/icons/SliTaz/16x16/apps/git-gui.png \ 1.53 + $DIR/16x16/apps/git-gui.png 2> /dev/null 1.54 + cp -f /usr/share/icons/SliTaz/32x32/apps/git-gui.png \ 1.55 + $DIR/32x32/apps/git-gui.png 2> /dev/null 1.56 + done 1.57 + echo -n "Finished post-install commands." 1.58 + status 1.59 +} 1.60 + 1.61 +pre_remove() 1.62 +{ 1.63 + echo "Processing pre-remove commands..." 1.64 + echo -n " - removing icons... " 1.65 + for ICON in `find /usr/share/icons/ -iname git-gui.png` 1.66 + do 1.67 + rm $ICON 1.68 + done 1.69 + status 1.70 + echo -n " - removing links... " 1.71 + rm /usr/bin/git-gui 1.72 + rm /usr/bin/git-citool 1.73 + rm /usr/bin/git-gui--askpass 1.74 + status 1.75 + echo -n "Finished pre-remove commands." 1.76 + status 1.77 +}