summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/auto-complete/PKGBUILD30
-rw-r--r--pcr/auto-complete/auto-complete.install21
-rw-r--r--pcr/emacs-auto-complete/PKGBUILD30
-rw-r--r--pcr/emacs-auto-complete/emacs-auto-complete.install21
4 files changed, 51 insertions, 51 deletions
diff --git a/pcr/auto-complete/PKGBUILD b/pcr/auto-complete/PKGBUILD
deleted file mode 100644
index 884956f45..000000000
--- a/pcr/auto-complete/PKGBUILD
+++ /dev/null
@@ -1,30 +0,0 @@
-# Contributor (Arch): abf <zouxiaoming@gmail.com>
-# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
-
-pkgname=auto-complete
-pkgver=1.3.1
-pkgrel=1
-pkgdesc="A plugin for emacs that allows to auto-complete.Auto Complete Mode is the most intelligent auto-completion extension for GNU Emacs."
-arch=('any')
-url="http://cx4a.org/software/auto-complete/"
-license=('GPL3')
-install=$pkgname.install
-depends=()
-optdepends=('emacs')
-source=(http://cx4a.org/pub/auto-complete/$pkgname-$pkgver.tar.bz2)
-md5sums=('0ffdc1223d40b8ebc57495e33708ceea')
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
- make
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
- mkdir -p $pkgdir/usr/share/$pkgname
- mkdir -p $pkgdir/usr/share/emacs/site-lisp/
- make DIR="$pkgdir/usr/share/$pkgname" install
- ln -s /usr/share/$pkgname $pkgdir/usr/share/emacs/site-lisp/$pkgname
-}
-
-# vim:set ts=2 sw=2 et:
diff --git a/pcr/auto-complete/auto-complete.install b/pcr/auto-complete/auto-complete.install
deleted file mode 100644
index 9687f5e43..000000000
--- a/pcr/auto-complete/auto-complete.install
+++ /dev/null
@@ -1,21 +0,0 @@
-post_install()
-{
-echo " "
-echo "==================================================================="
-echo " "
-echo "Add the following code to your .emacs:"
-
-echo "(add-to-list 'load-path \"/usr/share/emacs/site-lisp/auto-complete\")"
-echo "(require 'auto-complete-config)"
-echo "(add-to-list 'ac-dictionary-directories \"/usr/share/emacs/site-lisp/auto-complete/ac-dict\")"
-echo "(ac-config-default)"
-echo " "
-echo "==================================================================="
-echo " "
-
-}
-
-post_upgrade()
-{
- post_install
-}
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
+}