blob: 6dc3bdea6ba77467d9c5f2c970bc5f98a11733d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: L.G. Sarmiento (Pico) <Luis.Sarmientop-ala-nuclear.lu.se>
pkgname=geant4-saiddata
_varname='G4SAIDXSDATA'
_dataname="G4SAIDDATA"
_foldername="G4SAIDDATA"
pkgver=2.0
pkgrel=2
pkgdesc="Data files from evaluated cross-sections in SAID data-base"
url="http://geant4.cern.ch/"
arch=('any')
license=('GPL')
optdepends=('geant4>=10.5')
install="${pkgname}.install"
source=("https://cern.ch/geant4-data/datasets/${_dataname}.${pkgver}.tar.gz"
"${pkgname}.install")
sha256sums=('1d26a8e79baa71e44d5759b9f55a67e8b7ede31751316a9e9037d80090c72e91'
'ac997eb4707c1b66ecb9ab9e2175fd4a53f4b5e856f93187975af1353e43e02f')
## Remove this if you want to keep an even smaller package
## No need to wait for compression when just installing it.
PKGEXT='.pkg.tar'
package() {
install -d ${pkgdir}/usr/share/${pkgname}
mv ${srcdir}/${_foldername}${pkgver} ${pkgdir}/usr/share/${pkgname}
echo "export ${_varname}=/usr/share/${pkgname}/${_foldername}${pkgver}" > ${srcdir}/${pkgname}.sh
echo "setenv ${_varname} /usr/share/${pkgname}/${_foldername}${pkgver}" > ${srcdir}/${pkgname}.csh
install -d ${pkgdir}/etc/profile.d
install -m755 ${srcdir}/${pkgname}.sh ${pkgdir}/etc/profile.d/${pkgname}.sh
install -m755 ${srcdir}/${pkgname}.csh ${pkgdir}/etc/profile.d/${pkgname}.csh
}
|