blob: f3a8a256f5a027f39e291d799b8f2892fd25e731 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Co-Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
pkgname=gedit-plugin-markdown_preview-git
pkgver=r181.721d896
pkgrel=1
pkgdesc="A gedit plugin previewing markdown (.md) documents"
arch=('any')
url="https://github.com/maoschanz/gedit-plugin-markdown_preview"
license=('GPL-3.0-or-later')
depends=('gedit' 'python-markdown' 'webkit2gtk')
makedepends=('git')
optdepends=('pymdown-extensions: extra Python Markdown extensions'
'python-pygments: for CodeHilite extension'
'pandoc: export and stylesheet support'
'texlive-bin: export to PDF with pandoc (pdflatex)'
'texlive-fontsextra: export to PDF with pandoc (lmodern)')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/maoschanz/gedit-plugin-markdown_preview.git')
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${pkgname%-git}"
sh translations.sh
}
package() {
cd "$srcdir/${pkgname%-git}"
install -Dm644 org.gnome.gedit.plugins.markdown_preview.gschema.xml -t \
"$pkgdir/usr/share/glib-2.0/schemas"
install -Dm644 markdown_preview.plugin -t "$pkgdir/usr/lib/gedit/plugins/"
cp -r markdown_preview "$pkgdir/usr/lib/gedit/plugins"
install -Dm644 example.css -t "$pkgdir/usr/share/doc/${pkgname%-git}/"
for lang in de fr nl pt_BR; do
install -Dm644 "markdown_preview/locale/${lang}/LC_MESSAGES/gedit-plugin-markdown-preview.mo" -t \
"$pkgdir/usr/share/locale/${lang}/LC_MESSAGES/"
done
rm -rf "$pkgdir/usr/lib/gedit/plugins/markdown_preview/locale"
}
|