vcflib: use tabixpp as makedepends, update lilac

tabixpp: update FHS
This commit is contained in:
sukanka 2022-07-10 23:05:41 +08:00
parent 0585bd7d3c
commit 4641d5409c
3 changed files with 12 additions and 10 deletions

View file

@ -2,7 +2,7 @@
pkgname=tabixpp
_pkgver=1.1.1
pkgver=1.1.1
pkgrel=2
pkgrel=3
pkgdesc="C++ wrapper to tabix indexer"
arch=('x86_64')
url="https://github.com/ekg/tabixpp"
@ -21,7 +21,8 @@ build() {
package() {
cd $srcdir/"$pkgname"-${pkgver}
install -Dm 755 tabix.hpp $pkgdir/usr/include/tabix.hpp
install -Dm 755 tabix.hpp $pkgdir/usr/include/tabix/tabix.hpp
install -Dm 755 tabix.cpp $pkgdir/usr/include/tabix/tabix.cpp
install -Dm 755 tabix++ $pkgdir/usr/bin/tabix++
install -Dm 755 libtabix.so.1 ${pkgdir}/usr/lib/libtabix.so.1

View file

@ -1,13 +1,13 @@
# Maintainer: Guoyi
pkgname=vcflib
pkgver=20220627.152412
pkgrel=1
pkgver=1.0.3
pkgrel=3
pkgdesc="C++ library and cmdline tools for parsing and manipulating VCF files doi: 10.1101/2021.05.21.445151"
arch=('x86_64')
url="https://github.com/vcflib/vcflib"
license=('MIT')
depends=('python' 'htslib')
makedepends=('git' 'cmake' 'make' 'pybind11'
makedepends=('git' 'cmake' 'make' 'pybind11' 'tabixpp'
'pandoc'
)
optdepends=('r: running R scripts'
@ -24,7 +24,6 @@ source=("git+https://github.com/vcflib/vcflib.git"
"git+https://github.com/ekg/multichoose.git"
"git+https://github.com/ekg/smithwaterman.git"
"simde::git+https://github.com/simd-everywhere/simde-no-tests.git"
"https://github.com/vcflib/tabixpp/archive/refs/tags/v1.1.1.tar.gz"
)
md5sums=('SKIP'
@ -36,24 +35,25 @@ md5sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'6441f3e3bbeb6c642edc7dea1c4cf8c3')
'SKIP')
prepare(){
cd ${srcdir}
cp -rf WFA2-lib/* ${pkgname}/contrib/WFA2-lib
cp -rf tabixpp-1.1.1/* ${pkgname}/contrib/tabixpp
cp -rf fastahack-1.0.0 fastahack
for module in {fastahack,filevercmp,fsom,intervaltree,libVCFH,multichoose,smithwaterman}; do
cp -rf ${module}/* ${pkgname}/${module}
done
cd ${pkgname}
sed -i 's| contrib/tabixpp/tabix.cpp|/usr/include/tabix/tabix.cpp|g' CMakeLists.txt
sed -i 's|<tabix.hpp>|<tabix/tabix.hpp>|g' src/Variant.h
}
build() {
cd $srcdir/${pkgname}
install -d build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make PREFIX=/usr HTS_HEADERS=/usr/include/htslib HTS_LIB=/usr/lib/libhts.so
cmake --build . -- PREFIX=/usr HTS_HEADERS=/usr/include/htslib HTS_LIB=/usr/lib/libhts.so
}

View file

@ -9,3 +9,4 @@ repo_depends:
update_on:
- source: github
github: vcflib/vcflib
use_max_tag: true