Package Details: copasi-bin 4.42.284-1

Git Clone URL: https://aur.archlinux.org/copasi-bin.git (read-only, click to copy)
Package Base: copasi-bin
Description: COmplex PAthway SImulator for analysis of biochemical networks and their dynamics
Upstream URL: https://copasi.org
Licenses: custom:Artistic 2.0
Submitter: micronaut
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 2
Popularity: 0.000000
First Submitted: 2021-02-28 01:24 (UTC)
Last Updated: 2023-12-02 19:32 (UTC)

Latest Comments

« First ‹ Previous 1 2

jrohwer commented on 2021-06-07 08:27 (UTC) (edited on 2021-06-07 08:37 (UTC) by jrohwer)

The latest build (4.31.243-1) fails because the PGKBUILD tries to install on the root file system and not in $pkgdir, leading to permission errors. Also the COPASI package is extracted in the user's home directory, which is not clean.

The following patch fixes it:

diff --git a/PKGBUILD b/PKGBUILD
index f911fa4..dc90524 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,15 +28,17 @@ package() {
     fi

     cd "$srcdir"
-    sh $pkgname-$pkgver.sh -e ~/
+    sh $pkgname-$pkgver.sh -e `pwd`

-    rm ~/COPASI-$pkgver-Linux-$arch_flag/share/copasi/lib/libfreetype.so.6
-    ln -s /usr/lib/libfreetype.so ~/COPASI-$pkgver-Linux-$arch_flag/share/copasi/lib/
-    ln -s /usr/lib/libfreetype.so.6 ~/COPASI-$pkgver-Linux-$arch_flag/share/copasi/lib/
+    cd "$srcdir"/COPASI-$pkgver-Linux-$arch_flag
+    rm share/copasi/lib/libfreetype.so.6
+    ln -s /usr/lib/libfreetype.so share/copasi/lib/
+    ln -s /usr/lib/libfreetype.so.6 share/copasi/lib/

     # install program files
-    install -m755 bin/* /usr/bin/
-    cp -R ~/COPASI-$pkgver-Linux-$arch_flag/share/copasi /usr/share/
+    install -d "$pkgdir"/usr/{bin,share}
+    install -m755 bin/* "$pkgdir"/usr/bin
+    cp -R share/copasi "$pkgdir"/usr/share/

     # desktop integration...
     cd "$srcdir"/copasi-desktop