summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 87bc241f0b40db8ccdbfe5c4d6e843a0ca0d1e57 (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
# Contributor: Renato Garcia <fgarcia.renato@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emacs-bookmarkplus
pkgver=2021.04.18
pkgrel=1
pkgdesc="Bookmark+ package, which enhances vanilla Emacs bookmarks in many ways"
url="https://github.com/emacsmirror/bookmark-plus.git"
license=('GPL3')
arch=('any')
depends=('emacs')
makedepends=('git')
source=($pkgname::git+https://github.com/emacsmirror/bookmark-plus.git#commit=bd56210898498be3aa4cea4777529abc92378359)
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  awk '/Version/ {print $3}' bookmark+.el
}

build() {
  cd $pkgname
  emacs -Q -batch -L . -f batch-byte-compile *.el || true
}

package() {
  cd $pkgname
  install -dm755 "$pkgdir"/usr/share/emacs/site-lisp/
  install -Dm644 *.el{,c} "$pkgdir"/usr/share/emacs/site-lisp/
}