summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81f79f67cc27e3504cba860d6f3b536a3792117b (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
# Maintainer: Noel Maersk <veox plus packages the veox toad pw>

pkgname=emacs-lll-mode-git
pkgver=v0.1.0.r0.gdecc55c
pkgrel=1
pkgdesc='An emacs major mode for editing Ethereum LLL code'
arch=('x86_64')
url='https://github.com/robmyers/lll-mode'
license=('GPLv3')
makedepends=('git')
depends=('emacs')
install=${pkgname}.install
provides=('emacs-lll-mode')
conflicts=('emacs-lll-mode')
source=("$pkgname"::'git+https://gitlab.com/veox/emacs-lll-mode.git')
md5sums=('SKIP')

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

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