wok-next view chemtool/receipt @ rev 14907
lxinput: up 0.3.2; openbox: fix pipe menu display; slitaz-i18n: add missing core packages; tiny edits.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Aug 02 15:13:41 2013 +0300 (2013-08-02) |
parents | 39acb734f263 |
children | 380ffe05937a |
line source
1 # SliTaz package receipt.
3 PACKAGE="chemtool"
4 VERSION="1.6.12"
5 CATEGORY="graphics"
6 SHORT_DESC="Small program for drawing chemical structures."
7 MAINTAINER="pankso@slitaz.org"
8 WEB_SITE="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WGET_URL="$WEB_SITE$TARBALL"
11 TAGS="chemistry"
13 DEPENDS="gtk+ xorg-libXdamage"
14 BUILD_DEPENDS="gtk+-dev xorg-xproto"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11"
20 cd $src
21 ./configure --prefix=/usr $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 # Needed directories.
30 mkdir -p $fs/usr/share/locale $fs/usr/share/pixmaps \
31 $fs/usr/share/examples/chemtool
33 # Binary file.
34 cp -a $install/usr/bin $fs/usr
36 # French locale, pixmap and menu.
37 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
38 cp -a $src/gnome/chemtool.png $fs/usr/share/pixmaps
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
46 chown -R root:root $fs
47 }