[aur-general] Advice needed

Martín Cigorraga msx at archlinux.us
Tue Oct 9 04:47:38 EDT 2012


Hi, I would appreciate any help on these PKGBUILD and .install file on
what's I'm doing wrong since makepkg aborts with a build() error:

PKGBUILD file:

# Contributor: Martín Cigorraga <msx at archlinux.us>
pkgname=emacs-buffmenu+
pkgver=20120828
pkgrel=1
pkgdesc="Provides enhancements to the standard BufferMenu."
arch=('any')
url="http://www.emacswiki.org/BufferMenuPlus"
depends=('emacs')
license=('GPL2+')
provides=('emacs-buffmenu+')
conflicts=('emacs-buffmenu+')
install=$pkgname.install
source=(http://www.emacswiki.org/emacs/buff-menu%2b.el)
md5sums=('b7b7937094bc7fadd214cb35e2f8a3c6')

build() {
  # rename to buff-menu+.el
  mv $srcdir/buff-menu%2b.el $srcdir/buff-menu+.el
  # compile for speed
  emacs -Q -L . -batch -f batch-byte-compile *.el > /dev/null 2>&1
}

package() {
  # create destination path
  install -d $pkgdir/usr/share/emacs/site-lisp
  # copy over file into path
  cp $srcdir/buff-menu+.{el,elc} $pkgdir/usr/share/emacs/site-lisp
}

------

emacs-buffmenu+ file:

# -*- mode: sh; -*-

note () {
    cat << EOF
    ;BufferMenu+ mode
    (require 'buff-menu+)

EOF
}

post_install() {
    echo "==> Please add these lines to your ~/.emacs:"
    note
}

post_upgrade() {
}

# Message displayed afteer package removal.
post_remove() {
    echo "==> Please remove these lines from ~/.emacs:"
    note
}


More information about the aur-general mailing list