Package Details: fortran_stdlib 0.1.0-2

Git Clone URL: https://aur.archlinux.org/fortran_stdlib.git (read-only, click to copy)
Package Base: fortran_stdlib
Description: Fortran standard library
Upstream URL: https://github.com/fortran-lang/stdlib
Licenses: MIT
Submitter: MartinDiehl
Maintainer: MartinDiehl
Last Packager: MartinDiehl
Votes: 0
Popularity: 0.000000
First Submitted: 2021-11-10 14:43
Last Updated: 2021-12-08 16:29

Latest Comments

awvwgk commented on 2021-12-04 09:57

Package is currently installed in ${MINGW_PREFIX} rather than /usr, a suitable patch is provided here:

diff --git a/PKGBUILD b/PKGBUILD
index 181a951..574c86a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 _fname=stdlib
 pkgname=fortran_${_fname}
 pkgver=0.1.0
-pkgrel=1
+pkgrel=2
 arch=('i686' 'x86_64')
 pkgdesc="Fortran standard library"
 url="https://github.com/fortran-lang/stdlib"
@@ -22,7 +22,7 @@ build() {

   FC=gfortran cmake \
     -GNinja \
-    -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
+    -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=Release \
     -B"${_build}"
   cmake --build "${_build}"
@@ -34,5 +34,5 @@ package() {
   DESTDIR="${pkgdir}" \
   cmake --install .

-  install -Dm0644 ${srcdir}/${_fname}-${pkgver}/LICENSE ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE
+  install -Dm0644 "${srcdir}/${_fname}-${pkgver}/LICENSE" "${pkgdir}/share/licenses/${pkgname}/LICENSE"
 }