# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=proj4
pkgver=4.9.3
pkgrel=0
pkgdesc="PROJ.4 - Cartographic Projections Library"
url="http://trac.osgeo.org/proj/"
arch="all"
license="MIT"
options=""
depends=""
makedepends=""
subpackages="$pkgname-doc $pkgname-dev"
source="http://download.osgeo.org/proj/proj-$pkgver.tar.gz
	"

builddir="$srcdir"/proj-$pkgver
build () {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--without-jni \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	mkdir -p $pkgdir/usr/bin
	make DESTDIR="$pkgdir" install
}
md5sums="d598336ca834742735137c5674b214a1  proj-4.9.3.tar.gz"
sha256sums="6984542fea333488de5c82eea58d699e4aff4b359200a9971537cd7e047185f7  proj-4.9.3.tar.gz"
sha512sums="98e986fc5cb0dd13dc118923df096517ba32e17dd27b725fdbbcd4235b2f25527cf63c68672dc206730bf70924ddfbd2e60d3f4af7182634be79bdf4ca9ee2cb  proj-4.9.3.tar.gz"
