aboutsummaryrefslogblamecommitdiffstats
path: root/community/libgeotiff/APKBUILD
blob: 519583dff4acc333bb5f870cad72f12f32bf3a64 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                           
            
        
                                                                        
                                    
          
                       
                      
             
                    


                





                    
                                                                                
 
         
                     

                                 


                                


           
                                      

 








                                                                                                  
                                                                           





                                                                           


                                                                                                                                                         
# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
# Maintainer: Bradley J Chambers <brad.chambers@gmail.com>
pkgname=libgeotiff
pkgver=1.7.0
pkgrel=2
pkgdesc="TIFF based interchange format for georeferenced raster imagery"
url="https://trac.osgeo.org/geotiff"
arch="all"
license="Public-Domain"
depends_dev="tiff-dev"
makedepends="
	$depends_dev
	autoconf
	automake
	libtool
	proj-dev
	"
subpackages="
	$pkgname-dev
	$pkgname-doc
	"
source="https://download.osgeo.org/geotiff/libgeotiff/libgeotiff-$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: 9001/metre (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="
8e294b5db89e88dbd4f7eb9d804be788ff3d14a1a14f721e9805b42cc797500596f0473dd8e5be6c1da01b56bdebc872df2b30470a2d96686f308019de10739a  libgeotiff-1.7.0.tar.gz
"