#Packager: Richard Lapointe #Former Packager(s): Name pkgname=putty pkgver=0.62 pkgrel=1dj source=("http://the.earth.li/~sgtatham/putty/${pkgver}/${pkgname}-${pkgver}.tar.gz" "g_ascii_strcasecmp.patch") sourcetemplate=http://people.salixos.org/djemos/$pkgname/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://www.chiark.greenend.org.uk/~sgtatham/putty/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "putty (A Free Telnet/SSH Client)" "PuTTY is a free implementation of Telnet and SSH for Win32 and Unix" "platforms, along with an xterm terminal emulator. It is written and" "maintained primarily by Simon Tatham." ) build() { cd $startdir/src/$pkgname-$pkgver/unix/ patch -p2 < ../../g_ascii_strcasecmp.patch ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg cd $startdir/pkg/ install -dm755 usr/share/icons/hicolor/{16x16,32x32,48x48,64x64}/apps cd "${startdir}/src/${pkgname}-${pkgver}/windows" # lets deal with the icons for SIZE in 16x16 32x32 48x48 64x64 ; do convert -resize $SIZE putty.ico putty.$SIZE.png || return 1 install -Dm644 putty.${SIZE}-0.png ${startdir}/pkg/usr/share/icons/hicolor/${SIZE}/apps/putty.png || return 1 done # need a desktop file install -dm755 "$startdir"/pkg/usr/share/applications cat <<-_EOF_ > "$startdir"/pkg/usr/share/applications/putty.desktop [Desktop Entry] Name=Putty TryExec=putty Exec=putty %F Icon=putty Terminal=false Type=Application Categories=Application;Network GenericName=SSH/Telnet Client Comment=A terminal intergrated SSH/Telnet client _EOF_ }