summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 598d8abcc9926dbe332cb0dbd6a04e2b2aa5fcc8 (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
# Maintainer: Noel Maersk <veox wemakethings net>
# Contributor: emhs <emhs08 gmail com>
# Contributor: Nils <mail n-sch de>

pkgname=emacs-markdown-mode-git
pkgver=2.4.r330.ge096bb9
pkgrel=1
pkgdesc='Emacs markdown-mode (latest git version)'
arch=('i686' 'x86_64')
url='https://jblevins.org/projects/markdown-mode/'
license=('GPL')
makedepends=('git')
depends=('emacs')
install=${pkgname}.install
provides=('emacs-markdown-mode')
conflicts=('emacs-markdown-mode')
source=("$pkgname"::'git+https://github.com/jrblevin/markdown-mode.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  # cutting off 'v' prefix that presents in the git tag
  git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/$pkgname"
  mkdir -p $pkgdir/usr/share/emacs/site-lisp/markdown-mode
  install -Dm644 *.el $pkgdir/usr/share/emacs/site-lisp/markdown-mode
}