Package Details: phreeqc 3.8.6-2

Git Clone URL: https://aur.archlinux.org/phreeqc.git (read-only, click to copy)
Package Base: phreeqc
Description: A Computer Program for Speciation, Batch-Reaction, One-Dimensional Transport, and Inverse Geochemical Calculations
Upstream URL: https://www.usgs.gov/software/phreeqc-version-3
Licenses: custom:CC0
Submitter: dtbaumann
Maintainer: dtbaumann
Last Packager: dtbaumann
Votes: 3
Popularity: 0.000000
First Submitted: 2015-08-16 08:19 (UTC)
Last Updated: 2025-09-09 16:29 (UTC)

Latest Comments

SoBC commented on 2025-08-21 14:18 (UTC)

Found several problems with the current PKGBUILD: 1. URL seemed outdated and refer to another page 2. the http download leads to a connection error, at least for me. 3. Checksum mismatch on phreeqc.el

Please see the suggested patch attached.

diff --git a/PKGBUILD b/PKGBUILD
index 16761d4..5726b40 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,18 +5,18 @@ _pkgsvn=17100
 pkgrel=1
 pkgdesc="A Computer Program for Speciation, Batch-Reaction, One-Dimensional Transport, and Inverse Geochemical Calculations"
 arch=('x86_64')
-url="http://wwwbrr.cr.usgs.gov/projects/GWC_coupled/phreeqc/"
+url="https://www.usgs.gov/software/phreeqc-version-3/"
 license=('custom:CC0')
 depends=('gmp')
 backup=()
 install="install.sh"
-source=("http://water.usgs.gov/water-resources/software/PHREEQC/${pkgname}-${pkgver}-${_pkgsvn}.tar.gz"
+source=("https://water.usgs.gov/water-resources/software/PHREEQC/${pkgname}-${pkgver}-${_pkgsvn}.tar.gz"
         install.sh
         phreeqc.el
         phreeqc-tmplog.patch)
 md5sums=('7d0fd60d4e3d774ad467270f25f9550b'
          '8facd6e784cd1985b2c57c092b753002'
-         'a35830b02368dba33419d904acfd64b4'
+         'a059e5cf856ab104d278185d4f4199d6'
          '88b218f5687246282a9cca3c3d95118d')
 backup=(usr/share/phreeqc/database/phreeqc.dat)

domanov commented on 2025-08-01 14:52 (UTC)

The new PKGBUILD here (if I got markdown syntax right):

# Maintainer: arch AT nnamuab DOT de
pkgname=phreeqc
pkgver=3.8.6
_pkgsvn=17100
pkgrel=1
pkgdesc="A Computer Program for Speciation, Batch-Reaction, One-Dimensional Transport, and Inverse Geochemical Calculations"
arch=('x86_64')
url="http://wwwbrr.cr.usgs.gov/projects/GWC_coupled/phreeqc/"
license=('custom:CC0')
depends=('gmp')
backup=()
install="install.sh"
source=("https://water.usgs.gov/water-resources/software/PHREEQC/${pkgname}-${pkgver}-${_pkgsvn}.tar.gz"
        install.sh
        phreeqc.el)
#        phreeqc-tmplog.patch)

sha256sums=('b5c4a6dfea1a6bb6a3436857a50346bb943904a49582714494b4f1b1e54e64e1'
            'dc5f46a6f7fea5c967aee0fa2e210c4e529eb7ec5b2550fc9c74bb57e1b7f413'
            '42ee3e14afb67cc46ed1cd55274751e7cd3cab5ed0abeda574d27d84a1700ea5')


build() {
    cd "$srcdir/$pkgname-$pkgver-$_pkgsvn"
    # patch -p0 -i "${srcdir}/phreeqc-tmplog.patch"
    ./configure --prefix=/usr
    make CCFLAGS="-O3 -Wall -ansi -pedantic -DHAVE_ISFINITE -DNDEBUG -mtune=native"
}

package() {
    cd "$srcdir/$pkgname-$pkgver-$_pkgsvn"

    make DESTDIR="${pkgdir}" install

    # move database and example files into previous location
    mkdir -p ${pkgdir}/usr/share/phreeqc/
    mv ${pkgdir}/usr/share/doc/phreeqc/database ${pkgdir}/usr/share/phreeqc/
    mv ${pkgdir}/usr/share/doc/phreeqc/examples ${pkgdir}/usr/share/phreeqc/

    # install supplementary files
    mkdir -p ${pkgdir}/usr/share/emacs/site-lisp/$pkgname
    install -m644 ../phreeqc.el ${pkgdir}/usr/share/emacs/site-lisp/$pkgname

    # install licence
    mkdir -p ${pkgdir}/usr/share/licenses/$pkgname
    install -m644 doc/NOTICE ${pkgdir}/usr/share/licenses/$pkgname
}

# vim:set ts=2 sw=2 et:

SoBC commented on 2023-04-13 16:16 (UTC) (edited on 2023-04-17 10:46 (UTC) by SoBC)

Thank you for the package! Unfortunately, with the version bump to 3.7.3 you removed folding.el from the sources list, but forget to remove the file from the install function, causing the installation process to fail. Maybe you can fix this.

EDIT: Thank you very much for fixing it quickly!

dtbaumann commented on 2021-07-05 16:03 (UTC)

There are significant changes to the databases supplied with phreeqc, which make phreeqc 3.7.0 behave differently to 3.6.2 for carbonate systems. It might be advisable to do cross-checks.

klooth commented on 2017-09-18 18:20 (UTC)

That would be great! Thanks a lot for the effort. For me, personally, w/o openmpi.

dtbaumann commented on 2017-09-18 15:31 (UTC)

I'll look into it, w/ or w/o openmpi?

klooth commented on 2017-09-18 14:47 (UTC)

Thanks for the package. Do you think, you could also create/maintain a package for USGS's PHAST? See: https://wwwbrr.cr.usgs.gov/projects/GWC_coupled/phast/