summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e005ccf8fe780c690b5fd36b4ac361e7d9decb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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"
}