1 # Maintainer: domanov @ gmail
6 pkgdesc="PHREEQC - A Computer Program for Speciation, Batch-Reaction, One-Dimensional Transport, and Inverse Geochemical Calculations"
8 url="http://wwwbrr.cr.usgs.gov/projects/GWC_coupled/phreeqc/"
22 source=("ftp://brrftp.cr.usgs.gov/pub/charlton/$pkgname/$pkgname-$pkgver-$_pkgsvn.source.tar.gz"
24 md5sums=('2de5ef1124623581a17ab572d84a9842'
25 'a72ee4a9093c6bc88fea88b01de2b06d')
28 cd "$srcdir/$pkgname-$pkgver/src"
29 echo '#define NA -98.7654321' > NA.h
30 make -j4 CCFLAGS="-O3 -Wall -ansi -pedantic -DHAVE_ISFINITE -DNDEBUG -mtune=native"
34 mkdir -p ${pkgdir}/bin
35 install -m755 ${srcdir}/$pkgname-$pkgver/bin/phreeqc ${pkgdir}/bin
37 mkdir -p ${pkgdir}/usr/share/phreeqc/examples
38 mkdir -p ${pkgdir}/usr/share/phreeqc/doc
39 mkdir -p ${pkgdir}/usr/share/phreeqc/test
40 mkdir -p ${pkgdir}/usr/share/phreeqc/database
41 install -m644 ${srcdir}/$pkgname-$pkgver/database/* ${pkgdir}/usr/share/phreeqc/database/
42 install -m644 ${srcdir}/$pkgname-$pkgver/test/* ${pkgdir}/usr/share/phreeqc/test/
43 install -m644 ${srcdir}/$pkgname-$pkgver/doc/* ${pkgdir}/usr/share/phreeqc/doc/
44 install -m644 ${srcdir}/$pkgname-$pkgver/examples/* ${pkgdir}/usr/share/phreeqc/examples
47 # vim:set ts=2 sw=2 et: