wok-4.x view git-gui/receipt @ rev 7303

openssh: convert dropbear host keys
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 17 17:10:28 2010 +0100 (2010-11-17)
parents c88267ec8277
children 3fa816ae7153
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 TARBALL="master.tar.gz"
10 WEB_SITE="http://www.kernel.org/pub/software/scm/git/docs/git-gui.html"
11 WGET_URL="http://repo.or.cz/w/git-gui.git/snapshot/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $PACKAGE
17 make clean
18 make && make DESTDIR=$PWD/_pkg install
19 cd ..
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 # Need to create a shortcut; change with each release :-(
26 ln -s $PACKAGE $PACKAGE-$VERSION
28 mkdir -p $fs
29 cp -a $_pkg/usr $fs/
31 # Extra icons, .desktop file etc.:
32 cp -a $WOK/$PACKAGE/stuff/* $fs/usr
34 # We do not need to strip anything!
35 }
37 # Commands to executed before/after package is installed.
38 post_install()
39 {
40 echo "Processing post-install commands..."
41 echo " - creating links... "
42 ln -sf /usr/lib/git/git-core/git-gui /usr/bin/
43 ln -sf /usr/lib/git/git-core/git-citool /usr/bin/
44 ln -sf /usr/lib/git/git-core/git-gui--askpass /usr/bin/
45 echo " - installing icons... "
46 # Loop through each icon directory, except 'default'
47 for DIR in `ls -d1 /usr/share/icons/*/ | grep -v default`
48 do
49 cp -f /usr/share/icons/SliTaz/16x16/apps/git-gui.png \
50 $DIR/16x16/apps/git-gui.png 2> /dev/null
51 cp -f /usr/share/icons/SliTaz/32x32/apps/git-gui.png \
52 $DIR/32x32/apps/git-gui.png 2> /dev/null
53 done
54 echo -n "Finished post-install commands."
55 status
56 }
58 pre_remove()
59 {
60 echo "Processing pre-remove commands..."
61 echo -n " - removing icons... "
62 for ICON in `find /usr/share/icons/ -iname git-gui.png`
63 do
64 rm $ICON
65 done
66 status
67 echo -n " - removing links... "
68 rm /usr/bin/git-gui
69 rm /usr/bin/git-citool
70 rm /usr/bin/git-gui--askpass
71 status
72 echo -n "Finished pre-remove commands."
73 status
74 }