You are not logged in.

#1 2012-10-06 14:31:10

stefano
Member
Registered: 2011-04-09
Posts: 258

[SOLVED] How to replace the source in a pkgbuild with a git repo?

I am trying to build csound (present in AUR: https://aur.archlinux.org/packages.php?ID=779), but compilation  fails, as noted in the comments. One of the commenters says that he has successfully built the package by pulling the sources from the git repo.
How can I do that? I know how to use git. What I don't know is

(1) how to use git from within  a PKGBUILD file,
or
(2) how to instruct the PKGBUILD file to use the locally pulled git repo


Cheers,

Stefano

Last edited by stefano (2012-10-06 15:11:14)

Offline

#2 2012-10-06 14:45:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to replace the source in a pkgbuild with a git repo?

Try csound-git https://aur.archlinux.org/packages.php?ID=48830 but see the comments - problems again.
You can see how to deal with git in the PKGBUILD.

Another way is to instal binary package from an unofficial user repository. archaudio-preview has csound 5.14.2-1.
https://wiki.archlinux.org/index.php/Un … positories

[archaudio-preview]
# unverified PKGBUILDs AND/OR untested packages
Server = http://repos.archaudio.org/$repo/$arch

Last edited by karol (2012-10-06 14:48:29)

Offline

#3 2012-10-06 15:09:54

stefano
Member
Registered: 2011-04-09
Posts: 258

Re: [SOLVED] How to replace the source in a pkgbuild with a git repo?

Thanks for the pointer Karol, I didn't know about csound-git.
I cannot compile it either, though. Taking care of the problem pointed out in the comment was easy enough---you need to copy one of the provided file in the git repo---, but the compilation fails nonetheless. I guess I'd need to dig into csound's compilation instructions (which are available on their website, and looks rather complex), but i have not time to do it now.

Anyways, the csound-git showed how to use git from inside a PKGBUILD, which answered my question. I am going to mark the question as SOLVED 


Cheers,

Stefano

Offline

Board footer

Powered by FluxBB