summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJoshua Hardy2017-03-16 21:43:14 +1100
committerJoshua Hardy2017-03-16 21:43:14 +1100
commite623103acc278891e16582a60b3b3fcb34372c3d (patch)
treecf79616a6299bb72f98cf2e33b2bc3833a5b3f45 /PKGBUILD
downloadaur-e623103acc278891e16582a60b3b3fcb34372c3d.tar.gz
first upload
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ec0e135ae4b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Joshua Hardy joshinsilico@gmail.com
+pkgname=simple2
+pkgver=2.1
+pkgrel=1
+pkgdesc="Single-particle IMage Processing Linux Engine for cryo-EM image processing, focusing on ab initio 3D reconstruction of low-symmetry single-particles"
+arch=(x86_64)
+url="http://simplecryoem.com"
+license=('GPL')
+depends=('lapack' 'python2' 'fftw' 'java-environment')
+makedepends=('gcc49')
+optdepends=()
+source=("http://simplecryoem.com/binaries/simple2.1.tar.gz")
+md5sums=('f01eee32ec5071bdd7e5a3c505418335')
+build() {
+ cd "${srcdir}"/simple${pkgver}
+ cp scripts/Template_FEDORA_21x64_CPU_simple_user_input.pm simple_user_input.pm
+ sed -i -e s:"our\$CC_COMPILER = \"gcc\";":"our\$CC_COMPILER = \"gcc-4.9.4\";":g simple_user_input.pm
+ sed -i -e s:"our\$GCC_COMPILER = \"g++\";":"our\$GCC_COMPILER = \"g++-4.9.4\";":g simple_user_input.pm
+ sed -i -e s:"our\$FCOMPILER = \"gfortran\";":"our\$FCOMPILER = \"gfortran-4.9.4\";":g simple_user_input.pm
+ sed -i -e s:"our\$SIMPLE_PATH=\"/mysimplepath/\";":"our\$SIMPLE_PATH=\""$PWD"\";":g simple_user_input.pm
+ ./Makefile_genAll.pl
+ sed -i -e s:"export SIMPLEPATH=/home/josh/packages/simple/src/simple2.1":"export SIMPLEPATH=/opt/simple2":g add2.bashrc
+ sed -i -e s:"python ./checks/simple_LibTests/report.py":"python2 ./checks/simple_LibTests/report.py":g Makefile
+ echo "SIMPLE was developed by the Elmlund laboratory. Please register use at http://simplecryoem.com/download_form.html"
+}
+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
+}