# Maintainer: Steven Guikal pkgname=aerc pkgver=0.15.2 pkgrel=3 pkgdesc="email client for your terminal" url="https://aerc-mail.org" arch="all" license="MIT" depends="less ncurses" makedepends="go scdoc notmuch-dev" checkdepends="gpg gpgme" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~rjarry/aerc/archive/$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -tags=notmuch" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { unset LDFLAGS # passed as go linker flags and invalid make PREFIX=/usr VERSION=$pkgver } check() { go test ./... } package() { unset LDFLAGS make install PREFIX=/usr DESTDIR="$pkgdir" VERSION=$pkgver } sha512sums=" 8744c6c5ea45fc8ad2ab46367e92d3859fab962843db4329c7655b0afe7b72dbea21dae588d44eab314a31da89d15e5b6543224699556aed31e0b3b9c7b0ddbc aerc-0.15.2.tar.gz "