# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=emacs-taxy-magit-section
pkgver=0.14.3
pkgrel=0
_pkgreal=taxy-magit-section
pkgdesc="View Taxy structs in a Magit Section buffer"
url="https://elpa.gnu.org/packages/taxy-magit-section.html"
arch="noarch"
license="GPL-3.0-or-later"
depends="
	cmd:emacs
	emacs-magit-section
	emacs-taxy
	"
makedepends="emacs-nox"
source="https://github.com/alphapapa/taxy.el/archive/taxy-magit-section-$pkgver/emacs-taxy-magit-section-$pkgver.tar.gz"
builddir="$srcdir/taxy.el-$_pkgreal-$pkgver"
options="!check" # no tests provided

build() {
	emacs -batch -q -no-site-file -L . \
		-f batch-byte-compile \
		./*.el
}

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

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

sha512sums="
0380c54ee5ea6412d5b08019784af633cdaf8a23dc392090ab9214c939e9cdba6481d36aec21c20005962acf0916eb570bdc3090d31e8b88c8f3f7aafe8d0d31  emacs-taxy-magit-section-0.14.3.tar.gz
"
