wok annotate git-gui/receipt @ rev 7337
Up: gnome-doc-utils to 0.20.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Nov 19 23:43:02 2010 +0000 (2010-11-19) |
parents | c88267ec8277 |
children | 3fa816ae7153 |
rev | line source |
---|---|
ben@5738 | 1 # SliTaz package receipt. |
ben@5738 | 2 PACKAGE="git-gui" |
ben@6417 | 3 VERSION="0.13.0" |
ben@5738 | 4 CATEGORY="development" |
ben@5738 | 5 SHORT_DESC="Graphical interface for the Git dRCS." |
ben@5738 | 6 MAINTAINER="ben@seawolfsanctuary.com" |
ben@5738 | 7 DEPENDS="tk git" |
ben@5738 | 8 BUILD_DEPENDS="$DEPENDS" |
ben@5738 | 9 TARBALL="master.tar.gz" |
ben@5738 | 10 WEB_SITE="http://www.kernel.org/pub/software/scm/git/docs/git-gui.html" |
ben@5738 | 11 WGET_URL="http://repo.or.cz/w/git-gui.git/snapshot/$TARBALL" |
ben@5738 | 12 |
ben@5738 | 13 # Rules to configure and make the package. |
ben@5738 | 14 compile_rules() |
ben@5738 | 15 { |
ben@5738 | 16 cd $PACKAGE |
ben@5738 | 17 make clean |
ben@5738 | 18 make && make DESTDIR=$PWD/_pkg install |
ben@5738 | 19 cd .. |
ben@5738 | 20 } |
ben@5738 | 21 |
ben@5738 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
ben@5738 | 23 genpkg_rules() |
ben@5738 | 24 { |
ben@5738 | 25 # Need to create a shortcut; change with each release :-( |
ben@5738 | 26 ln -s $PACKAGE $PACKAGE-$VERSION |
ben@5738 | 27 |
ben@5738 | 28 mkdir -p $fs |
ben@5738 | 29 cp -a $_pkg/usr $fs/ |
ben@5738 | 30 |
ben@5738 | 31 # Extra icons, .desktop file etc.: |
ben@5738 | 32 cp -a $WOK/$PACKAGE/stuff/* $fs/usr |
ben@5738 | 33 |
ben@5738 | 34 # We do not need to strip anything! |
ben@5738 | 35 } |
ben@5738 | 36 |
ben@5738 | 37 # Commands to executed before/after package is installed. |
ben@5738 | 38 post_install() |
ben@5738 | 39 { |
ben@5738 | 40 echo "Processing post-install commands..." |
ben@5738 | 41 echo " - creating links... " |
ben@5738 | 42 ln -sf /usr/lib/git/git-core/git-gui /usr/bin/ |
ben@5738 | 43 ln -sf /usr/lib/git/git-core/git-citool /usr/bin/ |
ben@5738 | 44 ln -sf /usr/lib/git/git-core/git-gui--askpass /usr/bin/ |
ben@5738 | 45 echo " - installing icons... " |
ben@5738 | 46 # Loop through each icon directory, except 'default' |
ben@5738 | 47 for DIR in `ls -d1 /usr/share/icons/*/ | grep -v default` |
ben@5738 | 48 do |
ben@5738 | 49 cp -f /usr/share/icons/SliTaz/16x16/apps/git-gui.png \ |
ben@5738 | 50 $DIR/16x16/apps/git-gui.png 2> /dev/null |
ben@5738 | 51 cp -f /usr/share/icons/SliTaz/32x32/apps/git-gui.png \ |
ben@5738 | 52 $DIR/32x32/apps/git-gui.png 2> /dev/null |
ben@5738 | 53 done |
ben@5738 | 54 echo -n "Finished post-install commands." |
ben@5738 | 55 status |
ben@5738 | 56 } |
ben@5738 | 57 |
ben@5738 | 58 pre_remove() |
ben@5738 | 59 { |
ben@5738 | 60 echo "Processing pre-remove commands..." |
ben@5738 | 61 echo -n " - removing icons... " |
ben@5738 | 62 for ICON in `find /usr/share/icons/ -iname git-gui.png` |
ben@5738 | 63 do |
ben@5738 | 64 rm $ICON |
ben@5738 | 65 done |
ben@5738 | 66 status |
ben@5738 | 67 echo -n " - removing links... " |
ben@5738 | 68 rm /usr/bin/git-gui |
ben@5738 | 69 rm /usr/bin/git-citool |
ben@5738 | 70 rm /usr/bin/git-gui--askpass |
ben@5738 | 71 status |
ben@5738 | 72 echo -n "Finished pre-remove commands." |
ben@5738 | 73 status |
ben@5738 | 74 } |