diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-11-13 23:14:33 -0600 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-11-13 23:14:33 -0600 |
commit | 6fab33c9210eaa90d0a0179f7e49c339ea88990f (patch) | |
tree | 7e7263f8183b301293bfa3c1d1d57d80b804903a /~xihh/viennarna/PKGBUILD | |
parent | 711a4fbe5716e640872887c95e7266783137ac6f (diff) |
Commiting libre package viennarna-1.8.5-1
Diffstat (limited to '~xihh/viennarna/PKGBUILD')
-rw-r--r-- | ~xihh/viennarna/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/~xihh/viennarna/PKGBUILD b/~xihh/viennarna/PKGBUILD new file mode 100644 index 000000000..37de53d11 --- /dev/null +++ b/~xihh/viennarna/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ +# Maintainer: Joshua Ismael Haase Hernandez <joshpar@stravy> +pkgbase='viennarna' +pkgname=('viennarna' 'python2-viennarna') +pkgver=1.8.5 +pkgrel=1 +pkgdesc="RNA Secondary Structure Prediction and Comparison" +arch=('i686' 'x86_64' 'mips64el') +url="http://www.tbi.univie.ac.at/RNA/" +makedepends=('python2' 'swig') +license=('Custom:BSD3') +source=("setup.py" + "http://www.tbi.univie.ac.at/RNA/ViennaRNA-${pkgver}.tar.gz") +md5sums=('d006ef9bb878aea6c184afa89986788e' + 'cd70d63cc1be928a5f0973bd6c211e96') + +build() { + cd "$srcdir/ViennaRNA-$pkgver" + ./configure --prefix=/usr --without-forester + make +} + +package_viennarna() { + cd "$srcdir/ViennaRNA-$pkgver" + make DESTDIR="$pkgdir/" install +} + +package_python2-viennarna() { + depends=('python2') + options=(!emptydirs) + + mkdir -p "$srcdir/ViennaRNA-$pkgver/Python" + cp -r $srcdir/ViennaRNA-$pkgver/Perl/*.i "$srcdir/setup.py" \ + "$srcdir/ViennaRNA-$pkgver/Python" + + cd "$srcdir/ViennaRNA-$pkgver/Python" + + swig -python RNA.i + + python2 setup.py install --root="$pkgdir/" --optimize=1 + +} |