blob: 775a73aef1e36facf6fb1e1905233fb1f59b24d5 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: eolianoe <eolianoe [At] GmaiL [Dot] com>
# Contributor: Dmitriy Morozov <archlinux@foxcub.org>
pkgname=visit-bin
_pkgname=visit
pkgver=2.10.2
_pkgver=${pkgver//./_}
pkgrel=1
pkgdesc="Interactive parallel visualization and graphical analysis tool"
url="https://wci.llnl.gov/simulation/computer-codes/visit"
arch=('x86_64')
license=('BSD' 'custom')
provides=('visit')
conflicts=('visit' 'visit-build')
depends=('libpng12' 'glu')
makedepends=('bash' 'cpio')
_ver=rhel6
_url="http://visit.ilight.com/svn/${_pkgname}/trunk/releases/${pkgver}"
source=("${_url}/${_pkgname}${_pkgver}.linux-x86_64-${_ver}.tar.gz"
"${_url}/${_pkgname}-install${_pkgver}"
'visit-bin.sh'
'visit-libs.patch')
noextract=("${_pkgname}${_pkgver}.linux-x86_64-${_ver}.tar.gz")
sha256sums=('139fa0f2f68b59dc4b91db039f95ba6b4377f85a7c26c1beafd43433e9c362e7'
'76e4e69f2064f0e4cc64da72e3dc9ed235578e955f610c2c32640e94a1caea94'
'd07a11e67ad646579fbc341f30e1eb63ebd38a5fbdd4f3ea36e8f460419028da'
'abc1c05f6567281cb8654dfbe3d0ef87ec3537e8e60191ba0625d4f99feb27c7')
package() {
cd "${srcdir}"
# Create destination directory
install -dm755 "${pkgdir}/opt/${_pkgname}"
# Install visit
bash ${_pkgname}-install${_pkgver} -c none ${pkgver} linux-x86_64-${_ver} \
"${pkgdir}/opt/${_pkgname}"
# Patch to force the use of the libs provided by VisIt
patch "${pkgdir}/opt/visit/bin/frontendlauncher" < "${srcdir}/visit-libs.patch"
# Install script to set $PATH
install -Dm755 visit-bin.sh "${pkgdir}/etc/profile.d/visit-bin.sh"
# Fix permissions
chown -R root:root "${pkgdir}/opt/${_pkgname}"
}
|