# SliTaz package receipt. PACKAGE="chemtool" VERSION="1.6.12" CATEGORY="graphics" SHORT_DESC="Small program for drawing chemical structures." MAINTAINER="pankso@slitaz.org" DEPENDS="gtk+ xorg-libXdamage" BUILD_DEPENDS="gtk+-dev xorg-xproto" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/" WGET_URL="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/$TARBALL" TAGS="chemistry" # Rules to configure and make the package. compile_rules() { cd $src ./configure --prefix=/usr $CONFIGURE_ARGS && make && make DESTDIR=$PWD/_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { # Needed directories. mkdir -p $fs/usr/share/locale $fs/usr/share/pixmaps \ $fs/usr/share/examples/chemtool # Binary file. cp -a $_pkg/usr/bin $fs/usr # French locale, pixmap and menu. cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale cp -a $src/gnome/chemtool.png $fs/usr/share/pixmaps # Examples. cp -a $src/examples/a*.cht $fs/usr/share/examples/chemtool cp -a $src/examples/c*.cht $fs/usr/share/examples/chemtool cp -a $src/examples/p*.cht $fs/usr/share/examples/chemtool cp -a $src/examples/t*.cht $fs/usr/share/examples/chemtool }