wok-6.x annotate git-gui/receipt @ rev 10255
Add rake.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat May 21 04:00:00 2011 +0000 (2011-05-21) |
parents | 3fa816ae7153 |
children | 7233a836cfb2 |
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 WEB_SITE="http://www.kernel.org/pub/software/scm/git/docs/git-gui.html" |
slaxemulator@8590 | 10 WGET_URL="git|http://repo.or.cz/r/git-gui.git" |
slaxemulator@8590 | 11 BRANCH="gitgui-$VERSION" |
ben@5738 | 12 |
ben@5738 | 13 # Rules to configure and make the package. |
ben@5738 | 14 compile_rules() |
ben@5738 | 15 { |
slaxemulator@8590 | 16 cd $src |
ben@5738 | 17 make clean |
ben@5738 | 18 make && make DESTDIR=$PWD/_pkg install |
ben@5738 | 19 } |
ben@5738 | 20 |
ben@5738 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
ben@5738 | 22 genpkg_rules() |
ben@5738 | 23 { |
ben@5738 | 24 mkdir -p $fs |
ben@5738 | 25 cp -a $_pkg/usr $fs/ |
ben@5738 | 26 |
ben@5738 | 27 # Extra icons, .desktop file etc.: |
slaxemulator@9700 | 28 cp -a $stuff/* $fs/usr |
ben@5738 | 29 |
ben@5738 | 30 # We do not need to strip anything! |
ben@5738 | 31 } |
ben@5738 | 32 |
ben@5738 | 33 # Commands to executed before/after package is installed. |
ben@5738 | 34 post_install() |
ben@5738 | 35 { |
ben@5738 | 36 echo "Processing post-install commands..." |
ben@5738 | 37 echo " - creating links... " |
ben@5738 | 38 ln -sf /usr/lib/git/git-core/git-gui /usr/bin/ |
ben@5738 | 39 ln -sf /usr/lib/git/git-core/git-citool /usr/bin/ |
ben@5738 | 40 ln -sf /usr/lib/git/git-core/git-gui--askpass /usr/bin/ |
ben@5738 | 41 echo " - installing icons... " |
ben@5738 | 42 # Loop through each icon directory, except 'default' |
ben@5738 | 43 for DIR in `ls -d1 /usr/share/icons/*/ | grep -v default` |
ben@5738 | 44 do |
ben@5738 | 45 cp -f /usr/share/icons/SliTaz/16x16/apps/git-gui.png \ |
ben@5738 | 46 $DIR/16x16/apps/git-gui.png 2> /dev/null |
ben@5738 | 47 cp -f /usr/share/icons/SliTaz/32x32/apps/git-gui.png \ |
ben@5738 | 48 $DIR/32x32/apps/git-gui.png 2> /dev/null |
ben@5738 | 49 done |
ben@5738 | 50 echo -n "Finished post-install commands." |
ben@5738 | 51 status |
ben@5738 | 52 } |
ben@5738 | 53 |
ben@5738 | 54 pre_remove() |
ben@5738 | 55 { |
ben@5738 | 56 echo "Processing pre-remove commands..." |
ben@5738 | 57 echo -n " - removing icons... " |
ben@5738 | 58 for ICON in `find /usr/share/icons/ -iname git-gui.png` |
ben@5738 | 59 do |
ben@5738 | 60 rm $ICON |
ben@5738 | 61 done |
ben@5738 | 62 status |
ben@5738 | 63 echo -n " - removing links... " |
ben@5738 | 64 rm /usr/bin/git-gui |
ben@5738 | 65 rm /usr/bin/git-citool |
ben@5738 | 66 rm /usr/bin/git-gui--askpass |
ben@5738 | 67 status |
ben@5738 | 68 echo -n "Finished pre-remove commands." |
ben@5738 | 69 status |
ben@5738 | 70 } |