summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 807f11684d66ecc250a5c7c08377f33aa128ef2f (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.18
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=('b35cf18fddcf4823dc75b1ea32808d71')

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: