# Maintainer: Stefan Husmann pkgname=emacs-sly-git pkgver=1.0.0.beta.265.g669ca36 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 }