wok-next view chemtool/receipt @ rev 19001
Use variables in $TARBALL
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 23 11:51:37 2016 +0200 (2016-03-23) |
parents | 380ffe05937a |
children | f99935f1778a |
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 LICENSE="GPL2"
9 WEB_SITE="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$WEB_SITE$TARBALL"
12 TAGS="chemistry"
14 DEPENDS="gtk+ xorg-libXdamage"
15 BUILD_DEPENDS="gtk+-dev xorg-xproto"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
21 cd $src
22 ./configure --prefix=/usr $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 # Needed directories.
31 mkdir -p $fs/usr/share/locale $fs/usr/share/pixmaps \
32 $fs/usr/share/examples/chemtool
34 # Binary file.
35 cp -a $install/usr/bin $fs/usr
37 # French locale, pixmap and menu.
38 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
39 cp -a $src/gnome/chemtool.png $fs/usr/share/pixmaps
41 # Examples.
42 cp -a $src/examples/a*.cht $fs/usr/share/examples/chemtool
43 cp -a $src/examples/c*.cht $fs/usr/share/examples/chemtool
44 cp -a $src/examples/p*.cht $fs/usr/share/examples/chemtool
45 cp -a $src/examples/t*.cht $fs/usr/share/examples/chemtool
47 chown -R root:root $fs
48 }