summaryrefslogtreecommitdiff
path: root/pcr/emacs-auto-complete
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-02-01 15:26:38 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-02-01 17:11:36 +0100
commit6f595b6edbc1ea0e16e268cb67197afea0704193 (patch)
tree1fbcd59e42af9911868d4db6187e5646e2ab1673 /pcr/emacs-auto-complete
parent320e5c95cef052fcdd748ec2e754c323d105e2b9 (diff)
downloadabslibre-6f595b6edbc1ea0e16e268cb67197afea0704193.tar.gz
abslibre-6f595b6edbc1ea0e16e268cb67197afea0704193.tar.bz2
abslibre-6f595b6edbc1ea0e16e268cb67197afea0704193.zip
pcr/emacs-auto-complete: updated to 1.5.1
Diffstat (limited to 'pcr/emacs-auto-complete')
-rw-r--r--pcr/emacs-auto-complete/PKGBUILD30
-rw-r--r--pcr/emacs-auto-complete/emacs-auto-complete.install21
2 files changed, 51 insertions, 0 deletions
diff --git a/pcr/emacs-auto-complete/PKGBUILD b/pcr/emacs-auto-complete/PKGBUILD
new file mode 100644
index 000000000..7db8ce15f
--- /dev/null
+++ b/pcr/emacs-auto-complete/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer (AUR): Alex Whitt <alex.joseph.whitt@gmail.com>
+# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
+
+# parabola changes and rationale:
+# - added replaces for previous pkgname
+# - removed unnecessary makedepends: git
+# - removed unnecessary provides
+
+pkgname=emacs-auto-complete
+pkgver=1.5.1
+pkgrel=1
+pkgdesc="A auto-complete declaration for simplifying your .emacs"
+url="https://github.com/auto-complete/auto-complete"
+arch=('any')
+license=('GPL3')
+depends=('emacs' 'emacs-popup-el' 'emacs-fuzzy')
+source=("https://github.com/auto-complete/auto-complete/archive/v${pkgver}.tar.gz")
+sha256sums=('1bfb4351c3e49681a875dab937c25b6b38e4bf8a8cd64bcba1954300242578cb')
+install=${pkgname}.install
+
+build() {
+ cd "${srcdir}/auto-complete-${pkgver}"
+ emacs -q --no-splash -batch -L . -f batch-byte-compile *.el
+}
+
+package() {
+ cd "${srcdir}/auto-complete-${pkgver}"
+ install -d "${pkgdir}/usr/share/emacs/site-lisp/auto-complete"
+ install -m644 *.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/auto-complete/"
+}
diff --git a/pcr/emacs-auto-complete/emacs-auto-complete.install b/pcr/emacs-auto-complete/emacs-auto-complete.install
new file mode 100644
index 000000000..6885f2cba
--- /dev/null
+++ b/pcr/emacs-auto-complete/emacs-auto-complete.install
@@ -0,0 +1,21 @@
+post_install () {
+
+cat << EOF
+
+==> Add this code to your .emacs file to use the mode:
+
+(require 'auto-complete-config)
+(ac-config-default)
+
+==> Or, with use-package:
+
+(use-package auto-complete-config
+ :config
+ (ac-config-default))
+
+EOF
+}
+
+post_upgrade () {
+ post_install $1
+}