[arch-commits] Commit in ecb/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 17:50:16 UTC 2020


    Date: Tuesday, July 7, 2020 @ 17:50:16
  Author: felixonmars
Revision: 659877

archrelease: copy trunk to community-staging-any

Added:
  ecb/repos/community-staging-any/
  ecb/repos/community-staging-any/PKGBUILD
    (from rev 659875, ecb/trunk/PKGBUILD)
  ecb/repos/community-staging-any/ecb.install
    (from rev 659875, ecb/trunk/ecb.install)

-------------+
 PKGBUILD    |   33 +++++++++++++++++++++++++++++++++
 ecb.install |   16 ++++++++++++++++
 2 files changed, 49 insertions(+)

Copied: ecb/repos/community-staging-any/PKGBUILD (from rev 659875, ecb/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 17:50:16 UTC (rev 659877)
@@ -0,0 +1,33 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=ecb
+pkgver=2.40.1pre
+pkgrel=11
+_commit=071706b22efcfeb65da8381e317220d7f9d8cb54
+pkgdesc="Emacs Code Browser"
+arch=('any')
+url="http://ecb.sourceforge.net/"
+depends=('emacs')
+makedepends=('git')
+license=('GPL')
+install=ecb.install
+#source=(http://downloads.sourceforge.net/ecb/$pkgname-$pkgver.tar.gz)
+#source=(ecb-$pkgver.tar.gz::http://ecb.sourceforge.net/cvs_snapshots/ecb.tar.gz)
+#source=(git://github.com/emacsmirror/ecb.git)
+source=("git://github.com/alexott/ecb.git#commit=${_commit}")
+md5sums=('SKIP')
+
+build() {
+  cd "$srcdir"/$pkgname
+  sed -i 's|common/cedet.el|cedet.elc|' Makefile
+}
+
+package() {
+  cd "$srcdir"/$pkgname
+  _emacsver=`pacman -Q emacs | cut -f2 -d\ |cut -f1 -d-`
+  mkdir -p "$pkgdir"/usr/share/emacs/site-lisp/ecb
+  make CEDET=/usr/share/emacs/${_emacsver}/lisp/cedet ecb
+  cp -R "$srcdir"/$pkgname/* "$pkgdir"/usr/share/emacs/site-lisp/ecb
+  find "$pkgdir"/usr/share -type f -exec chmod 0644 {} \;
+  find "$pkgdir"/usr/share -type d -exec chmod 0755 {} \;
+}

Copied: ecb/repos/community-staging-any/ecb.install (from rev 659875, ecb/trunk/ecb.install)
===================================================================
--- community-staging-any/ecb.install	                        (rev 0)
+++ community-staging-any/ecb.install	2020-07-07 17:50:16 UTC (rev 659877)
@@ -0,0 +1,16 @@
+pre_install() {
+cat << EOM
+
+In order to actually use ecb you have to follow some more steps:
+1. Add the new ECB-directory to your emacs load-path variable.
+For example you may add this line into your ~/.emacs file:
+(add-to-list 'load-path "/usr/share/emacs/site-lisp/ecb")
+
+2. To load ecb at startup:
+(require 'ecb)
+- or -
+To load ecb first after starting it by ecb-activate:
+(require 'ecb-autoloads)
+
+EOM
+}


More information about the arch-commits mailing list