I suggest updating the PKGBUILD with the followings:
pkgname=cernlib
pkgver=2025.03.07.0
pkgrel=1
pkgdesc="A large collection of CERN libraries and tools for high energy physics, e.g. PAW and GEANT 3.21."
arch=('x86_64' 'i686')
url="https://cernlib.web.cern.ch/index.html"
license=('GPL3')
depends=('cmake' 'make' 'openssl' 'lapack' 'blas' 'gcc' 'libnsl' 'gcc-fortran' 'openmotif' 'git' 'freetype2' 'gawk' 'libxau' 'libxaw' 'freetype2' 'bc' 'findutils' 'xbae')
optdepends=()
source=("https://cernlib.web.cern.ch/cernlib/download/2025_source/tar/${pkgname}-${pkgname}-${pkgver}-free.tar.gz"
)
noextract=()
sha256sums=('9e03c30384e2343ec839e76e0f1d5f178f88015551de4ef27191e4dbf880e834')
build() {
cd "$srcdir/${pkgname}-${pkgname}-${pkgver}-free"
mkdir -p build
cd build
cmake -S ../ -B ./ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_POLICY_VERSION_MINIMUM=4.0
cmake --build ./
}
package() {
cd "$srcdir/${pkgname}-${pkgname}-${pkgver}-free"
cd build
DESTDIR="$pkgdir/" cmake --install . --prefix=/usr
rm $pkgdir/usr/include/cfortran.h ## TODO: conflicts with ROOT
}
Pinned Comments
fsiegert commented on 2022-11-14 09:03 (UTC)
@MarsSeed, @all
I have uploaded a PKGBUILD that builds from source based on the new maintenance release 2022.11.08.0 (thanks to and with the help from Andrii Verbytskyi). I am not a user of cernlib though, so cannot test in detail and rely on others to test and report possible improvements (or take over (co-)maintainership directly if they want).