Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

gmt pkgbuild

By: a guest on Dec 9th, 2011  |  syntax: None  |  size: 1.18 KB  |  views: 70  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Benjamin Sick
  2.  
  3. pkgname=gmt
  4. pkgver=4.5.7
  5. pkgrel=1
  6. pkgdesc="Generic Mapping Tools: Collection of tools for manipulating geographic and Cartesian data sets, and generating EPS maps"
  7. arch=('i686' 'x86_64')
  8. url="http://gmt.soest.hawaii.edu/"
  9. license=('GPL')
  10. depends=('gdal' 'libxaw')
  11. optdepends=('csh: for some of example scripts')
  12. install=gmt.install
  13. source=(ftp://ftp.soest.hawaii.edu/gmt/${pkgname}-${pkgver}.tar.bz2)
  14. md5sums=('fc8a4a546ff8572c225aa7bdb56bbdf8')
  15.  
  16. build() {
  17.   cd ${startdir}/src/GMT${pkgver}
  18.   ./configure --prefix=/usr \
  19.               --datarootdir=/usr/share/${pkgname} \
  20.               --mandir=/usr/share/man \
  21.               --docdir=/usr/share/doc/${pkgname} \
  22.               --enable-netcdf=/usr/lib \
  23.               --enable-triangle --enable-eps --enable-gdal --enable-shared \
  24.               --disable-mex
  25.  
  26.   export MAKEFLAGS="-j1"
  27.   make
  28.   make DESTDIR=${pkgdir} install-all
  29.  
  30.   mkdir -p ${pkgdir}/etc/profile.d
  31.   cat > ${pkgdir}/etc/profile.d/gmt.sh <<END  
  32. # GMT environment variable
  33. export GMTHOME=/usr/share/gmt
  34. export GMT_SHAREDIR=/usr/share/gmt
  35. END
  36.  
  37.   chmod 755 ${pkgdir}/etc/profile.d/gmt.sh
  38.  
  39. }
  40.  
  41.  
  42. # vim:set ts=2 sw=2 et:
  43.  
  44.