[aur-general] Advice needed

Dave Reisner d at falconindy.com
Tue Oct 9 05:13:53 EDT 2012


On Tue, Oct 09, 2012 at 05:47:38AM -0300, Martín Cigorraga wrote:
> 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

Maybe if you removed the redirection to /dev/null you'd get some useful
feedback as to why this fails. If this isn't the issue, then you need to
provide more than "it doesn't work".

> }
> 
> 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