# Contributor: Benjamin Sick # Contributor: Rich Li pkgname=gmt6 _pkgname=gmt pkgver=6.2.0 pkgrel=2 pkgdesc="Generic Mapping Tools: Tools for manipulating and plotting geographic and Cartesian data" arch=(x86_64) url="https://www.generic-mapping-tools.org" license=('LGPL') makedepends=('cmake') depends=('gdal' 'fftw' 'lapack') optdepends=( 'ghostscript' 'python-sphinx' 'gmt-coast: coastlines' 'gmt-dcw: digital chart of the world polygon map') conflicts=('gmt4' 'gmt') install='gmt.install' #source=("ftp://ftp.soest.hawaii.edu/gmt/${_pkgname}-${pkgver}-src.tar.xz") #source=("ftp://ftp.star.nesdis.noaa.gov/pub/sod/lsa/gmt/${_pkgname}-${pkgver}-src.tar.xz") #source=("ftp://ftp.iris.washington.edu/pub/gmt/${_pkgname}-${pkgver}-src.tar.xz") #source=("ftp://ftp.iag.usp.br/pub/gmt/${_pkgname}-${pkgver}-src.tar.xz") source=("https://github.com/GenericMappingTools/gmt/releases/download/${pkgver}/${_pkgname}-${pkgver}-src.tar.xz") sha512sums=('c2d742bb69298a61570c0c546c7b52d8b652029c7eab5b39f0cebbdd56fa20990b882bce2633f24d55e76be93188d122d8382b764fc4ecaa555e0ba16eac020c') prepare() { cd "${srcdir}/${_pkgname}-${pkgver}" rm -fr build && mkdir build } build() { cd "${srcdir}/${_pkgname}-${pkgver}/build" # -DLICENSE_RESTRICTED=off \ cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DGMT_LIBDIR=lib \ -DGMT_DATADIR=share/gmt \ -DGMT_MANDIR=share/man \ -DGMT_DOCDIR=share/doc/gmt \ -DGSHHG_ROOT=/usr/share/gmt/coast \ -DDCW_ROOT=/usr/share/gmt/dcw \ -DCOPY_GSHHG=OFF \ -DCOPY_DCW=OFF \ -DCMAKE_BUILD_TYPE=Release \ -DGMT_OPENMP=ON \ .. make || return 1 } package() { cd "${srcdir}/${_pkgname}-${pkgver}/build" make "DESTDIR=${pkgdir}" install || return 1 } # vim:set ts=2 sw=2 et: