wok-6.x annotate chemtool/receipt @ rev 25465

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 01 08:33:11 2022 +0000 (2022-10-01)
parents 67c680e33039
children
rev   line source
pankso@46 1 # SliTaz package receipt.
pankso@46 2
pankso@46 3 PACKAGE="chemtool"
Hans-G?nter@20783 4 VERSION="1.6.14"
pankso@207 5 CATEGORY="graphics"
Hans-G?nter@20783 6 TAGS="chemistry"
pankso@46 7 SHORT_DESC="Small program for drawing chemical structures."
pankso@46 8 MAINTAINER="pankso@slitaz.org"
pascal@15000 9 LICENSE="GPL2"
al@14793 10 WEB_SITE="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/"
Hans-G?nter@20783 11
al@14793 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@14793 13 WGET_URL="$WEB_SITE$TARBALL"
al@14793 14
pascal@2513 15 DEPENDS="gtk+ xorg-libXdamage"
pascal@1460 16 BUILD_DEPENDS="gtk+-dev xorg-xproto"
pankso@46 17
pascal@24433 18 # What is the latest version available today?
pascal@24433 19 current_version()
pascal@24433 20 {
pascal@24433 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24433 22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\),.*|\\1|" | sort -Vr | sed q
pascal@24433 23 }
pascal@24433 24
pankso@46 25 # Rules to configure and make the package.
pankso@46 26 compile_rules()
pankso@46 27 {
pascal@17670 28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
Hans-G?nter@20783 29 ./configure \
Hans-G?nter@20783 30 --prefix=/usr \
Hans-G?nter@20783 31 $CONFIGURE_ARGS &&
pascal@1460 32 make &&
pascal@13829 33 make DESTDIR=$DESTDIR install
pankso@46 34 }
pankso@46 35
pankso@46 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@46 37 genpkg_rules()
pankso@46 38 {
pankso@46 39 # Needed directories.
pankso@46 40 mkdir -p $fs/usr/share/locale $fs/usr/share/pixmaps \
samuel_trassare@12062 41 $fs/usr/share/examples/chemtool
pankso@46 42
pankso@46 43 # Binary file.
pascal@13829 44 cp -a $install/usr/bin $fs/usr
pankso@46 45
erjo@511 46 # French locale, pixmap and menu.
pascal@13829 47 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
erjo@511 48 cp -a $src/gnome/chemtool.png $fs/usr/share/pixmaps
pankso@46 49
pankso@46 50 # Examples.
pankso@46 51 cp -a $src/examples/a*.cht $fs/usr/share/examples/chemtool
pankso@46 52 cp -a $src/examples/c*.cht $fs/usr/share/examples/chemtool
pankso@46 53 cp -a $src/examples/p*.cht $fs/usr/share/examples/chemtool
pankso@46 54 cp -a $src/examples/t*.cht $fs/usr/share/examples/chemtool
al@14793 55
al@14793 56 chown -R root:root $fs
pankso@46 57 }