# Maintainer: Bipin Kumar # shellcheck disable=2034 # shellcheck disable=2148 pkgname=diamond pkgver=2.1.3 pkgrel=1 pkgdesc="High performance sequence aligner for protein and translated DNA searches with big sequence data. https://doi.org/10.1038/s41592-021-01101-x" arch=('x86_64') url="https://github.com/bbuchfink/diamond" license=('GPL3') depends=('gcc-libs' 'zlib' 'zstd' 'blast+') makedepends=('cmake') source=("$pkgname-$pkgver.tar.gz::https://github.com/bbuchfink/diamond/archive/v$pkgver.tar.gz") sha256sums=('6c5504d33e9c88314d9033c3b5e083a572ac550372f70afdae5c56213e2bea85') build() { cd $pkgname-$pkgver cmake -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DWITH_ZSTD=ON \ -DBLAST_INCLUDE_DIR=/usr/include/ncbi-tools++ \ -DBLAST_LIBRARY_DIR=/usr/lib/ \ -DZSTD_LIBRARY=/usr/lib/libzstd.so \ -DZLIB_INCLUDE_DIR=/usr/include \ -Wno-dev cmake --build build } package() { cd $pkgname-$pkgver DESTDIR="$pkgdir" cmake --install build }