wok-current view chemtool/receipt @ rev 24859
updated linuxdcpp (1.0.3 -> 1.1.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 29 10:13:07 2022 +0100 (2022-03-29) |
parents | 67c680e33039 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="chemtool"
4 VERSION="1.6.14"
5 CATEGORY="graphics"
6 TAGS="chemistry"
7 SHORT_DESC="Small program for drawing chemical structures."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE$TARBALL"
15 DEPENDS="gtk+ xorg-libXdamage"
16 BUILD_DEPENDS="gtk+-dev xorg-xproto"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\),.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
29 ./configure \
30 --prefix=/usr \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 # Needed directories.
40 mkdir -p $fs/usr/share/locale $fs/usr/share/pixmaps \
41 $fs/usr/share/examples/chemtool
43 # Binary file.
44 cp -a $install/usr/bin $fs/usr
46 # French locale, pixmap and menu.
47 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
48 cp -a $src/gnome/chemtool.png $fs/usr/share/pixmaps
50 # Examples.
51 cp -a $src/examples/a*.cht $fs/usr/share/examples/chemtool
52 cp -a $src/examples/c*.cht $fs/usr/share/examples/chemtool
53 cp -a $src/examples/p*.cht $fs/usr/share/examples/chemtool
54 cp -a $src/examples/t*.cht $fs/usr/share/examples/chemtool
56 chown -R root:root $fs
57 }