You are not logged in.
I've been looking at this for quite a while now and am running out of ideas/inspiration. Google isn't helping and after reading the docs on the wiki, I'm still none the wiser.
So, I've compiled the source code properly but my PKGFILE is having a problem at the make install stage:
make[2]: Entering directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
/bin/sh ../mkinstalldirs /usr/bin
/usr/bin/install -c foobillard /usr/bin/foobillard
/usr/bin/install: cannot create regular file ‘/usr/bin/foobillard’: Permission denied
make[2]: *** [install-binPROGRAMS] Error 1
make[2]: Leaving directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in build().
Aborting...
My PKGFILE can be seen at: http://pastebin.com/wrbZ6niq.
TIA
Last edited by kabads (2013-05-14 20:50:54)
Offline
RE-EDIT: view Karol solution
Last edited by sl1pkn07 (2013-05-14 21:15:35)
Offline
and after reading the docs on the wiki, I'm still none the wiser.
What exactly have you been reading? Because if you take /usr/share/pacman/PKGBUILD.proto or read https://wiki.archlinux.org/index.php/Creating_Packages, you can't get to what you have without some serious changes. It seems like you took some bad and old PKGBUILD (not PKGFILE) as a starting point instead of more official/up-to-date docs.
At the very least you should read the section about the package() function.
Edit: now you can copy/paste from the above reply, but try to understand how makepkg works. And since you passed the prefix to ./configure, it's unlikely that you'll need it again for the install step.
Last edited by Raynman (2013-05-14 20:25:51)
Offline
It's called PKGBUILD, not PKGFILE :-)
I don't see the error you posted, but I'm hitting this one: https://bbs.archlinux.org/viewtopic.php?pid=1216417
http://arm.konnichi.com/search/index.ph … ommunity=1 has foobillard 3, if you're interested.
Have a look how to properly create a PKGBUILD: http://pastebin.com/MeXiLDV9
Offline
OK - using the latest example of PKGBUILD sorted this out - thanks for the pointer.
Offline