# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=librttopo
pkgver=1.1.0
pkgrel=4
pkgdesc="RT Topology Library"
url="https://git.osgeo.org/gitea/rttopo/librttopo"
arch="all"
license="GPL-2.0-or-later"
depends_dev="
	geos-dev
	"
makedepends="$depends_dev
	autoconf
	automake
	libtool
	"
subpackages="$pkgname-dev"
source="https://git.osgeo.org/gitea/rttopo/librttopo/archive/librttopo-$pkgver.tar.gz"
builddir="$srcdir/$pkgname"

build() {
	./autogen.sh
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
624c2aeff16737d0bec28f8b38427351a3af20658a077d280a1b2422697419394f36832db9459bf25c7d699bc002eaec499dcbd65bca7d2b3f8b92e78650dea3  librttopo-1.1.0.tar.gz
"
