summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorb00rt00s2017-07-06 20:55:54 +0200
committerb00rt00s2017-07-06 20:55:54 +0200
commita3fb30f0685842fa0427f9700c4081d639328be5 (patch)
tree7c7829ddee58105950fb45707e0460988163ad5d /PKGBUILD
parent2a0031343a843accc29af42b6c8ca9cd49f80e1a (diff)
downloadaur-a3fb30f0685842fa0427f9700c4081d639328be5.tar.gz
added gcc5 dependency for libgfortran.so.3 library
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 21 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 125aa0a80ca..ec93ddc1db3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,22 +3,20 @@
pkgname=gsas2-svn
_pkgname=gsas2
-pkgver=2692
+pkgver=2912
pkgrel=1
pkgdesc="General Structure Analysis System II - refinement for powder diffraction patterns"
arch=(i686 x86_64)
-url="https://subversion.xor.aps.anl.gov/trac/pyGSAS"
+url="https://subversion.xray.aps.anl.gov/trac/pyGSAS"
license=(unknown)
-depends=(python2 python2-scipy python2-matplotlib wxpython python2-opengl python2-numpy)
+depends=(python2 python2-scipy python2-matplotlib wxpython python2-opengl python2-numpy gcc)
[ "${CARCH}" = "x86_64" ] && depends=("${depends[@]}")
makedepends=(subversion)
-source=("${_pkgname}::svn+https://subversion.xor.aps.anl.gov/pyGSAS/trunk/"
- "GSASII.desktop"
- "rungsas2")
+source=("${_pkgname}::svn+https://subversion.xray.aps.anl.gov/pyGSAS/trunk/"
+ "GSASII.desktop")
md5sums=('SKIP'
- 'e9d06aed1866e65ce8259cfd5a31e1ce'
- 'c114904d9eb6130abfb83e3d23adf005')
+ 'e9d06aed1866e65ce8259cfd5a31e1ce')
pkgver() {
cd "${SRCDEST}/${_pkgname}"
@@ -42,7 +40,7 @@ package()
[ "${CARCH}" == "i686" ] && rm -rf binlinux64-2.7
[ "${CARCH}" == "x86_64" ] && rm -rf binlinux2.7
- for _dir in {binmac,binwin}{,64-}2.7-bak; do
+ for _dir in {binmac,binwin}{,64-}2.7; do
rm -rf ${_dir}
done
@@ -57,6 +55,20 @@ package()
install -m 644 -D "$srcdir/GSASII.desktop" "$pkgdir/usr/share/applications/GSASII.desktop"
#Install and link executables:
+ if [ "${CARCH}" == "i686" ]; then
+ cat <<EOF > "$srcdir/rungsas2"
+#!/bin/bash
+LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}:/usr/lib/gcc/i686-pc-linux-gnu/5.4.0"
+python2 /opt/gsas2/GSASII.py
+EOF
+ else
+ cat <<EOF > "$srcdir/rungsas2"
+#!/bin/bash
+LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}:/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0"
+python2 /opt/gsas2/GSASII.py
+EOF
+ fi
+
cp "$srcdir/rungsas2" "$pkgdir/opt/gsas2/${_pkgname}"
chmod +x "$pkgdir/opt/${_pkgname}/gsas2"