summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoreolianoe2015-06-09 10:41:20 +0200
committereolianoe2015-06-09 10:41:20 +0200
commita1dabfc75231b5bd58a9f037a64b26bd5ab333c1 (patch)
tree84db22c7022b865227507dec83218c87373b5fd0
downloadaur-a1dabfc75231b5bd58a9f037a64b26bd5ab333c1.tar.gz
Initial import
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD45
-rwxr-xr-xvisit-bin.sh3
-rw-r--r--visit-libs.patch11
4 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..450891d595a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = visit-bin
+ pkgdesc = Interactive parallel visualization and graphical analysis tool
+ pkgver = 2.9.1
+ pkgrel = 1
+ url = https://wci.llnl.gov/simulation/computer-codes/visit
+ arch = x86_64
+ license = BSD
+ license = custom
+ makedepends = bash
+ makedepends = cpio
+ depends = libpng12
+ depends = glu
+ provides = visit
+ conflicts = visit
+ conflicts = visit-build
+ noextract = visit2_9_1.linux-x86_64-rhel6.tar.gz
+ source = http://portal.nersc.gov/svn/visit/trunk/releases/2.9.1/visit2_9_1.linux-x86_64-rhel6.tar.gz
+ source = http://portal.nersc.gov/svn/visit/trunk/releases/2.9.1/visit-install2_9_1
+ source = visit-bin.sh
+ source = visit-libs.patch
+ sha256sums = 6ae02f9007e7690abbfe6cc669bbdef01b49003c888d4fb00d60bb36271834f7
+ sha256sums = a4ccbefbba784f8038e3f06a8e64ffe89da727e5cdce1f97ad771d111e6c8439
+ sha256sums = d07a11e67ad646579fbc341f30e1eb63ebd38a5fbdd4f3ea36e8f460419028da
+ sha256sums = abc1c05f6567281cb8654dfbe3d0ef87ec3537e8e60191ba0625d4f99feb27c7
+
+pkgname = visit-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..73a01dbae8d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: eolianoe <eolianoe [At] GmaiL [Dot] com>
+# Contributor: Dmitriy Morozov <archlinux@foxcub.org>
+pkgname=visit-bin
+_pkgname=visit
+pkgver=2.9.1
+_pkgver=2_9_1
+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
+source=("http://portal.nersc.gov/svn/${_pkgname}/trunk/releases/${pkgver}/${_pkgname}${_pkgver}.linux-x86_64-${_ver}.tar.gz"
+ "http://portal.nersc.gov/svn/${_pkgname}/trunk/releases/${pkgver}/${_pkgname}-install${_pkgver}"
+ 'visit-bin.sh'
+ 'visit-libs.patch')
+noextract=("${_pkgname}${_pkgver}.linux-x86_64-${_ver}.tar.gz")
+sha256sums=('6ae02f9007e7690abbfe6cc669bbdef01b49003c888d4fb00d60bb36271834f7'
+ 'a4ccbefbba784f8038e3f06a8e64ffe89da727e5cdce1f97ad771d111e6c8439'
+ '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}"
+}
diff --git a/visit-bin.sh b/visit-bin.sh
new file mode 100755
index 00000000000..e0ee5fa47ba
--- /dev/null
+++ b/visit-bin.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+export PATH=$PATH:/opt/visit/bin
diff --git a/visit-libs.patch b/visit-libs.patch
new file mode 100644
index 00000000000..9965f9b2a8d
--- /dev/null
+++ b/visit-libs.patch
@@ -0,0 +1,11 @@
+--- /opt/visit/bin/visit 2013-04-02 08:40:10.000000000 -0700
++++ visit 2013-04-02 08:57:00.055180106 -0700
+@@ -63,6 +63,8 @@
+ done
+ done
+
++export LD_LIBRARY_PATH=/opt/visit/current/linux-x86_64/lib:${LD_LIBRARY_PATH}
++
+ # Find the most recent VisIt python
+ visitpython=""
+ dir="$(dirname $0)"