summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRonny Lorenz2016-02-06 16:43:51 +0100
committerRonny Lorenz2016-02-06 16:43:51 +0100
commita3b8b86660c409591cab36c4b08d201d5605ca82 (patch)
tree08368f92fc888c44f957a0bc1ee05a2dde3eb03c /PKGBUILD
parentd1e868e8b00b37f4826bd1cab513d1a8e9f252f1 (diff)
downloadaur-a3b8b86660c409591cab36c4b08d201d5605ca82.tar.gz
Bump to version 2.2.1 and split package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD79
1 files changed, 61 insertions, 18 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9c6e06e2dfc..44364604bb2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,27 @@
# Maintainer: Ronny Lorenz <ronny at tbi dot univie dot ac dot at>
-pkgname=viennarna
-pkgver=2.2.0
-pkgrel=3
+pkgbase=viennarna
+pkgname=('viennarna' 'python2-rna' 'perl-rna')
+pkgver=2.2.1
+pkgrel=1
pkgdesc="RNA Secondary Structure Prediction and Comparison"
arch=('x86_64' 'i686')
license=('Custom')
url="http://www.tbi.univie.ac.at/RNA"
-depends=( 'perl'
- 'python2')
-optdepends=('gsl: use a variety of optimization methods in RNApvmin'
- 'gri: create 2D plots of secondary structure landscape with RNA2Dfold')
-conflicts=('viennarna')
-makedepends=( 'libtool'
+groups=('viennarna-package')
+makedepends=( 'perl'
+ 'python2'
+ 'libtool'
'check')
-provides=('Kinfold=1.3' 'RNAforester=2.0' "viennarna2=${pkgver}")
source=(http://www.tbi.univie.ac.at/RNA/packages/source/ViennaRNA-${pkgver}.tar.gz)
options=('staticlibs' '!strip')
-sha256sums=('78910cc1dc44de22ba081d841c84a32dfc52f0ec186447eafd82cb15cfdbf991')
+sha256sums=('fdf3e101b170762f37f891fb019793dab5fc69fbeb5dbe56891b3c89b0918c5c')
build() {
cd "${srcdir}/ViennaRNA-${pkgver}"
- ./configure --with-cluster --prefix=/usr PYTHON_VERSION=2 || return 1
- make || return 1
+ ./configure --with-cluster --prefix=/usr INSTALLDIRS=vendor PYTHON_VERSION=2
+ make
}
check() {
@@ -31,19 +29,64 @@ check() {
make check
}
-package() {
+package_viennarna() {
+ depends=('perl')
+ optdepends=('gsl: use a variety of optimization methods in RNApvmin'
+ 'gri: create 2D plots of secondary structure landscape with RNA2Dfold')
+ provides=('Kinfold=1.3' 'RNAforester=2.0' "viennarna2=${pkgver}" "libRNA=${pkgver}")
+
cd "${srcdir}/ViennaRNA-${pkgver}"
- make DESTDIR="${pkgdir}" install || return 1
+
+ # install executables
+ cd src/bin/
+ make DESTDIR="${pkgdir}" install
+ cd ../Kinfold
+ make DESTDIR="${pkgdir}" install
+ cd ../RNAforester
+ install -Dm755 src/RNAforester "${pkgdir}/usr/bin/"
+ install -Dm644 man/RNAforester.1* "${pkgdir}/usr/share/man/man1/"
+ cd ../Utils
+ make DESTDIR="${pkgdir}" install
+ cd ../Cluster
+ make DESTDIR="${pkgdir}" install
+ cd ../..
+
+ # install library and header files
+ cd src/ViennaRNA
+ make DESTDIR="${pkgdir}" install
+ cd ../..
+
+ # install manpages, documentation, and misc files
+ cd man
+ make DESTDIR="${pkgdir}" install
+ cd ../doc
+ make DESTDIR="${pkgdir}" install
+ cd ../misc
+ make DESTDIR="${pkgdir}" install
+ cd ..
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# cleanup after dirty install ...
+ install -dm755 "$pkgdir"/usr/bin/vendor_perl
for perlscript in "$pkgdir"/usr/share/ViennaRNA/bin/*.pl ; do
- mv "$perlscript" "$pkgdir/usr/bin/$(basename "$perlscript" .pl)"
+ mv "$perlscript" "$pkgdir/usr/bin/vendor_perl/"
done
- mv "$pkgdir"/usr/share/ViennaRNA/bin/* "$pkgdir"/usr/bin
- rmdir "$pkgdir/usr/share/ViennaRNA/bin"
# no need for that file it is outdated anyway
rm $pkgdir/usr/share/info/dir
}
+
+package_python2-rna() {
+ depends=('python2' viennarna="${pkgver}")
+ cd "${srcdir}/ViennaRNA-${pkgver}"
+ cd interfaces/Python
+ make DESTDIR="${pkgdir}" install
+}
+
+package_perl-rna() {
+ depends=('perl' viennarna="${pkgver}")
+ cd "${srcdir}/ViennaRNA-${pkgver}"
+ cd interfaces/Perl
+ make DESTDIR="${pkgdir}" install
+}