blob: 9ba705a7edc82e0f80cff0a54284ff42fceef493 (
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
47
48
49
50
51
52
|
# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
# Maintainer: Bradley J Chambers <brad.chambers@gmail.com>
pkgname=libgeotiff
pkgver=1.5.1
pkgrel=0
pkgdesc="TIFF based interchange format for georeferenced raster imagery."
url="https://trac.osgeo.org/geotiff"
arch="all !x86 !armhf !armv7"
license="Public-Domain"
makedepends="
autoconf
automake
libtool
tiff-dev
proj-dev
"
subpackages="
$pkgname-dev
$pkgname-doc
"
source="http://download.osgeo.org/geotiff/libgeotiff/$pkgname-$pkgver.tar.gz"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-static
make
}
package() {
make DESTDIR="$pkgdir" install
}
check() {
# generate an example GeoTIFF
bin/makegeo
# list-out the GeoTIFF tags and keys associated with the generated GeoTIFF
bin/listgeo newgeo.tif > metadata.txt
# check if some tags are extracted correctly
grep "Ellipsoid: 7016/Everest 1830 (1967 Definition) (6377298.56,6356097.55)" metadata.txt
grep "Projection Linear Units: User-Defined (1.000000m)" metadata.txt
grep "Upper Left (130d 0' 0.00\"E, 32d 0' 0.00\"N)" metadata.txt
grep "Lower Left (130d 0' 0.00\"E, 12d 0' 0.00\"N)" metadata.txt
grep "Upper Right (150d 0' 0.00\"E, 32d 0' 0.00\"N)" metadata.txt
grep "Lower Right (150d 0' 0.00\"E, 12d 0' 0.00\"N)" metadata.txt
}
sha512sums="6599ec89dd39d975ba389584778dd084ded628d3304b302e3af25bb7d156cf583c56b52f1c89c253b041df43f99d6893190ee1556398dab1ba044f12ef8b8dc1 libgeotiff-1.5.1.tar.gz"
|