# Maintainer: Andrew O'Neill # Contributor: Christian Krause ("wookietreiber") pkgname=mothur pkgver=1.48.0 pkgrel=1 pkgdesc='A bioinformatics program for analyzing microbial communities.' arch=('x86_64') url='https://www.mothur.org/' license=('GPL3') depends=('boost-libs') makedepends=('boost' 'hdf5') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz") sha256sums=('9494406abd8d14b821782ab9db811f045ded9424f28f01234ee6764d4e78941d') prepare() { cd "${pkgname}-${pkgver}" # I hate this so much. sed -i '90d' source/mothur.h sed -i '13 i \#include ' source/writer.h sed -i '17 i \#include "unistd.h"' source/utils.cpp sed -i 's/skipUchime),/skipUchime), source\/,/g' Makefile sed -i 's/CXXFLAGS = -O3/CXXFLAGS = -O3 -std=c++11/' source/uchime_src/makefile } build() { cd "${pkgname}-${pkgver}" make } package() { cd "${pkgname}-${pkgver}" install -Dm755 mothur "${pkgdir}/usr/bin/mothur" install -Dm755 uchime "${pkgdir}/usr/bin/uchime" }