diff options
author | Joshua Hardy | 2017-04-06 22:54:58 +1000 |
---|---|---|
committer | Joshua Hardy | 2017-04-06 22:54:58 +1000 |
commit | 94d02d4380f178162ab64b0c38e201c9db629272 (patch) | |
tree | 8a8932fb70a472856fa114d0a8436e9a200c3c50 | |
download | aur-emspring.tar.gz |
first upload
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | emspring.csh | 1 | ||||
-rw-r--r-- | emspring.sh | 1 |
4 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fdfc2ae26d4d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = emspring + pkgdesc = Single Particle Reconstruction from Images of kNown Geometry + pkgver = 0.84 + pkgrel = 1 + url = http://www.sachse.embl.de/emspring/ + arch = x86_64 + license = GPL + depends = python2-pip + depends = libpng12 + depends = tcsh + depends = qtwebkit + depends = glu + depends = java-environment + source = http://www.sachse.embl.de/emspring/_download/spring-latest-linux.tar.gz + source = emspring.sh + source = emspring.csh + md5sums = SKIP + md5sums = SKIP + md5sums = SKIP + +pkgname = emspring + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5a7f81784613 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Joshua Hardy <joshinsilico@gmail.com> +pkgname=emspring +pkgver=0.84 +pkgrel=1 +pkgdesc="Single Particle Reconstruction from Images of kNown Geometry" +arch=(x86_64) +url="http://www.sachse.embl.de/emspring/" +license=('GPL') +depends=('python2-pip' 'libpng12' 'tcsh' 'qtwebkit' 'glu' 'java-environment') +source=("http://www.sachse.embl.de/emspring/_download/spring-latest-linux.tar.gz" "emspring.sh" "emspring.csh") +md5sums=('SKIP' 'SKIP' 'SKIP') +options=() + +prepare() { +echo "----------------------------------------------------------" +echo "If you find Spring useful for your research, please cite:" +echo "Desfosses, A., Ciuffa, R., Gutsche, I., and Sachse, C. (2014). SPRING - an image processing package for single-particle based helical reconstruction from electron cryomicrographs. J Struct Biol 185, 15-26." +echo "----------------------------------------------------------" +} +build() { +cd ${srcdir}/spring_* +ln -s /usr/lib/libncursesw.so.6 parts/EMAN2/lib/libncursesw.so.5 +#sh patches/binary_install_linux.sh +cd patches; wget https://bootstrap.pypa.io/get-pip.py; cd .. +PYTHONPATH=$PWD/lib/python2.7/site-packages LD_LIBRARY_PATH=$PWD/parts/EMAN2/lib ./parts/EMAN2/Python/bin/python patches/get-pip.py +PYTHONPATH=$PWD/lib/python2.7/site-packages LD_LIBRARY_PATH=$PWD/parts/EMAN2/lib ./parts/EMAN2/Python/bin/pip install -U --prefix=$PWD appdirs packaging +sh patches/binary_install_linux.sh +} +package() { + cd ${srcdir}/spring_* + install -d $pkgdir/opt/emspring $pkgdir/etc/profile.d/ $pkgdir/usr/lib + cp -r * $pkgdir/opt/emspring/. + install -D -m755 $srcdir/emspring*sh $pkgdir/etc/profile.d/. + ln -s /usr/lib/libncursesw.so.6 $pkgdir/usr/lib/libncursesw.so.5 +} diff --git a/emspring.csh b/emspring.csh new file mode 100644 index 000000000000..4061aa500394 --- /dev/null +++ b/emspring.csh @@ -0,0 +1 @@ +setenv PATH $PATH:/opt/emspring/bin diff --git a/emspring.sh b/emspring.sh new file mode 100644 index 000000000000..28ae00bc2f7e --- /dev/null +++ b/emspring.sh @@ -0,0 +1 @@ +export PATH=$PATH:/opt/emspring/bin |