wok-next diff putty/receipt @ rev 20762
Add leanify
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 05 17:27:09 2018 +0300 (2018-06-05) |
parents | dd145c435e4b |
children | f48456621a9d |
line diff
1.1 --- a/putty/receipt Wed Feb 28 17:32:31 2018 +0200 1.2 +++ b/putty/receipt Tue Jun 05 17:27:09 2018 +0300 1.3 @@ -1,49 +1,47 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="putty" 1.8 -VERSION="0.64" 1.9 +VERSION="0.70" 1.10 CATEGORY="utilities" 1.11 -SHORT_DESC="A free telnet/SSH client." 1.12 +SHORT_DESC="A free telnet/SSH client" 1.13 MAINTAINER="rcx@zoominternet.net" 1.14 LICENSE="MIT" 1.15 +WEB_SITE="https://www.chiark.greenend.org.uk/~sgtatham/putty/" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 -WEB_SITE="http://www.chiark.greenend.org.uk/~sgtatham/putty/" 1.19 -#WGET_URL="http://putty.linux-mirror.org/latest/$TARBALL" 1.20 -WGET_URL="http://the.earth.li/~sgtatham/putty/latest/$TARBALL" 1.21 -TAGS="ssh" 1.22 +WGET_URL="https://the.earth.li/~sgtatham/putty/latest/$TARBALL" 1.23 1.24 -DEPENDS="glibc-base expat zlib gtk+ atk cairo freetype fontconfig glib \ 1.25 -pango xorg-pixman libpng16 xorg-libxcb xorg-xcb-util xorg-libX11 xorg-libXau \ 1.26 -xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \ 1.27 -xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender krb5 libcomerr3" 1.28 -BUILD_DEPENDS="gtk+-dev imagemagick python perl krb5-dev openexr libltdl" 1.29 +BUILD_DEPENDS="gtk+-dev gtk+3-dev krb5-dev" 1.30 +SPLIT="putty putty-gtk3:gtk3" 1.31 1.32 -# Rules to configure and make the package. 1.33 -compile_rules() 1.34 -{ 1.35 +compile_rules() { 1.36 + case $SET in 1.37 + '') SET_ARGS='--with-gtk=2';; 1.38 + gtk3) SET_ARGS='--with-gtk=3';; 1.39 + esac 1.40 1.41 - cd $src/icons && 1.42 + ./configure \ 1.43 + $SET_ARGS \ 1.44 + $CONFIGURE_ARGS && 1.45 make && 1.46 - make install && 1.47 - mkdir -p $DESTDIR/usr/share/pixmaps && 1.48 - cp $src/icons/pterm-48.png $DESTDIR/usr/share/pixmaps/pterm.png && 1.49 - cp $src/icons/putty-48.png $DESTDIR/usr/share/pixmaps/putty.png && 1.50 - 1.51 - cd $src/unix && 1.52 + make install || return 1 1.53 1.54 - sed -e 's/-Werror//g' -i configure && 1.55 - ./configure $CONFIGURE_ARGS && 1.56 - make XFLAGS=-DTELNET_DEFAULT && 1.57 - make install 1.58 + install -Dm644 $stuff/putty.png $install/usr/share/pixmaps/putty.png 1.59 + install -Dm644 $stuff/pterm.png $install/usr/share/pixmaps/pterm.png 1.60 } 1.61 1.62 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.63 -genpkg_rules() 1.64 -{ 1.65 - mkdir -p $fs/usr/share $fs/usr/share/pixmaps 1.66 - 1.67 - cp -a $stuff/applications $install/usr/share 1.68 - cp -a $install/usr/bin $fs/usr 1.69 - cp -a $install/usr/share/applications $fs/usr/share 1.70 - cp -a $install/usr/share/pixmaps $fs/usr/share 1.71 +genpkg_rules() { 1.72 + case $PACKAGE in 1.73 + putty) 1.74 + copy @std 1.75 + DEPENDS="cairo gdk-pixbuf glib gtk+ pango xorg-libX11 krb5" 1.76 + CAT="utilities|using GTK+2" 1.77 + ;; 1.78 + putty-gtk3) 1.79 + copy @std 1.80 + DEPENDS="cairo gdk-pixbuf glib gtk+3 pango xorg-libX11 krb5" 1.81 + CAT="utilities|using GTK+3" 1.82 + ;; 1.83 + esac 1.84 + TAGS="ssh" 1.85 }