summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorscheckley2021-06-07 10:23:02 +0100
committerscheckley2021-06-07 10:23:02 +0100
commit5d03299120c5078281d6e56b14282ebf834e1afb (patch)
tree181637842117bd35423c46f02d3bf37b069c698c
parent8707923f3de8a40de324d76f4108200108eaed85 (diff)
downloadaur-5d03299120c5078281d6e56b14282ebf834e1afb.tar.gz
added patch fix from jrohwer (thanks) to correct install location
-rw-r--r--PKGBUILD18
1 files changed, 10 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f911fa476f4..03084ac0cce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,16 +28,18 @@ package() {
fi
cd "$srcdir"
- sh $pkgname-$pkgver.sh -e ~/
-
- 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/
+ sh $pkgname-$pkgver.sh -e `pwd`
+ 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
install -Dm755 copasi.sh "$pkgdir/etc/profile.d/copasi.sh"