summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12a2e6919551d63b801be8ad4ba69894356432d8 (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
28
29
30
31
# Maintainer: 
# Contributor: 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=7 HEAD)"
}

package() {
  cd "${pkgname%-git}"
  install -Dm644 "${_pkgname}.plugin" "${_pkgname}.py" style.css template.html -t \
    "$pkgdir/usr/lib/gedit/plugins/${_pkgname}/"
}