wok view putty/receipt @ rev 25632

Up gtklife (5.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 23 14:06:29 2023 +0000 (11 months ago)
parents d88295c12cfc
children
line source
1 # SliTaz package receipt.
3 PACKAGE="putty"
4 VERSION="0.80"
5 CATEGORY="utilities"
6 TAGS="ssh telnet"
7 SHORT_DESC="A free telnet and SSH client."
8 MAINTAINER="rcx@zoominternet.net"
9 LICENSE="MIT"
10 WEB_SITE="https://www.chiark.greenend.org.uk/~sgtatham/putty/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://the.earth.li/~sgtatham/putty/$VERSION/$TARBALL"
15 DEPENDS="atk cairo expat fontconfig freetype glib glibc-base gtk+ krb5 \
16 libcomerr3 libgio libpng libxcb pango pixman xcb-util xorg-libX11 \
17 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
18 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama \
19 xorg-libXrender zlib"
20 BUILD_DEPENDS="gtk+-dev imagemagick krb5-dev libltdl openexr perl py3k cmake"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 cmake -DCMAKE_INSTALL_PREFIX=/usr .
33 cmake --build .
34 cmake --build . --target install
35 cd $src/icons &&
36 sed -i 's|:- %s|& 2>/dev/null|' mkicon.py
38 make &&
39 make install &&
40 mkdir -p $DESTDIR/usr/share/pixmaps &&
41 cp $src/icons/pterm-48.png $DESTDIR/usr/share/pixmaps/pterm.png &&
42 cp $src/icons/putty-48.png $DESTDIR/usr/share/pixmaps/putty.png
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share
49 mkdir -p $fs/usr/share/pixmaps
51 cp -a $stuff/applications $install/usr/share
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/share/applications $fs/usr/share
54 cp -a $install/usr/share/pixmaps $fs/usr/share
55 }