You are not logged in.

#1 2012-04-16 17:13:26

MeiMei
Member
Registered: 2012-04-16
Posts: 2

Using Sed to Patch when building AURs

Im all very new to arch and sed and while im learning fast my understanding of SED isnt good.
how would i use some sed lines if i wanted to patch something?
Im sure there's another post about this somewhere but i either cant find it or dont understand it.

an example i was using to try to teach myself was the unofficial patch to fix the firefox-kde-opensuse AUR.
so far ive sort of figured out how to use sed to edit text files but how to apply that to the AUR has me stumped.

Last edited by MeiMei (2012-04-16 17:15:52)

Offline

#2 2012-04-16 17:16:01

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Using Sed to Patch when building AURs

Include the required sed command(s) in the build() function of your PKGBUILD.

Offline

#3 2012-04-16 17:25:16

MeiMei
Member
Registered: 2012-04-16
Posts: 2

Re: Using Sed to Patch when building AURs

Oh, thank you. Would it go in the 1st, 2nd, or 3rd place ive listed in that code or somewhere else?

build() {
HERE?(1)
  cd "${srcdir}/mozilla-release"
HERE?(2)
  patch -Np1 -i "${srcdir}/mozilla-firefox-1.0-lang.patch"
  patch -Np1 -i "${srcdir}/firefox-install-dir.patch"
HERE?(3)

Edit: Actually perhaps thats something the wiki can help with.

Last edited by MeiMei (2012-04-16 17:26:21)

Offline

#4 2012-04-16 17:50:10

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

Re: Using Sed to Patch when building AURs

In position 3. Because sed is more flexible than patch files.

Offline

Board footer

Powered by FluxBB