You are not logged in.

#1 2008-04-15 00:07:08

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

How to patch a PKGBUILD

I've been meaning to learn more about PKGBUILDS, but haven't got a chance to yet. I was trying to surf google to find a way to get TF2 working in linux, and came across a page (http://wine-forum.org/showthread.php?p=101) where someone mentioned using a 3DMark patch in wine. I downloaded the patch (I'm also horrible at patching, trying to work on that too), and I'm trying to edit the PGKBUILD of the bin32-wine-suse in AUR. I've read the wiki article on adding a patch to a pkgbuild, but I don't really understand it.

Can anyone point me in the right direction?

Offline

#2 2008-04-15 00:10:38

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: How to patch a PKGBUILD

Near the top of the build function in the PKGBUILD you probably want to add
"patch -Np1 -i <patch file>"  - note if that does not work try Np0 and Np2 (see "man patch" for more info)

Of course, you need to add you patch to the sources and md5sum array.

Offline

#3 2008-04-15 00:14:37

brebs
Member
Registered: 2007-04-03
Posts: 3,066

Re: How to patch a PKGBUILD

"bin32" means it's pre-compiled - there's no sourcecode to patch wink

You'll need to patch the "wine" package, which will need a 32-bit chroot if you're on x86_64.

Offline

#4 2008-04-15 00:16:58

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: How to patch a PKGBUILD

Thanks for the quick answers smile Looks like its more trouble than its worth... Maybe I can work around the 3dmark patch smile

Offline

Board footer

Powered by FluxBB