diff options
author | sballert | 2018-09-06 18:05:23 +0200 |
---|---|---|
committer | sballert | 2018-09-06 18:05:23 +0200 |
commit | f14c12ad2754d361e35b0f21eabddc35a18d878c (patch) | |
tree | 6f1d64f950494b442a244cc18bb8d5e6b9b910e5 | |
download | aur-emacs-solaire-mode-git.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..56c2e8e9e3dd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = emacs-solaire-mode-git + pkgdesc = If only certain buffers could be so grossly incandescent. + pkgver = r46.abf2ce4 + pkgrel = 1 + url = https://github.com/hlissner/emacs-solaire-mode + arch = any + license = GPL3 + makedepends = git + depends = emacs + provides = emacs-solaire-mode + conflicts = emacs-solaire-mode + source = git+https://github.com/hlissner/emacs-solaire-mode.git + sha256sums = SKIP + +pkgname = emacs-solaire-mode-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a69e6bba7560 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: sballert <sballert@posteo.de> + +_gituser="hlissner" +_gitrepo="emacs-solaire-mode" + +pkgname=emacs-solaire-mode-git +pkgver=r46.abf2ce4 +pkgrel=1 +pkgdesc="If only certain buffers could be so grossly incandescent." +url="https://github.com/${_gituser}/${_gitrepo}" +arch=('any') +license=('GPL3') +depends=('emacs') +makedepends=('git') +provides=('emacs-solaire-mode') +conflicts=('emacs-solaire-mode') +source=("git+https://github.com/${_gituser}/${_gitrepo}.git") +sha256sums=('SKIP') + +pkgver() { + cd "$_gitrepo" + printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD) +} + +build() { + cd "$_gitrepo" + emacs -q --no-splash -batch -L . -f batch-byte-compile *.el +} + +package() { + cd "$_gitrepo" + install -d "$pkgdir"/usr/share/emacs/site-lisp/${_gitrepo}/ + install -m644 *.el{c,} "$pkgdir"/usr/share/emacs/site-lisp/${_gitrepo}/ +} |