aboutsummaryrefslogtreecommitdiffstats
path: root/testing/proj4/APKBUILD
blob: 8a0da2ff337e5ca1bc5b9a28c46e802d0c41c02a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
pkgname=proj4
pkgver=4.8.0
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
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	update_config_sub || return 1
}

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
	rm $pkgdir/usr/lib/*.la
}

md5sums="d815838c92a29179298c126effbb1537  proj-4.8.0.tar.gz"
sha256sums="2db2dbf0fece8d9880679154e0d6d1ce7c694dd8e08b4d091028093d87a9d1b5  proj-4.8.0.tar.gz"
sha512sums="6076289f8bdf1ca3b76ea879d8c221a668fcb4a6deec7cf6a293c489dfe0b21c36da0c6ed2c7a0b8042436106e851018aa429b4731f4ff018fea2fdb8887ec76  proj-4.8.0.tar.gz"