adding PKGBUILD for Diamond aligner

This commit is contained in:
Bipin Kumar 2022-11-02 23:10:40 +05:30
parent 589fa60590
commit d5e330f5b9

38
diamond-aligner/PKGBUILD Normal file
View file

@ -0,0 +1,38 @@
# Maintainer: Bipin Kumar <bipin@ccmb.res.in>
# shellcheck disable=2034
# shellcheck disable=2148
pkgname=diamond-aligner
pkgver=2.0.15
pkgrel=1
pkgdesc="DIAMOND is a sequence aligner for protein and translated DNA searches, designed for high performance analysis of big sequence data"
arch=('x86_64')
url="https://github.com/bbuchfink/diamond"
license=('AGPL3')
depends=('gcc-libs' 'zlib')
makedepends=('cmake')
source=("$pkgname-$pkgver.tar.gz::https://github.com/bbuchfink/diamond/archive/v$pkgver.tar.gz")
sha256sums=('cc8e1f3fd357d286cf6585b21321bd25af69aae16ae1a8f605ea603c1886ffa4')
prepare() {
# shellcheck disable=2154
mkdir -p "$srcdir"/diamond-$pkgver/build
}
build() {
cd "$srcdir"/diamond-$pkgver/build || exit 1
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
..
make
}
package() {
cd "$srcdir"/diamond-$pkgver/build || exit 1
# shellcheck disable=2154
make DESTDIR="$pkgdir" install
}