summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05b8e2bbe80d2890f8d740f2ff50afa6794fa98a (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
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emacs-sly-git
pkgver=1.0.0.beta.238.g249975a
pkgrel=1
pkgdesc="Common Lisp IDE for Emacs. Fork of slime."
arch=('any')
url="https://github.com/capitaomorte/sly"
license=('custom')
depends=('emacs' 'gawk')
makedepends=('git')
provides=('sly')
conflicts=('sly')
source=("emacs-sly::git+https://github.com/capitaomorte/sly.git")
md5sums=('SKIP')
_gitname="emacs-sly"
options=('!makeflags')

pkgver() {
  cd "$srcdir"/"$_gitname"
  echo $(git describe --tags | sed 's|-|.|g')
}

prepare () {
  cd "$srcdir"/"$_gitname"/contrib
  # some files cannot be byte-compiled
  mv sly-fancy.el doof1
  mv sly-stickers.el doof2
}

build() {
  cd "$srcdir"/"$_gitname"
  make
  # reverting the prepare step to include the not byte-compiled files
  cd contrib
  mv doof1 sly-fancy.el
  mv doof2 sly-stickers.el
}

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