summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD4
-rw-r--r--geant4-particlexsdata.install8
3 files changed, 10 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d96832ca508..3278f00ecb0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Tue Dec 10 16:53:56 UTC 2019
+# Mon Dec 16 17:19:22 UTC 2019
pkgbase = geant4-particlexsdata
pkgdesc = Data files for evaluated particle cross-sections on natural composition of elements
pkgver = 2.1
- pkgrel = 1
+ pkgrel = 2
url = http://geant4.cern.ch/
install = geant4-particlexsdata.install
arch = any
@@ -14,7 +14,7 @@ pkgbase = geant4-particlexsdata
source = http://geant4.cern.ch/support/source/G4PARTICLEXS.2.1.tar.gz
source = geant4-particlexsdata.install
sha256sums = 094d103372bbf8780d63a11632397e72d1191dc5027f9adabaf6a43025520b41
- sha256sums = f0da8bf5dc3b889b7b1e3cad6dccdbc213c77c4882704f31cf125016c421c6e6
+ sha256sums = 5aa2e976b79285159b2c9091634fcfff878c04df0d338f50d05157df67edb332
pkgname = geant4-particlexsdata
diff --git a/PKGBUILD b/PKGBUILD
index d9ed2eb8608..730aa3dbc07 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=geant4-particlexsdata
_dataname="G4PARTICLEXS"
pkgver=2.1
-pkgrel=1
+pkgrel=2
pkgdesc="Data files for evaluated particle cross-sections on natural composition of elements"
url="http://geant4.cern.ch/"
arch=('any')
@@ -16,7 +16,7 @@ install="${pkgname}.install"
source=("http://geant4.cern.ch/support/source/${_dataname}.${pkgver}.tar.gz"
"${pkgname}.install")
sha256sums=('094d103372bbf8780d63a11632397e72d1191dc5027f9adabaf6a43025520b41'
- 'f0da8bf5dc3b889b7b1e3cad6dccdbc213c77c4882704f31cf125016c421c6e6')
+ '5aa2e976b79285159b2c9091634fcfff878c04df0d338f50d05157df67edb332')
## Remove this if you want to keep an even smaller package
## No need to wait for compression when just installing it.
diff --git a/geant4-particlexsdata.install b/geant4-particlexsdata.install
index caeef960f09..4ecf7cea1e6 100644
--- a/geant4-particlexsdata.install
+++ b/geant4-particlexsdata.install
@@ -3,9 +3,9 @@
_varname='G4PARTICLEXSDATA'
_packagename='geant4-particlexsdata'
_foldername='G4PARTICLEXS'
-_dataversion=1.1
_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