summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68655f8f0856973f4822187eba13b54470cf4b9f (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emacs-sly-git
pkgver=2.21.r67.g893a939a
pkgrel=1
pkgdesc="Common Lisp IDE for Emacs. Fork of slime."
arch=('any')
url="https://github.com/joaotavora/sly"
license=('custom')
depends=('emacs' 'gawk' 'common-lisp')
makedepends=('git')
provides=('sly' 'emacs-sly')
conflicts=('sly' 'emacs-sly')
source=("emacs-sly::git+https://github.com/joaotavora/sly.git")
md5sums=('SKIP')
options=('!makeflags')

pkgver() {
  cd ${pkgname%-git}
  echo $(git describe --tags | cut -c15- | sed 's+-+.r+' | tr - .)
}

build() {
  cd ${pkgname%-git}
  make
}

package() {
  cd ${pkgname%-git}
  install -d "$pkgdir"/usr/share/emacs/site-lisp/sly
  cp -r "$srcdir"/${pkgname%-git}/* \
    "$pkgdir"/usr/share/emacs/site-lisp/sly
  install -D -m644 README.md \
    "$pkgdir"/usr/share/licenses/$pkgname/public_domain.txt 
}