# Template file for 'cherrytree'
pkgname=cherrytree
version=0.38.9
revision=1
archs=noarch
build_style=python2-module
pycompile_dirs="usr/share/cherrytree/modules"
hostmakedepends="python-devel desktop-file-utils"
depends="pygtksourceview python-dbus python-enchant desktop-file-utils"
short_desc="Hierarchial note taking application with syntax highlighting"
maintainer="Logen K <logen@sudotask.com>"
license="GPL-3.0-or-later"
homepage="https://www.giuspen.com/cherrytree/"
distfiles="https://www.giuspen.com/software/${pkgname}-${version}.tar.xz"
checksum=fc16669e81e7f981f1b51671171a55035febf2ea80e801c0dd7ff52763025475

post_install() {
	# don’t install useless egg
	rm -rf ${DESTDIR}/usr/lib/python*/site-packages

	# remove old mime registration files
	rm -rf ${DESTDIR}/usr/share/application-registry
	rm -rf ${DESTDIR}/usr/share/mime-info
}
