wok view libtkimg/receipt @ rev 24904

updated mercurial (5.3.1 -> 6.1.1)
author Hans-G?nter Theisgen
date Sat Apr 09 11:11:32 2022 +0100 (2022-04-09)
parents 3abeffdae80b
children b0069c845544
line source
1 # SliTaz package receipt.
3 PACKAGE="libtkimg"
4 VERSION="1.4.13"
5 CATEGORY="development"
6 SHORT_DESC="Extended image format support for Tcl/Tk."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://tkimg.sourceforge.io/"
10 REPOLOGY="tkimg"
11 SOURCE="tkimg"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$SOURCE/$SOURCE/${VERSION%.*}/$SOURCE%20$VERSION/Img-$VERSION-Source.tar.gz"
15 DEPENDS="tk"
16 BUILD_DEPENDS="tcl-dev tcllib tk-dev xorg-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/tkimg/files/tkimg/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/tkimg%20||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make all &&
34 make install INSTALL_ROOT=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib/Img$VERSION
42 cp -a $install/usr/lib/*.sh $fs/usr/lib
43 cp -a $src/Img/exec_prefix/lib/*.sh $fs/usr/lib
44 cat $install/usr/lib/Img$VERSION/*.tcl \
45 $src/Img/exec_prefix/lib/Img/*.tcl > \
46 $fs/usr/lib/Img$VERSION/pkgIndex.tcl
47 cp -a $install/usr/lib/Img$VERSION/*.so $fs/usr/lib/Img$VERSION
48 cp -a $src/Img/exec_prefix/lib/Img/*.so $fs/usr/lib/Img$VERSION
49 }