mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
fix: freebayes and seqlib
This commit is contained in:
parent
c25b42d34b
commit
d72b5926a8
4 changed files with 25 additions and 26 deletions
|
@ -1,44 +1,41 @@
|
|||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||
# Contributor: Clint Valentine <valentine.clint@gmail.com>
|
||||
pkgname=freebayes
|
||||
pkgver=1.3.6
|
||||
pkgrel=8
|
||||
pkgver=1.3.7
|
||||
pkgrel=0
|
||||
pkgdesc="About Bayesian haplotype-based genetic polymorphism discovery and genotyping"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/freebayes/freebayes"
|
||||
license=('MIT')
|
||||
|
||||
depends=('tabixpp' 'htslib')
|
||||
depends=('tabixpp' 'seqlib' 'vcflib')
|
||||
makedepends=('ninja' 'meson' 'git' 'cmake' 'make'
|
||||
'vcflib' 'vcftools' 'samtools' 'parallel' 'bc')
|
||||
optdepends=()
|
||||
|
||||
source=("git+https://github.com/freebayes/freebayes.git#tag=v${pkgver}")
|
||||
noextract=()
|
||||
sha256sums=('SKIP')
|
||||
'vcftools' 'samtools' 'parallel' 'bc' 'perl'
|
||||
)
|
||||
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha256sums=('89c2202aaa82925bc6a49e04df593e5ef3b1547b3b514efcbd490a54d8ad200b')
|
||||
prepare() {
|
||||
cd "$pkgname"
|
||||
git submodule update --init --recursive
|
||||
cd "${pkgname}-${pkgver}"
|
||||
|
||||
# fix limits
|
||||
sed -i "/#include <limits>/d" intervaltree/IntervalTree.h
|
||||
sed -i "8i #include <limits>" intervaltree/IntervalTree.h
|
||||
cp vcflib/tabixpp/tabix.* vcflib/src
|
||||
sed -i "s|dependency('libvcflib'|cc.find_library('libvcflib'|g" meson.build
|
||||
sed -i "s|dependency('libseqlib'|cc.find_library('libseqlib'|g" meson.build
|
||||
sed -i 's|#include "../intervaltree/IntervalTree.h"|#include <IntervalTree.h>|g' src/{*.cpp,*.h}
|
||||
}
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
cd "${pkgname}-${pkgver}"
|
||||
test -d build || mkdir build
|
||||
meson --prefix=/usr --buildtype=release --includedir=/usr/include/vcflib build
|
||||
#marked it because meson.build:9:0: ERROR: Unknown options: "prefer_system_deps"
|
||||
#-Dprefer_system_deps=true
|
||||
meson setup --prefix=/usr --buildtype=release \
|
||||
-Dprefer_system_deps=true -Dstatic=false \
|
||||
--default-library=shared \
|
||||
build
|
||||
cd build
|
||||
ninja -v
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
cd "${pkgname}-${pkgver}"
|
||||
install -Dm 755 build/freebayes -t $pkgdir/usr/bin/
|
||||
install -Dm 755 build/bamleftalign -t $pkgdir/usr/bin/
|
||||
install -Dm644 LICENSE -t $pkgdir/usr/share/licenses/${pkgname}/
|
||||
cd build/libfreebayes_common.a.p
|
||||
gcc -shared *.o -o libfreebayes_common.so
|
||||
install -Dm755 libfreebayes_common.so -t $pkgdir/usr/lib/
|
||||
|
|
|
@ -6,8 +6,9 @@ repo_depends:
|
|||
- htslib
|
||||
- tabixpp
|
||||
- vcflib
|
||||
- vcftools
|
||||
- samtools
|
||||
- vcftools
|
||||
- samtools
|
||||
- seqlib
|
||||
update_on:
|
||||
- source: github
|
||||
github: freebayes/freebayes
|
||||
|
@ -22,4 +23,3 @@ update_on:
|
|||
- alias: alpm-lilac
|
||||
alpm: vcflib
|
||||
strip_release: true
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
pkgname=seqlib
|
||||
pkgver=1.2.0
|
||||
pkgrel=7
|
||||
pkgrel=8
|
||||
pkgdesc="C++ htslib/bwa-mem/fermi interface for interrogating sequence data"
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://github.com/walaj/SeqLib"
|
||||
|
@ -19,7 +19,7 @@ prepare(){
|
|||
}
|
||||
build() {
|
||||
cd $srcdir/${pkgname}-${pkgver}/src
|
||||
gcc *.c *.cpp -I/usr/include -I.. -fPIC -O2 -o libseqlib.so -shared -lhts -ljsoncpp
|
||||
gcc *.c *.cpp -I/usr/include -I.. -fPIC -O2 -o libseqlib.so -shared -lhts -lbwa -lfml -ljsoncpp
|
||||
cd seqtools
|
||||
gcc seqtools.cpp -I/usr/include -I../.. -L../ -O2 -o seqtools -lbwa -lhts -lseqlib -lfml -lz -lstdc++
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ post_build_script: |
|
|||
update_aur_repo()
|
||||
repo_depends:
|
||||
- htslib
|
||||
- bwa
|
||||
- fermi-lite
|
||||
update_on:
|
||||
- source: github
|
||||
github: walaj/SeqLib
|
||||
|
|
Loading…
Add table
Reference in a new issue