Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

gmt PKGBUILD

By: a guest on Nov 18th, 2010  |  syntax: Bash  |  size: 1.55 KB  |  hits: 90  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Benjamin Sick
  2. pkgname=gmt
  3. pkgver=4.5.5
  4. pkgrel=1
  5. pkgdesc="Generic Mapping Tools: Collection of tools for manipulating geographic and Cartesian data sets, and generating EPS maps."
  6. arch=(i686 x86_64)
  7. url="http://gmt.soest.hawaii.edu/"
  8. license=('GPL')
  9. depends=('netcdf')
  10. makedepends=()
  11. provides=()
  12. install=gmt.install
  13. source=(ftp://ftp.soest.hawaii.edu/gmt/GMT${pkgver}'_'src.tar.bz2 ftp://ftp.soest.hawaii.edu/gmt/GMT${pkgver}'_'share.tar.bz2 ftp://ftp.soest.hawaii.edu/gmt/GMT${pkgver}'_'suppl.tar.bz2 ftp://ftp.soest.hawaii.edu/gmt/GMT${pkgver}'_'triangle.tar.bz2 ftp://ftp.soest.hawaii.edu/gmt/GSHHS'_'coast.tar.bz2)
  14. md5sums=('051554f98bff57365eebab2d227e3285' '55b9142fb8ad3e17a49542f42b36d923' '38e01e420876bfe3cafe60b207c91de6' '36a4788e72aa3dc557a256bca14f79a0' '1f84a99effe96e12fb60f31fa3cf35bb')
  15.  
  16. build() {
  17.   cd $startdir/src/GMT$pkgver
  18.   mv -f ../share/coast share/ # move coastline files
  19.   ./configure --prefix=/usr --enable-triangle --disable-octave --disable-mex --disable-xgrid --mandir=$startdir/pkg/usr/share/man --enable-netcdf=/usr --datarootdir=$startdir/pkg/usr/share/gmt
  20.   make || return 1
  21.   make prefix=$startdir/pkg/usr install-gmt || return 1
  22.   make prefix=$startdir/pkg/usr datarootdir=$startdir/pkg/usr/share/gmt install-man || return 1
  23.   make prefix=$startdir/pkg/usr datarootdir=$startdir/pkg/usr/share/gmt install-data || return 1
  24.   make prefix=$startdir/pkg/usr datarootdir=$startdir/pkg/usr/share/gmt install-suppl || return 1
  25.  
  26.   install src/README.TRIANGLE -Dm644 ${pkgdir}/usr/share/licenses/$pkgname/README.TRIANGLE
  27. }