# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=emacs-ert-async
pkgver=0.1.2_git20200105
_gitrev=ec884dea0b72ec15d6c360d0d1fc6528bd993e66
pkgrel=0
_pkgreal=ert-async
pkgdesc="Async support for ERT testing framework"
url="https://github.com/rejeep/ert-async.el"
arch="noarch"
license="GPL-3.0-or-later"
depends="cmd:emacs"
makedepends="emacs-nox"
source="https://github.com/rejeep/ert-async.el/archive/$_gitrev/emacs-ert-async-$_gitrev.tar.gz"
builddir="$srcdir/ert-async.el-$_gitrev"
options="!check" # no tests provided

build() {
	emacs -batch -q -no-site-file -L . \
		-eval '(setq byte-compile-error-on-warn t)' \
		-f batch-byte-compile \
		./*.el
}

package() {
	install -Dvm644 ./*.el ./*.elc \
		-t "$pkgdir"/usr/share/emacs/site-lisp/

	cd "$pkgdir"/usr/share/emacs/site-lisp
	emacs -batch -q -no-site-file \
		-eval "(loaddefs-generate \".\" \"$_pkgreal-loaddefs.el\")"
}

sha512sums="
848f36f023fce9eb7d7335a3496c7986b923f8bbe3964f3aa93896a60d7c3125825a5906683d654f7d847b21a9c903117f1fe48f67256821384836284d6832b0  emacs-ert-async-ec884dea0b72ec15d6c360d0d1fc6528bd993e66.tar.gz
"
