From df21bf5033daf1bbc609c505233e6842cc54184d Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Wed, 21 Feb 2024 15:12:32 +0100 Subject: [PATCH] vsearch: add package (#199) * vsearch: add package recipe * vsearch: add `ghostscript` to `makedepends` * vsearch: add `zlib` and `bzip2` dependencies * vsearch: move lilac scripts into `lilac.yaml` * vsearch: fix GPL license identifier * vsearch: fix prefix stripping in `lilac.yaml` * vsearch: replace `use_latest_release` with `use_max_tag` * vsearch: change maintainer e-mail * vsearch: add autoconf exception to GPL-3.0 license * vsearch: change `pkgrel` to `0` * vsearch: add `update_aur_repo` to `post_build_script` * vsearch: tidy up `PKGBUILD` --- BioArchLinux/vsearch/PKGBUILD | 31 +++++++++++++++++++++++++++++++ BioArchLinux/vsearch/lilac.yaml | 14 ++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 BioArchLinux/vsearch/PKGBUILD create mode 100644 BioArchLinux/vsearch/lilac.yaml diff --git a/BioArchLinux/vsearch/PKGBUILD b/BioArchLinux/vsearch/PKGBUILD new file mode 100644 index 0000000000..934789c816 --- /dev/null +++ b/BioArchLinux/vsearch/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Martin Larralde + +pkgname=vsearch +pkgver=2.27.0 +pkgrel=0 +pkgdesc="Versatile open-source tool for microbiome analysis. https://doi.org/10.7717/peerj.2584" +arch=('x86_64' 'aarch64' 'ppc64le') +url="https://github.com/torognes/vsearch" +license=('BSD-2-Clause OR GPL-3.0-only') +depends=('glibc' 'zlib' 'bzip2') +makedepends=('ghostscript') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('b7e25638924e56591d7c6ac3a959795000439937f5b566be7f06457bb31f91a9') + +build() { + cd "$pkgname-$pkgver" + ./autogen.sh + ./configure --prefix=/usr + make +} + +check() { + cd "$pkgname-$pkgver" + make check +} + +package() { + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt +} diff --git a/BioArchLinux/vsearch/lilac.yaml b/BioArchLinux/vsearch/lilac.yaml new file mode 100644 index 0000000000..b4e1df825f --- /dev/null +++ b/BioArchLinux/vsearch/lilac.yaml @@ -0,0 +1,14 @@ +build_prefix: extra-x86_64 +maintainers: + - github: althonos + email: althonosdev@gmail.com +pre_build_script: | + update_pkgver_and_pkgrel(_G.newver) +post_build_script: | + git_pkgbuild_commit() + update_aur_repo() +update_on: + - source: github + github: torognes/vsearch + use_max_tag: true + prefix: 'v'