summarylogtreecommitdiffstats
path: root/geant4-piidata.install
diff options
context:
space:
mode:
authorL.G. Sarmiento2019-12-16 18:46:34 +0100
committerL.G. Sarmiento2019-12-16 18:46:34 +0100
commitbd4639dabc6d1e31a5230d2de2271c159e2f3971 (patch)
treef2d4007b8e49a969bfa13f8e827275d5cd570fd0 /geant4-piidata.install
parent389932f2580ca33340368d89cd770f0a1136d584 (diff)
downloadaur-bd4639dabc6d1e31a5230d2de2271c159e2f3971.tar.gz
fixed automatic version in the install file
Diffstat (limited to 'geant4-piidata.install')
-rw-r--r--geant4-piidata.install8
1 files changed, 5 insertions, 3 deletions
diff --git a/geant4-piidata.install b/geant4-piidata.install
index b4f0f3d6df4..01ad937a826 100644
--- a/geant4-piidata.install
+++ b/geant4-piidata.install
@@ -3,9 +3,9 @@
_varname='G4PIIDATA'
_packagename='geant4-piidata'
_foldername='G4PII'
-_dataversion=1.3
_add() {
+ _dataversion=${1}
echo "export ${_varname}=/usr/share/${_packagename}/${_foldername}${_dataversion}" >> /etc/profile.d/geant4.sh
echo "setenv ${_varname} /usr/share/${_packagename}/${_foldername}${_dataversion}" >> /etc/profile.d/geant4.csh
}
@@ -19,13 +19,15 @@ pre_install() {
_remove
}
post_install() {
- _add
+ _version=${1::-2}
+ _add ${_version}
}
pre_upgrade() {
_remove
}
post_upgrade() {
- _add
+ _version=${1::-2}
+ _add ${_version}
}
pre_remove() {
_remove