diff options
author | Mark Oteiza | 2015-06-08 22:55:27 -0400 |
---|---|---|
committer | Mark Oteiza | 2015-06-08 22:55:27 -0400 |
commit | 04115683a91c83311fd35acf84357f5b2e16230e (patch) | |
tree | f87b9315200b52d8da759c723d7710cc4fb193a9 | |
download | aur-04115683a91c83311fd35acf84357f5b2e16230e.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | flycheck.install | 20 |
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b1c0d6ccbdc3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by makepkg 4.2.1 +# Mon Apr 6 21:19:10 UTC 2015 +pkgbase = flycheck + pkgdesc = Modern on-the-fly syntax checking extension for GNU Emacs + pkgver = 0.23 + pkgrel = 1 + url = http://flycheck.readthedocs.org/ + install = flycheck.install + arch = any + license = GPL + makedepends = emacs + makedepends = texinfo + depends = emacs + depends = emacs-dash + source = https://github.com/flycheck/flycheck/archive/0.23.tar.gz + sha256sums = edda4967780f3566842c87b7a5d7f2630be593b9029a7909e5c02f68c82ee9e3 + +pkgname = flycheck + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..68958757532b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: holos + +pkgname=flycheck +pkgver=0.23 +pkgrel=1 +pkgdesc='Modern on-the-fly syntax checking extension for GNU Emacs' +arch=('any') +url="http://flycheck.readthedocs.org/" +license=('GPL') +# groups=('emacs-plugins') +depends=('emacs' 'emacs-dash') +makedepends=('emacs' 'texinfo') +install=flycheck.install +source=("https://github.com/flycheck/flycheck/archive/$pkgver.tar.gz") +sha256sums=('edda4967780f3566842c87b7a5d7f2630be593b9029a7909e5c02f68c82ee9e3') + +build() { + cd "$pkgname-$pkgver" + + emacs --batch -f batch-byte-compile flycheck.el + makeinfo --force --no-split -o doc/flycheck.info doc/flycheck.texi +} + +package() { + cd "$pkgname-$pkgver" + + install -d "$pkgdir/usr/share/emacs/site-lisp/flycheck" + install -Dm644 flycheck.{el,elc} "$pkgdir/usr/share/emacs/site-lisp/flycheck" + install -Dm644 doc/flycheck.info "$pkgdir/usr/share/info/flycheck.info" +} diff --git a/flycheck.install b/flycheck.install new file mode 100644 index 000000000000..faccb67f8d1e --- /dev/null +++ b/flycheck.install @@ -0,0 +1,20 @@ +INFO_DIR=usr/share/info +INFO_FILES=(flycheck) + +post_install() { + [[ -x usr/bin/install-info ]] || return 0 + for f in ${INFO_FILES[@]}; do + install-info ${INFO_DIR}/$f.info.gz ${INFO_DIR}/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + for f in ${INFO_FILES[@]}; do + install-info --delete ${INFO_DIR}/$f.info.gz ${INFO_DIR}/dir 2> /dev/null + done +} |