wok annotate putty/receipt @ rev 25811

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