You are not logged in.
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
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
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
Great!
Thanks a lot, this works!
Offline
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
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
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
Post #3 in this thread.
Offline
you mean the code in post #3 is the PKGBUILD content? Isn't is already this when it gets fetched with yaourt?
Offline
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
ohhh, sorry, understand now! Gonna try it in 15 mins and post back
Offline
It did install correctly (I think), but now I can't find the executable (wahcade, wahcade-setup)
Offline
found it, /usr/bin
Offline
Everything is working fine. Thanks very much for your help!
Offline