wok view libtkimg/receipt @ rev 24789

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