# Template file for 'aerc'
pkgname=aerc
version=0.21.0
revision=1
build_style=go
go_import_path="git.sr.ht/~rjarry/aerc"
go_build_tags=notmuch
go_ldflags="-X main.Version=${version}"
hostmakedepends="scdoc"
makedepends="libnotmuch-devel"
short_desc="Terminal email client"
maintainer="shtayerc <david.murko@mailbox.org>"
license="MIT"
homepage="https://aerc-mail.org"
changelog="https://git.sr.ht/~rjarry/aerc/blob/master/CHANGELOG.md"
distfiles="https://git.sr.ht/~rjarry/aerc/archive/${version}.tar.gz"
checksum=3f1469bbaea982fc58352f2682932ecc2fb50c705994d96b2343e771747745a7
ignore_elf_dirs="/usr/share/aerc/filters"

post_install() {
	make PREFIX=/usr DESTDIR=${DESTDIR} install
	vlicense LICENSE
}

do_check() {
	make ${makejobs} tests
}
