# Template file for 'aerc'
pkgname=aerc
version=0.22.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="Orphaned <orphan@voidlinux.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=f1cd5e358fd836051d4d88c189ecaa025a108b729281985525b45b13bc49e70f
ignore_elf_dirs="/usr/share/aerc/filters"

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

do_check() {
	make ${makejobs} tests
}
