diff options
author | sballert | 2018-07-20 16:07:10 +0200 |
---|---|---|
committer | sballert | 2018-07-20 16:07:10 +0200 |
commit | a04bf0d47c2d910d1becb8f45fcc409401832f9e (patch) | |
tree | d25c3b24ead1fc4872a858a2f263605c543845fe /PKGBUILD | |
download | aur-a04bf0d47c2d910d1becb8f45fcc409401832f9e.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..03131ba66593 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: sballert <sballert@posteo.de> + +pkgname=emacs-general.el-git +pkgver=r253.e690ef9 +pkgrel=1 +pkgdesc="More convenient key definitions in emacs" +arch=('any') +url="https://github.com/noctuid/general.el" +license=('GPL') +makedepends=('git') +provides=('emacs-general.el') +source=("git+https://github.com/noctuid/general.el.git") +md5sums=('SKIP') +_gitname="general.el" + +pkgver() { + cd "$_gitname" + printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD) +} + +build() { + cd "$_gitname" + emacs -Q -batch -L . -f batch-byte-compile *.el || true +} + +package() { + cd $_gitname + install -d "${pkgdir}/usr/share/emacs/site-lisp/general-el" + install -m644 general.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/general-el/" +} |