mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
add: seqlib
This commit is contained in:
parent
9e2fce77f5
commit
a1ddfbb8f3
2 changed files with 48 additions and 1 deletions
|
@ -18,7 +18,9 @@ prepare() {
|
||||||
cd "$pkgname"
|
cd "$pkgname"
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
# find vcflib
|
# find vcflib
|
||||||
sed -i "s|dependency('libvcflib'|cc.find_library('libvcflib'" CMakeLists.txt
|
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 "167c include_directories : [ seqlib_inc]," meson.build
|
||||||
}
|
}
|
||||||
build() {
|
build() {
|
||||||
cd "$pkgname"
|
cd "$pkgname"
|
||||||
|
|
45
prepare/seqlib/PKGBUILD
Normal file
45
prepare/seqlib/PKGBUILD
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
pkgname=seqlib
|
||||||
|
pkgver=1.2.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="C++ htslib/bwa-mem/fermi interface for interrogating sequence data"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="https://github.com/walaj/SeqLib"
|
||||||
|
license=('Apache')
|
||||||
|
depends=('htslib')
|
||||||
|
# Do NOT add 'bwa' to depends, this package uses a flavored version of bwa.
|
||||||
|
makedepends=('autoconf' 'git')
|
||||||
|
source=("${pkgname}::git+https://github.com/walaj/SeqLib.git#tag=${pkgver}"
|
||||||
|
"fermi-lite::git+https://github.com/walaj/fermi-lite.git"
|
||||||
|
)
|
||||||
|
|
||||||
|
prepare(){
|
||||||
|
cd $srcdir/${pkgname}
|
||||||
|
git submodule update --init --recursive
|
||||||
|
sed -i '33c extern const uint8_t rle_auxtab[8];' bwa/rle.h fermi-lite/rle.h
|
||||||
|
}
|
||||||
|
build() {
|
||||||
|
cd ${pkgname}
|
||||||
|
./configure LDFLAGS='-lcurl -lcrypto' CFLAGS='-fPIC' CXXFLAGS='-fPIC'
|
||||||
|
make
|
||||||
|
make seqtools
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd ${pkgname}
|
||||||
|
make install
|
||||||
|
install -d ${pkgdir}/usr
|
||||||
|
mv bin lib ${pkgdir}/usr
|
||||||
|
cd ${pkgdir}/usr/lib
|
||||||
|
# {bwa,fml,hts,seqlib};
|
||||||
|
for mylib in {seqlib,};
|
||||||
|
do
|
||||||
|
ar -x lib${mylib}.a
|
||||||
|
gcc -shared *.o -o lib${mylib}.so
|
||||||
|
rm -rf *.o
|
||||||
|
done
|
||||||
|
|
||||||
|
mkdir -p ${pkgdir}/usr/include/
|
||||||
|
cp -rf SeqLib ${pkgdir}/usr/include/
|
||||||
|
}
|
||||||
|
sha256sums=('SKIP'
|
||||||
|
'SKIP')
|
Loading…
Add table
Reference in a new issue