[aur-general] Advice needed
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@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 }
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@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 }
Of course! Removing the null redirection give me the feedback I need to know what was happening - before that all I had was a "Build failed" message. Thank you!
Ok, I have the package built and installed but when I install it I have this error message from pacman: (1/1) installing emacs-buffmenu+ [-----------------------------] 100% /tmp/alpm_aKy6vm/.INSTALL: line 17: syntax error near unexpected token `}' /tmp/alpm_aKy6vm/.INSTALL: line 17: `}' error: command failed to execute correctly ~ $ May be this associated with the plus symbol? Despite the error message the package seems to install correctly. Here is the updated PKGBUILD: http://pastebin.com/7rysy78e
On Tue, Oct 9, 2012 at 7:31 AM, Martín Cigorraga <msx@archlinux.us> wrote:
Ok, I have the package built and installed but when I install it I have this error message from pacman:
(1/1) installing emacs-buffmenu+ [-----------------------------] 100% /tmp/alpm_aKy6vm/.INSTALL: line 17: syntax error near unexpected token `}' /tmp/alpm_aKy6vm/.INSTALL: line 17: `}' error: command failed to execute correctly ~ $
May be this associated with the plus symbol? Despite the error message the package seems to install correctly. Here is the updated PKGBUILD: http://pastebin.com/7rysy78e
Not it don't sorry for posting before checking :( Now my question is: how do I check the /tmp/alpm_aKy6vm/.INSTALL? As it is deleted I have no access to it.
On Oct 9, 2012 12:41 PM, "Martín Cigorraga" <msx@archlinux.us> wrote:
On Tue, Oct 9, 2012 at 7:31 AM, Martín Cigorraga <msx@archlinux.us> wrote:
Ok, I have the package built and installed but when I install it I have this error message from pacman:
(1/1) installing emacs-buffmenu+ [-----------------------------] 100% /tmp/alpm_aKy6vm/.INSTALL: line 17: syntax error near unexpected token
/tmp/alpm_aKy6vm/.INSTALL: line 17: `}' error: command failed to execute correctly ~ $
May be this associated with the plus symbol? Despite the error message
`}' the
package seems to install correctly. Here is the updated PKGBUILD: http://pastebin.com/7rysy78e
Not it don't sorry for posting before checking :( Now my question is: how do I check the /tmp/alpm_aKy6vm/.INSTALL? As it is deleted I have no access to it.
The file in /tmp is your install scriptlet. You have an empty function which is not syntactically correct. Just delete it.
participants (2)
-
Dave Reisner
-
Martín Cigorraga