blob: 160880203ac917d6b3aa619a02c915a3db698484 (
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
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: David Anderegg <dd.anderegg@hotmail.com>
# Maintainer: Felix Golatofski <contact@xdfr.de>
# Contributor: eolianoe <eolianoe [At] GmaiL [Dot] com>
# Contributor: Dmitriy Morozov <archlinux@foxcub.org>
pkgname=visit-bin
_pkgname=visit
pkgver=3.4.1
_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=('glu')
makedepends=('bash' 'cpio' 'gendesk')
_ver=debian12
_url="https://github.com/visit-dav/visit/releases/download/v${pkgver}"
source=("${_url}/visit${_pkgver}.linux-x86_64-${_ver}.tar.gz"
"${_url}/visit-install${_pkgver}"
'visit.sh'
'visit-libs.patch')
noextract=("${_pkgname}${_pkgver}.linux-x86_64-${_ver}.tar.gz")
sha256sums=('331ba2ddb29e65be18ce7da7faa4df37d9bd355774bc49ece78e15336efa9556'
'1577fee905eb7e8b1591c5ed8928e259cc790a68002554d2b497d50fac4db2ec'
'd07a11e67ad646579fbc341f30e1eb63ebd38a5fbdd4f3ea36e8f460419028da'
'4f0cd7507721974e3545eefb7087c3d2a7ad661945c60407f3a0455590108fef')
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.sh "${pkgdir}/etc/profile.d/visit.sh"
# Fix permissions
chown -R root:root "${pkgdir}/opt/${_pkgname}"
# create .desktop file
gendesk -f --pkgname "$pkgname" --pkgdesc "$pkgdesc"
# install .desktop file and icon
install -Dm644 "$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
install -Dm644 "$_pkgname.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png"
}
|