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

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