wok annotate chemtool/receipt @ rev 14793
Normalize ownership and permissions: caps, catfish, cdparanoia-III-dev, cgames, chemtool.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 08 17:53:48 2013 +0300 (2013-07-08) |
parents | 39acb734f263 |
children | 380ffe05937a |
rev | line source |
---|---|
pankso@46 | 1 # SliTaz package receipt. |
pankso@46 | 2 |
pankso@46 | 3 PACKAGE="chemtool" |
slaxemulator@6582 | 4 VERSION="1.6.12" |
pankso@207 | 5 CATEGORY="graphics" |
pankso@46 | 6 SHORT_DESC="Small program for drawing chemical structures." |
pankso@46 | 7 MAINTAINER="pankso@slitaz.org" |
al@14793 | 8 WEB_SITE="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/" |
al@14793 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@14793 | 10 WGET_URL="$WEB_SITE$TARBALL" |
al@14793 | 11 TAGS="chemistry" |
al@14793 | 12 |
pascal@2513 | 13 DEPENDS="gtk+ xorg-libXdamage" |
pascal@1460 | 14 BUILD_DEPENDS="gtk+-dev xorg-xproto" |
pankso@46 | 15 |
pankso@46 | 16 # Rules to configure and make the package. |
pankso@46 | 17 compile_rules() |
pankso@46 | 18 { |
pascal@13829 | 19 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11" |
pankso@46 | 20 cd $src |
pascal@1460 | 21 ./configure --prefix=/usr $CONFIGURE_ARGS && |
pascal@1460 | 22 make && |
pascal@13829 | 23 make DESTDIR=$DESTDIR install |
pankso@46 | 24 } |
pankso@46 | 25 |
pankso@46 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@46 | 27 genpkg_rules() |
pankso@46 | 28 { |
pankso@46 | 29 # Needed directories. |
pankso@46 | 30 mkdir -p $fs/usr/share/locale $fs/usr/share/pixmaps \ |
samuel_trassare@12062 | 31 $fs/usr/share/examples/chemtool |
pankso@46 | 32 |
pankso@46 | 33 # Binary file. |
pascal@13829 | 34 cp -a $install/usr/bin $fs/usr |
pankso@46 | 35 |
erjo@511 | 36 # French locale, pixmap and menu. |
pascal@13829 | 37 cp -a $install/usr/share/locale/fr $fs/usr/share/locale |
erjo@511 | 38 cp -a $src/gnome/chemtool.png $fs/usr/share/pixmaps |
pankso@46 | 39 |
pankso@46 | 40 # Examples. |
pankso@46 | 41 cp -a $src/examples/a*.cht $fs/usr/share/examples/chemtool |
pankso@46 | 42 cp -a $src/examples/c*.cht $fs/usr/share/examples/chemtool |
pankso@46 | 43 cp -a $src/examples/p*.cht $fs/usr/share/examples/chemtool |
pankso@46 | 44 cp -a $src/examples/t*.cht $fs/usr/share/examples/chemtool |
al@14793 | 45 |
al@14793 | 46 chown -R root:root $fs |
pankso@46 | 47 } |