wok-stable view chemtool/receipt @ rev 5681
add ypbind-mt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 03 10:50:27 2010 +0200 (2010-06-03) |
parents | 2407153fdf77 |
children | 4b390bffacff |
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+ xorg-libXdamage"
9 BUILD_DEPENDS="gtk+-dev xorg-xproto"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/"
12 WGET_URL="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/$TARBALL"
13 TAGS="chemistry"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr $CONFIGURE_ARGS &&
20 make &&
21 make DESTDIR=$PWD/_pkg install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 # Needed directories.
28 mkdir -p $fs/usr/share/locale $fs/usr/share/pixmaps \
29 $fs/usr/share/examples/chemtool $fs/usr/share/applications
31 # Binary file.
32 cp -a $_pkg/usr/bin $fs/usr
33 strip -s $fs/usr/bin/*
35 # French locale, pixmap and menu.
36 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
37 cp -a $src/gnome/chemtool.png $fs/usr/share/pixmaps
38 cp -a stuff/chemtool.desktop $fs/usr/share/applications
40 # Examples.
41 cp -a $src/examples/a*.cht $fs/usr/share/examples/chemtool
42 cp -a $src/examples/c*.cht $fs/usr/share/examples/chemtool
43 cp -a $src/examples/p*.cht $fs/usr/share/examples/chemtool
44 cp -a $src/examples/t*.cht $fs/usr/share/examples/chemtool
45 }