diff options
author | fncnt | 2020-12-08 12:11:44 +0100 |
---|---|---|
committer | fncnt | 2020-12-08 12:11:44 +0100 |
commit | c3143dd1dbe1b9e2df9bdf4c7e80a6a3d1ff43e3 (patch) | |
tree | 9447793e63af72c873edb2aadedaed51170d177f | |
parent | ecb31f15763d15d92d9572121e683f3f28f4a5cf (diff) | |
download | aur-infrared-git.tar.gz |
Update to 0.4, add optional dependencies for tree decomposition, move python files to site-packages directory and symlink executable scripts.
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 24 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = infrared-git pkgdesc = A generic C++/Python hybrid library for efficient (fixed-parameter tractable) Boltzmann sampling. - pkgver = 0.3.r7.gec411b9 - pkgrel = 2 + pkgver = 0.4.r0.g2af827c + pkgrel = 1 url = https://github.com/s-will/Infrared/ arch = x86_64 groups = viennarna-package @@ -11,6 +11,9 @@ pkgbase = infrared-git makedepends = doxygen depends = htd depends = boost-libs + depends = python + optdepends = python-networkx: fallback tree decomposition + optdepends = tdlib: alternative to libHTD tree decomposition optdepends = python-rna: required by redprint.py provides = libinfrared.so provides = libhtdwrap.so @@ -2,19 +2,22 @@ pkgname=('infrared-git') pkgName=('Infrared-git') -pkgver=0.3.r7.gec411b9 -pkgrel=2 +pkgver=0.4.r0.g2af827c +pkgrel=1 pkgdesc="A generic C++/Python hybrid library for efficient (fixed-parameter tractable) Boltzmann sampling." arch=('x86_64') url="https://github.com/s-will/Infrared/" license=('GPL3') groups=('viennarna-package') depends=('htd' - 'boost-libs') + 'boost-libs' + 'python') makedepends=('git' 'boost' 'doxygen') -optdepends=('python-rna: required by redprint.py') +optdepends=('python-networkx: fallback tree decomposition' + 'tdlib: alternative to libHTD tree decomposition' + 'python-rna: required by redprint.py') provides=('libinfrared.so' 'libhtdwrap.so' 'redprint.py') conflicts=('infrared') source=("Infrared::git+${url}#branch=master") @@ -51,4 +54,16 @@ package() { local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") mkdir -p "${pkgdir}${site_packages}" ln -st "${pkgdir}${site_packages}" /usr/lib/libhtdwrap.so /usr/lib/libinfrared.so + + for pymodule in \ + infrared.py \ + rna_support.py \ + treedecomp.py \ + redprint.py \ + redprint_complexity.py + do + mv "${pkgdir}/usr/bin/$pymodule" "${pkgdir}${site_packages}" + done + + ln -st "${pkgdir}/usr/bin/" "${site_packages}/redprint.py" "${site_packages}/redprint_complexity.py" } |