# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ckermit
pkgver=9.0.302
pkgrel=6
pkgdesc="Portable scriptable network and serial communication software"
url="http://www.columbia.edu/kermit/ck90.html"
arch="all"
license="custom"
options="!check" #no test avail
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="http://www.kermitproject.org/ftp/kermit/archives/cku${pkgver/9.0./}.tar.gz
	makefile.patch
	gcc14.patch"
builddir="$srcdir"

build() {
	chmod -R og-rwx ./
	KFLAGS=-DNONOSETBUF make linux
}

package() {
	install -Dm644 COPYING.TXT $pkgdir/usr/share/licenses/$pkgname/COPYING.TXT
	install -Dm 644 ckuker.nr $pkgdir/usr/share/man/man1/ckermit.1

	install -Dm 755 wermit $pkgdir/usr/bin/ckermit
	echo "#!/usr/bin/ckermit" > _tmp.ini
	cat ckermit.ini >> _tmp.ini
	install -m 755 _tmp.ini $pkgdir/usr/bin/ckermit.ini
}

sha512sums="
2cfc264e5262d29618fdf218fd3407fd9049b16110972cdddb03d114703b7a0ea13c4b0a354f50c2a9f70d4727732fe4d1920b5c656f969bc56c1eb9dc3c43fa  cku302.tar.gz
aa23587ba85ac26e0ad5c4e0ed82d07174c67a00c76995055574b521e5f7d1d7b99696ee976b5c1943b0dc6cd837b83a94be19a38624963ea38be58e6bf7559a  makefile.patch
f816dfe03b6eeff915ab4db6351f0718b17fa4ca4d677a211bb6e26abd46131427497bbf2db385db6b9f8420475031b4be6d10862d766e21f305b861c50d8328  gcc14.patch
"
