# Maintainer: Mark Wagie <mark dot wagie at proton dot me> pkgname=gedit-markdownpreview-git _pkgname=markdownpreview pkgver=r26.b82dcc8 pkgrel=1 pkgdesc="Show side by side preview of markdown files" arch=('any') url="https://github.com/aliva/gedit-markdownpreview" license=('GPL-2.0-or-later') depends=('gedit' 'python-markdown') makedepends=('git') optdepends=('pymdown-extensions: for extra utility') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=('git+https://github.com/aliva/gedit-markdownpreview.git') sha256sums=('SKIP') pkgver() { cd "${pkgname%-git}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() { cd "${pkgname%-git}" install -Dm644 "$_pkgname.plugin" "$_pkgname.py" style.css template.html -t \ "$pkgdir/usr/lib/gedit/plugins/$_pkgname" }