# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=sp
pkgver=1.3.4
pkgrel=0
pkgdesc="An SGML system conforming to ISO 8879"
url="http://www.jclark.com/sp/"
arch="all"
options="!check"  # No test suite.
license="X11"
depends=""
makedepends="$depends_dev"
subpackages=""
source="ftp://ftp.jclark.com/pub/sp/sp-$pkgver.tar.gz
	configure.patch
	nsgmls-c++-fix.patch
	"

build() {
	make
}

package() {
	# it will not create the prefix directory itself
	mkdir -p "$pkgdir"/usr
	make DESTDIR="$pkgdir" install
}

sha512sums="3abf007fa366ddb50d2b7d8b9462915de973dc6c7abe8e44b679c745ce81f0a57373808398abca5856b38082ed1e44667658965a881a147d8f761a5c4f4794df  sp-1.3.4.tar.gz
aeabaf67a8e10b3674bbda3e258e95d80a7dcdca2d8001c1cd989cbc00b8163958bd4fe833d49079397ffbe6e46e3ffad07f0bb0bbfeb1ec149c7b0cb2034630  configure.patch
38df9de011686990d927a495162011ac54ac6af58be3d73f8729ab74df9e112f42a0c4342a12dfdf43a3b47861a64a1b6b077e42072d0d4b9dd1bb159a4f200b  nsgmls-c++-fix.patch"