diff options
author | Filippo Falezza | 2024-01-23 18:52:35 +0100 |
---|---|---|
committer | Filippo Falezza | 2024-01-23 18:52:35 +0100 |
commit | 7b04663327725b081a04ffeb5744264e25cfe5dd (patch) | |
tree | b28e5571afe6ee23589940e342ca05dd31e8f2d5 | |
parent | 1ee5174f63fb335471b82b2383d639d3405aec1e (diff) | |
download | aur-7b04663327725b081a04ffeb5744264e25cfe5dd.tar.gz |
fixed Library folder preservation
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | geant4-full.install | 4 |
3 files changed, 5 insertions, 3 deletions
@@ -42,7 +42,7 @@ pkgbase = geant4-full source = geant4-full.install source = SoQt.patch sha256sums = 46ad7fab3c5cb4bd0bdd77dd6d3e2283184819235bcbc01b2d117d81b35596a6 - sha256sums = d61d5e2d6699e7b189ba8e6a80e27e357a9231d8690a56b3cae3e23b29beddf6 + sha256sums = f679f4d7b3a58aad3f3f6b6915041219fcfe568e2e6aea263a991cb93ca394d0 sha256sums = 3b5a899436e0f0a614a17604166a0946bf2e206ef66e1161522337a5be7a8d08 pkgname = geant4-full @@ -52,7 +52,7 @@ source=( ) sha256sums=( "46ad7fab3c5cb4bd0bdd77dd6d3e2283184819235bcbc01b2d117d81b35596a6" - "d61d5e2d6699e7b189ba8e6a80e27e357a9231d8690a56b3cae3e23b29beddf6" + "f679f4d7b3a58aad3f3f6b6915041219fcfe568e2e6aea263a991cb93ca394d0" "3b5a899436e0f0a614a17604166a0946bf2e206ef66e1161522337a5be7a8d08" ) install="geant4-full.install" diff --git a/geant4-full.install b/geant4-full.install index 9dfe3581dde2..73a8f30ffd56 100644 --- a/geant4-full.install +++ b/geant4-full.install @@ -10,7 +10,9 @@ post_upgrade(){ G4LIBRARY_PATH=/opt/Geant4/Libraries G4LIBRARY_BACKUP=/opt/Geant4/Lib-backup file_check=/tmp/.G4_Library.tmp - [ "$(ls $file_check)" ] && mkdir $G4LIBRARY_PATH && mv $G4LIBRARY_BACKUP/* $G4LIBRARY_PATH && rmdir $G4LIBRARY_BACKUP && rm $file_check + [ "$(ls $file_check)" ] && mkdir -p $G4LIBRARY_PATH && mv $G4LIBRARY_BACKUP/* $G4LIBRARY_PATH && rmdir $G4LIBRARY_BACKUP && rm $file_check + + #TODO: need to automatically cleanup old libraries from the Library folder } post_install(){ |