blob: 03c54b03625390b1e20d7b4c5e05618479de05a0 (
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
|
pkgname=gedit-markdownpreview-git
pkgver=r25.d30ccef
pkgrel=1
pkgdesc="Show side by side preview of markdown files"
arch=('any')
url="https://github.com/aliva/gedit-markdownpreview"
license=('GPL2')
depends=('gedit' 'python-markdown')
makedepends=('git')
optdepends=('pymdown-extensions')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/aliva/gedit-markdownpreview')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/${pkgname%-git}"
install -d $pkgdir/usr/lib/gedit/plugins/markdownpreview
cp markdownpreview.plugin markdownpreview.py style.css template.html \
$pkgdir/usr/lib/gedit/plugins/markdownpreview/
}
|