aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorHolger Jaekel <holger.jaekel@gmx.de>2019-06-11 21:11:29 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-06-16 05:40:25 -0300
commit78fab2034506bac4356c3d25d2eb18179f11f2ed (patch)
treeb1e815994709366c2186fdbf787d19167a6472c2 /testing
parentd4089236cd74cdde54acd5f6ba4bbe9788836caa (diff)
downloadaports-78fab2034506bac4356c3d25d2eb18179f11f2ed.tar.bz2
aports-78fab2034506bac4356c3d25d2eb18179f11f2ed.tar.xz
testing/proj4: add datumgrid subpackage
add subpackage for datum grids closes #10434
Diffstat (limited to 'testing')
-rw-r--r--testing/proj4/APKBUILD21
1 files changed, 20 insertions, 1 deletions
diff --git a/testing/proj4/APKBUILD b/testing/proj4/APKBUILD
index ee43382b7f..c31bdc20e1 100644
--- a/testing/proj4/APKBUILD
+++ b/testing/proj4/APKBUILD
@@ -1,7 +1,8 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=proj4
pkgver=6.1.0
-pkgrel=2
+pkgrel=3
+_datumgridver=1.8
_jdkver=10
pkgdesc="PROJ.4 - Cartographic Projections Library"
url="https://trac.osgeo.org/proj/"
@@ -18,15 +19,23 @@ subpackages="
$pkgname-static
$pkgname-util:util
java-$pkgname:java:noarch
+ $pkgname-datumgrid:datumgrid:noarch
$pkgname-dev
"
source="
http://download.osgeo.org/proj/proj-$pkgver.tar.gz
+ http://download.osgeo.org/proj/proj-datumgrid-$_datumgridver.zip
10-test-tolerance.patch
TestJni.java
"
builddir="$srcdir/proj-$pkgver"
+
+prepare() {
+ default_prepare
+ unzip -o "$srcdir/proj-datumgrid-$_datumgridver.zip" -d data/
+}
+
build () {
./configure \
CPPFLAGS=-I/usr/lib/jvm/java-${_jdkver}-openjdk/include/linux \
@@ -41,6 +50,8 @@ build () {
}
package() {
+ depends="$pkgname-datumgrid"
+
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir/usr/share/doc/$pkgname/javadoc"
@@ -48,6 +59,13 @@ package() {
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
+datumgrid() {
+ pkgdesc="Cartographic projection filter and library (datum package)"
+
+ mkdir -p "$subpkgdir/usr/share/proj"
+ mv "$pkgdir/usr/share/proj" "$subpkgdir/usr/share"
+}
+
java() {
pkgdesc="Cartographic projection library (JNI bindings)"
depends="so:libproj.so.15"
@@ -85,5 +103,6 @@ check() {
}
sha512sums="7e7af901031801aa799df5dd2c863f31f0fb98eef7cc6883257bc4778b2df1b8eeee30f8ffca2f882261655ebfb04d46804dd87192bb47a58e9a253d4c461c69 proj-6.1.0.tar.gz
+991206f17348b3de484eb5364d773cd06577057228c2d1a0a1c1658308e2596ca13338a666fa71ddd76d538f23dd5bf21e178fd26a785717edd847a17e5c0cd1 proj-datumgrid-1.8.zip
d26e7e4c87e322682fad2bb6e4dec09f610dfc9f9d82b3c96fe379167fef47ad67449701c32efc6cd44f66621354585a436130148df3fbbbf085adda1371bf7a 10-test-tolerance.patch
36fe2482f89c6ca38883db99b7f1bf5c650a499c678f799f6b10040e3c90873f6c8bfae08f80eaca99b8957a5361b6966f1925184b4050885af1808e05d063e9 TestJni.java"