summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Hardy2017-04-12 20:22:52 +1000
committerJoshua Hardy2017-04-12 20:22:52 +1000
commit13e0701f03795c55afeb26fa451d2267c362a27e (patch)
tree1ca9bbce036ea0f84732733b43e8466d76337dd7
parente623103acc278891e16582a60b3b3fcb34372c3d (diff)
downloadaur-simple2.tar.gz
fixed profiles
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD6
-rw-r--r--simple2.csh2
-rw-r--r--simple2.sh2
4 files changed, 11 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bdc0b36826c..42b4b571e92 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -11,7 +11,11 @@ pkgbase = simple2
depends = fftw
depends = java-environment
source = http://simplecryoem.com/binaries/simple2.1.tar.gz
+ source = simple2.sh
+ source = simple2.csh
md5sums = f01eee32ec5071bdd7e5a3c505418335
+ md5sums = SKIP
+ md5sums = SKIP
pkgname = simple2
diff --git a/PKGBUILD b/PKGBUILD
index ec0e135ae4b..49fb531c357 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,8 +9,8 @@ license=('GPL')
depends=('lapack' 'python2' 'fftw' 'java-environment')
makedepends=('gcc49')
optdepends=()
-source=("http://simplecryoem.com/binaries/simple2.1.tar.gz")
-md5sums=('f01eee32ec5071bdd7e5a3c505418335')
+source=("http://simplecryoem.com/binaries/simple2.1.tar.gz" "simple2.sh" "simple2.csh")
+md5sums=('f01eee32ec5071bdd7e5a3c505418335' 'SKIP' 'SKIP')
build() {
cd "${srcdir}"/simple${pkgver}
cp scripts/Template_FEDORA_21x64_CPU_simple_user_input.pm simple_user_input.pm
@@ -26,5 +26,5 @@ build() {
package() {
install -d "${pkgdir}"/opt "${pkgdir}"/etc/profile.d
cp -r "${srcdir}"/simple${pkgver} "${pkgdir}"/opt/simple2
- install -D -m755 "${srcdir}"/simple${pkgver}/add2.bashrc "${pkgdir}"/etc/profile.d/simple2.sh
+ install -D -m755 "${srcdir}"/simple2*sh "${pkgdir}"/etc/profile.d/.
}
diff --git a/simple2.csh b/simple2.csh
new file mode 100644
index 00000000000..2cb2258f1c7
--- /dev/null
+++ b/simple2.csh
@@ -0,0 +1,2 @@
+setenv SIMPLEPATH /opt/simple2
+set path=($path ${SIMPLEPATH}/scripts ${SIMPLEPATH}/bin)
diff --git a/simple2.sh b/simple2.sh
new file mode 100644
index 00000000000..fecf2e6af05
--- /dev/null
+++ b/simple2.sh
@@ -0,0 +1,2 @@
+export SIMPLEPATH=/opt/simple2
+export PATH=$PATH:${SIMPLEPATH}/scripts:${SIMPLEPATH}/bin