You are not logged in.
Pages: 1
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
Include the required sed command(s) in the build() function of your PKGBUILD.
Offline
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
In position 3. Because sed is more flexible than patch files.
Offline
Pages: 1