summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: edd56c2faf72a9205ddd61b5fef52977a9cde6fa (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
# Contributor: Benjamin Sick

pkgname=gmt4
pkgver=4.5.16
pkgrel=1
pkgdesc="Generic Mapping Tools V4: Collection of tools for manipulating geographic and Cartesian data sets, and generating EPS maps."
arch=(i686 x86_64)
url="http://gmt.soest.hawaii.edu/"
license=('GPL')
depends=('gdal' 'octave' 'tcsh' 'libxaw')
optdepends=('ghostscript' 'gmt-coast')
conflicts=('gmt')
install=gmt.install
source=(ftp://ftp.soest.hawaii.edu/gmt/gmt-${pkgver}-src.tar.bz2)
md5sums=('086205d3d8a49e5edb4f79c8f2e2c58b')

build() {
  cd ${startdir}/src/gmt-${pkgver}
  ./configure --prefix=/usr \
    --enable-gdal --enable-octave \
    --enable-triangle --enable-shared \
    --enable-eps --with-gshhg-dir=/usr/share/gmt/coast
  make || return 1
}

package() {
  cd ${startdir}/src/gmt-${pkgver}
  export MAKEFLAGS="-j1"
  make DESTDIR=${pkgdir} install-all || return 1
}

# vim:set ts=2 sw=2 et: