You are not logged in.

#1 2013-05-08 12:04:52

the_gamer
Member
Registered: 2009-12-12
Posts: 8

[Request] and [aur-issue] wahcade-bzr

Hi folks,

wahcade-bzr from aur https://aur.archlinux.org/packages/wahcade-bzr/ isn't working at all anymore.
It compiles without errors but no files are installed. pacman -Ql wahcade-bzr says:

wahcade-bzr /usr/
wahcade-bzr /usr/bin/
wahcade-bzr /usr/share/
wahcade-bzr /usr/share/pixmaps/

Can't work. I tried to repair it(please see the comment to the package, the dependencies are wrong). But
in the channel in IRC to me was said to split the functions into prepare() and package()-functions for it to work.
I read the manpage which says that prepare is for everything which has to be done to the files up to the
creation of the package and package() is for installing.

So I split it after the adaptions with sed for arch. But makepkg aborts because it says it can't find the install-file for
the package-function. So it doesn't work at all.

Can anybody tell me how to make this package work again with the newest bzr of wahcade?

Thanks a lot in advance

Last edited by the_gamer (2013-05-08 12:05:23)

Offline

#2 2013-05-08 12:12:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [Request] and [aur-issue] wahcade-bzr

The problem is that it's hardcoding the install to ../../pkg instead of using the pkgdir variable. That doesn't work with pacman 4.1.

Give me a few minutes, I'll see if I can clean this thing up a bit.

Last edited by Scimmia (2013-05-08 12:12:45)

Offline

#3 2013-05-08 12:59:01

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [Request] and [aur-issue] wahcade-bzr

Yeah, all that really HAD to be done was to change that ../../pkg. I went ahead and reorganized it/updated it for the other changes in pacman 4.1 and a few other necessary changes. I'm not sure what the 'pil' optdep is, though.

# Maintainer: Adam Newby <mastacheif@gmail.com>
pkgname=wahcade-bzr
_pkgname=wahcade
pkgver=133
pkgrel=1
pkgdesc="Wah!Cade, Front-end software for arcade cabinets - Development version"
arch=('any')
url="http://code.launchpad.net/~waynemou/wahcade/devel"
license=('GPL')
depends=('pygtk' 'python2-chardet')
optdepends=('pil: required for image rotation in layouts'
            'gstreamer0.10: required for video & music playback'
            'python2-pygame: required for joystick support')
makedepends=('bzr')
conflicts=('wahcade')
source=("$_pkgname::bzr+http://bazaar.launchpad.net/~waynemou/wahcade/devel/")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"

  bzr revno
}

prepare() {
  cd "$srcdir/$_pkgname"
  
# Set scripts to run with python2
  find -name '*.py' -exec sed -i 's/env python$/python2/' {} \;
  sed -i 's/python/python2/g' install

# Adjust install script for installing to pkgdir
  sed -e '/\/usr\/share\/applications/d' \
      -e "s|PREFIX=/usr/local|PREFIX=$pkgdir/usr|" \
      -e 's|cd ${DESTDIR}|cd /usr/share/${NAME}|g' \
      -e 's|/usr/share/pixmaps|$PREFIX/share/pixmaps|g' \
      -i install
}

package() {
  cd "$srcdir/$_pkgname"
  
# Create directories for the install script
  install -d "$pkgdir/usr/"{bin,share/pixmaps}

  ./install
}

# vim:set ts=2 sw=2 et:

Last edited by Scimmia (2013-05-08 13:15:08)

Offline

#4 2013-05-08 13:21:13

the_gamer
Member
Registered: 2009-12-12
Posts: 8

Re: [Request] and [aur-issue] wahcade-bzr

Great!

Thanks a lot, this works!

Offline

#5 2013-08-11 14:48:52

Pitou
Member
Registered: 2011-02-13
Posts: 62

Re: [Request] and [aur-issue] wahcade-bzr

Hello,

I cannot install wahcade-bzr, it gives me the following error messages:

==> Connecting to server....
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
==> Bazaar checkout done or server timeout
==> Starting build...
./install: ligne11: ../../pkg/usr/bin/wahcade: Aucun fichier ou dossier de ce type
./install: ligne12: ../../pkg/usr/bin/wahcade: Aucun fichier ou dossier de ce type
./install: ligne13: ../../pkg/usr/bin/wahcade: Aucun fichier ou dossier de ce type
chmod: impossible d'accéder à « ../../pkg/usr/bin/wahcade »: Aucun fichier ou dossier de ce type
./install: ligne17: ../../pkg/usr/bin/wahcade-layout-editor: Aucun fichier ou dossier de ce type
./install: ligne18: ../../pkg/usr/bin/wahcade-layout-editor: Aucun fichier ou dossier de ce type
./install: ligne19: ../../pkg/usr/bin/wahcade-layout-editor: Aucun fichier ou dossier de ce type
chmod: impossible d'accéder à « ../../pkg/usr/bin/wahcade-layout-editor »: Aucun fichier ou dossier de ce type
./install: ligne23: ../../pkg/usr/bin/wahcade-setup: Aucun fichier ou dossier de ce type
./install: ligne24: ../../pkg/usr/bin/wahcade-setup: Aucun fichier ou dossier de ce type
./install: ligne25: ../../pkg/usr/bin/wahcade-setup: Aucun fichier ou dossier de ce type
chmod: impossible d'accéder à « ../../pkg/usr/bin/wahcade-setup »: Aucun fichier ou dossier de ce type


Any idea?

Pitou!

Offline

#6 2013-08-12 04:53:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [Request] and [aur-issue] wahcade-bzr

When posting, always precede commands with LC_ALL=C and always use code tags.

Was the PKGBUILD used *exactly* as I posted above? I just tried it again and it still works fine.

Offline

#7 2013-08-12 14:10:57

Pitou
Member
Registered: 2011-02-13
Posts: 62

Re: [Request] and [aur-issue] wahcade-bzr

I tried using yaourt. I'll try again with LC_ALL=C.

What procedure you're referring to about the PKGBUILD? I don't see any in the previous post.

Thank you.

Offline

#8 2013-08-12 15:19:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [Request] and [aur-issue] wahcade-bzr

Post #3 in this thread.

Offline

#9 2013-08-12 15:25:32

Pitou
Member
Registered: 2011-02-13
Posts: 62

Re: [Request] and [aur-issue] wahcade-bzr

you mean the code in post #3 is the PKGBUILD content? Isn't is already this when it gets fetched with yaourt?

Offline

#10 2013-08-12 15:35:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [Request] and [aur-issue] wahcade-bzr

The whole point of this thread was that the wahcade-bzr PKGBUILD in the AUR wasn't working. I posted a fixed PKGBUILD in post #3. yaourt gets the PKGBUILD from the AUR, which is still the broken one.

Offline

#11 2013-08-12 15:37:20

Pitou
Member
Registered: 2011-02-13
Posts: 62

Re: [Request] and [aur-issue] wahcade-bzr

ohhh, sorry, understand now! smile Gonna try it in 15 mins and post back

Offline

#12 2013-08-12 20:54:39

Pitou
Member
Registered: 2011-02-13
Posts: 62

Re: [Request] and [aur-issue] wahcade-bzr

It did install correctly (I think), but now I can't find the executable (wahcade, wahcade-setup)

Offline

#13 2013-08-12 20:58:13

Pitou
Member
Registered: 2011-02-13
Posts: 62

Re: [Request] and [aur-issue] wahcade-bzr

found it, /usr/bin

Offline

#14 2013-08-13 12:24:32

Pitou
Member
Registered: 2011-02-13
Posts: 62

Re: [Request] and [aur-issue] wahcade-bzr

Everything is working fine. Thanks very much for your help!

Offline

Board footer

Powered by FluxBB