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: 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: *** [install-binPROGRAMS] Error 1 make: Leaving directory `/home/adam/Downloads/foo/src/foobillard-2.9/src' make: *** [install-am] Error 2 make: 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.
Last edited by kabads (2013-05-14 20:50:54)
RE-EDIT: view Karol solution
Last edited by sl1pkn07 (2013-05-14 21:15:35)
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)
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