You are not logged in.
I've read the guidelines on the wiki but - for the life of me - I can't get my first attempt at a PKGBUILD to work. I keep on getting the same error no matter what I do:
# makepkg
: command not found
: command not found
: command not found
'KGBUILD: line 21: syntax error near unexpected token '{
'KGBUILD: line 21: 'build() {
is not available for the 'i686' architecture.
Note that many packages may need a line added to their PKGBUILD
such as arch=('i686')
#
Here's the text file 'PKGBUILD':
# Contributor: shagbag <shagbag1@googlemail.com>
pkgname=openchrome-experimental-svn
pkgver=412
pkgrel=1
pkgdesc="The experimental 2D-only openchrome video driver for newer VIA chipsets"
arch=('i686')
url="http://wiki.openchrome.org/tikiwiki"
license=
depends=('x-server' 'xproto' 'xvmc' 'fontsproto' 'libdrm')
makedepends=('subversion')
options=
conflicts=('openchrome' 'xf86-video-via' 'xf86-video-unichrome')
provides=('via')
source=()
md5sums=()
_svntrunk=http://svn.openchrome.org/svn/branches/experimental_branch
_svnmod=openchrome-experimental
build() {
cd $startdir/src
msg "Connecting to SVN server..."
msg "Checking out $_svnmod"
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
msg "SVN checkout done or server timeout"
msg "Starting build..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
./autogen.sh --prefix=/usr
#./configure --prefix=/usr
make || return 1
make DESTDIR=${startdir}/pkg install
rm -rf $startdir/src/$_svnmod-build
}
Can anyone PLEASE tell me why I'm getting the error I'm getting?
Last edited by Shagbag (2007-10-17 21:17:16)
Offline
Make sure you have all the build tools installed by running pacman -Sy base-devel. The package builds successfully for me. I made some minor changes to your PKGBUILD - libxvmc in depends instead of xvmc, {} around the svn vars, to be precise - but nothing related to your error, which I can't reproduce.
Forum-related advice - it's more helpful both to you and to others if your topic summarises your problem.
Offline
Thx tomk. I'm glad to hear it compiled for you.
I installed base-devel as you suggested but I'm still getting the same error. I don't know what's causing it.
I've checked the file and directory permissions:
# ls -l /var/abs/local/openchrome-experimental_branch/
total 4
-rw-r--r-- 1 root root 1039 2007-10-17 05:15 PKGBUILD
# ls -l /var/abs/local/
total 32
drwxr-sr-x 4 nobody 549 4096 2007-10-14 20:59 akamaru-svn
drwxr-xr-x 4 root root 4096 2007-10-14 18:53 awn
drwxr-xr-x 4 root root 4096 2007-10-14 19:23 awn_extras
drwxr-sr-x 2 nobody 549 4096 2006-04-16 01:22 hsetroot
drwxrwsrwx 4 nobody 549 4096 2007-10-14 21:06 kiba-plugins-svn
drwxr-sr-x 4 nobody 549 4096 2007-10-14 21:02 kibadock-svn
drwxr-xr-x 2 root root 4096 2007-10-16 20:52 openchrome-experimental_branch
Any ideas what's wrong with my system?
*EDIT*
It's the damned weirdest thing. I copied and pasted the text in my first post to a new file, created a new directory called '/var/abs/local/openchrome-experimental' and moved the new file into it. Then, when I invoked makepkg, it compiled! Problem solved but understanding not :S. I'm going to post it to AUR. Thanks for your help.
Last edited by Shagbag (2007-10-17 05:47:37)
Offline