updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / vapor / PKGBUILD
blob517c3752f732b6b135ece2a273e83cde1b07aafb
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
3 # Contributor: Blind <x15@gmx.net>
5 pkgname=vapor
6 pkgver=1.5.2
7 pkgrel=1
8 pkgdesc='A visualization and analysis platform for ocean, atmosphere, and solar researchers.'
9 arch=('i686' 'x86_64')
10 url='http://www.vapor.ucar.edu/'
11 license=('BSD')
12 depends=('qt3' 'netcdf' 'libgeotiff' 'perl')
13 optdepends=('bash: for some scripts'
14             'tcsh: for some scripts'
15             'perl: for some scripts')
16 source=("ftp://ftp.ucar.edu/vapor/source/$pkgname-$pkgver-src.tar.gz"
17         "$pkgname.patch")
18 md5sums=('615ac60aaf1680689e98dbb14fe6a6d3'
19          'c33c51eff7a197fb809a9a2fca694986')
21 build() {
22   cd $pkgname-$pkgver/$pkgname
24   # configure
25   sed \
26     -e "s,/usr/local,$pkgdir/usr," \
27     -e "s,RELEASE=0,RELEASE=1," \
28     -e "s,QTDIR =,QTDIR = /opt/qt," \
29     -e "s,BUILD_AMR_SUPPORT = 0,BUILD_AMR_SUPPORT = 1," \
30     -i options.mk
31   sed "s,/usr/bin/install,/bin/install," -i make/config/Linux.mk
33   # make and install
34   #patch -Np0 -i ../../$pkgname.patch || return 1
35   make || return 1
38 package() {
39   cd $pkgname-$pkgver/$pkgname
41   make install || return 1
43   # fix paths in setup scripts
44   sed "s,$pkgdir/usr,/usr," -i "$pkgdir"/usr/bin/$pkgname-setup.{csh,sh}
46   # install license
47   install -Dm644 LICENSE.htm "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.html