summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99f0c0ec93f14771dea0e1d615493d9dadc31d2f (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.40.g710d4be4
pkgrel=2
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- | 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 
}