wok-6.x annotate libtkimg/receipt @ rev 24665

updated incron (0.5.10 -> 0.5.12)
author Hans-G?nter Theisgen
date Fri Mar 11 14:57:00 2022 +0100 (2022-03-11)
parents 65d7d867e0c1
children 5a464307b474
rev   line source
pascal@18651 1 # SliTaz package receipt.
pascal@18651 2
pascal@18651 3 PACKAGE="libtkimg"
pascal@18651 4 SOURCE="tkimg"
pascal@18651 5 VERSION="1.4.2"
pascal@18651 6 CATEGORY="development"
pascal@18651 7 SHORT_DESC="Extended image format support for Tcl/Tk"
pascal@18651 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18651 9 LICENSE="BSD GPL2"
pascal@18651 10 TARBALL="$SOURCE$VERSION.tar.bz2"
pascal@18651 11 WEB_SITE="http://tkimg.sourceforge.net/"
pascal@18651 12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
pascal@18651 13
pascal@18651 14 DEPENDS="tk"
pascal@18651 15 BUILD_DEPENDS="tcllib tcl-dev tk-dev xorg-dev"
pascal@18651 16
pascal@24411 17 # What is the latest version available today?
pascal@24411 18 current_version()
pascal@24411 19 {
pascal@24411 20 wget -O - https://sourceforge.net/projects/tkimg/files/tkimg/ 2>/dev/null | \
pascal@24411 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24414 22 sed '/scope="row/!d;s|.*/tkimg%20||;s|/.*||;q'
pascal@24411 23 }
pascal@24411 24
pascal@18651 25 # Rules to configure and make the package.
pascal@18651 26 compile_rules()
pascal@18651 27 {
pascal@18651 28 make distclean
pascal@18651 29 ./configure --prefix=/usr \
pascal@18651 30 --mandir=/usr/share/man \
pascal@18651 31 $CONFIGURE_ARGS &&
pascal@18651 32 make all &&
pascal@18651 33 make INSTALL_ROOT=$DESTDIR install
pascal@18651 34 }
pascal@18651 35
pascal@18651 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18651 37 genpkg_rules()
pascal@18651 38 {
pascal@18651 39 mkdir -p $fs/usr/lib/Img$VERSION
pascal@18651 40 cp -a $install/usr/lib/*.sh $fs/usr/lib
pascal@18652 41 cp -a $src/Img/exec_prefix/lib/*.sh $fs/usr/lib
pascal@18652 42 cat $install/usr/lib/Img$VERSION/*.tcl \
pascal@18654 43 $src/Img/exec_prefix/lib/Img/*.tcl > \
pascal@18653 44 $fs/usr/lib/Img$VERSION/pkgIndex.tcl
pascal@18651 45 cp -a $install/usr/lib/Img$VERSION/*.so $fs/usr/lib/Img$VERSION
pascal@18652 46 cp -a $src/Img/exec_prefix/lib/Img/*.so $fs/usr/lib/Img$VERSION
pascal@18651 47 }