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