wok-current view chemtool/receipt @ rev 512

Fix: adding new desktop file
author "Eric Joseph-Alewandre <erjo@slitaz.org>"
date Mon Apr 07 02:16:23 2008 +0200 (2008-04-07)
parents adb3557a25a4
children f08ead2d5191
line source
1 # SliTaz package receipt.
3 PACKAGE="chemtool"
4 VERSION="1.6.11"
5 CATEGORY="graphics"
6 SHORT_DESC="Small program for drawing chemical structures."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/"
11 WGET_URL="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure --prefix=/usr $CONFIGURE_ARGS
18 make
19 make DESTDIR=$PWD/_pkg install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 # Needed directories.
26 mkdir -p $fs/usr/share/locale $fs/usr/share/pixmaps \
27 $fs/usr/share/examples/chemtool $fs/usr/share/applications
29 # Binary file.
30 cp -a $_pkg/usr/bin $fs/usr
31 strip -s $fs/usr/bin/*
33 # French locale, pixmap and menu.
34 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
35 cp -a $src/gnome/chemtool.png $fs/usr/share/pixmaps
36 cp -a stuff/chemtool.desktop $fs/usr/share/applications
38 # Examples.
39 cp -a $src/examples/a*.cht $fs/usr/share/examples/chemtool
40 cp -a $src/examples/c*.cht $fs/usr/share/examples/chemtool
41 cp -a $src/examples/p*.cht $fs/usr/share/examples/chemtool
42 cp -a $src/examples/t*.cht $fs/usr/share/examples/chemtool
43 }