wok view git-gui/receipt @ rev 10736
lxpanel: fix logout command and clean *deps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 29 14:51:18 2011 +0200 (2011-05-29) |
parents | 3fa816ae7153 |
children | 7233a836cfb2 |
line source
1 # SliTaz package receipt.
2 PACKAGE="git-gui"
3 VERSION="0.13.0"
4 CATEGORY="development"
5 SHORT_DESC="Graphical interface for the Git dRCS."
6 MAINTAINER="ben@seawolfsanctuary.com"
7 DEPENDS="tk git"
8 BUILD_DEPENDS="$DEPENDS"
9 WEB_SITE="http://www.kernel.org/pub/software/scm/git/docs/git-gui.html"
10 WGET_URL="git|http://repo.or.cz/r/git-gui.git"
11 BRANCH="gitgui-$VERSION"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 make clean
18 make && make DESTDIR=$PWD/_pkg install
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs
25 cp -a $_pkg/usr $fs/
27 # Extra icons, .desktop file etc.:
28 cp -a $stuff/* $fs/usr
30 # We do not need to strip anything!
31 }
33 # Commands to executed before/after package is installed.
34 post_install()
35 {
36 echo "Processing post-install commands..."
37 echo " - creating links... "
38 ln -sf /usr/lib/git/git-core/git-gui /usr/bin/
39 ln -sf /usr/lib/git/git-core/git-citool /usr/bin/
40 ln -sf /usr/lib/git/git-core/git-gui--askpass /usr/bin/
41 echo " - installing icons... "
42 # Loop through each icon directory, except 'default'
43 for DIR in `ls -d1 /usr/share/icons/*/ | grep -v default`
44 do
45 cp -f /usr/share/icons/SliTaz/16x16/apps/git-gui.png \
46 $DIR/16x16/apps/git-gui.png 2> /dev/null
47 cp -f /usr/share/icons/SliTaz/32x32/apps/git-gui.png \
48 $DIR/32x32/apps/git-gui.png 2> /dev/null
49 done
50 echo -n "Finished post-install commands."
51 status
52 }
54 pre_remove()
55 {
56 echo "Processing pre-remove commands..."
57 echo -n " - removing icons... "
58 for ICON in `find /usr/share/icons/ -iname git-gui.png`
59 do
60 rm $ICON
61 done
62 status
63 echo -n " - removing links... "
64 rm /usr/bin/git-gui
65 rm /usr/bin/git-citool
66 rm /usr/bin/git-gui--askpass
67 status
68 echo -n "Finished pre-remove commands."
69 status
70 }