### this file is sourced not run
PKGVER=0.78
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=putty-$PKGVER.tar.gz
MD5SUM=6de073540eaf1ee182f9a4da61982211
SRC_URL=https://the.earth.li/~sgtatham/putty/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='gtk2' # 
SLACKDESC="putty-gtk2: putty-gtk2 $PKGVER (SSH client)  
putty-gtk2:  
putty-gtk2: PuTTY is a free implementation of Telnet and SSH for Windows and Unix 
putty-gtk2: platforms, along with an xterm terminal emulator. It is written and 
putty-gtk2: maintained primarily by Simon Tatham. It is very popular on Windows 
putty-gtk2: platform.
putty-gtk2: 
putty-gtk2: This is the GTK2 version of putty. The binary is called putty-gtk2.
putty-gtk2: 
putty-gtk2: https://www.chiark.greenend.org.uk/~sgtatham/putty/
putty-gtk2: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/putty*/unix &&
	CMAKEFLAGS="$CMAKEFLAGS -DPUTTY_GTK_VERSION=2"
	pkg_build_cmake &&
	pkg_build_slackdesc &&
	mv /usr/bin/putty{,-gtk2}
}
