You are not logged in.

#1 2008-03-05 11:51:46

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

customizepkg

hello,
i want to change a build() line through customizepgk for use with yaourt.
i have following in my phatch file under /etc/customizepkg.d:

replace#globals#--prefix=$startdir/pkg/usr#--prefix=/usr --root=$startdir/pkg || return 1

but i always get this error:

sed: -e expression #1, char 26: unknown option to `s'

i've tried to escape the slashes, "|" and "$", but nada.
any help appreciated.

vlad

Offline

#2 2008-03-05 18:22:20

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: customizepkg

hi !

Here is the right syntax:

replace#global#--prefix=$startdir\\/pkg\\/usr#--prefix=\\/usr --root=$startdir\\/pkg || return 1

Use "global" instead of "globals" and double "\\" as escape.


$ customizepkg
=> removes/replaces '--prefix=$startdir\/pkg\/usr' by '--prefix=\/usr --root=$startdir\/pkg || return 1' in global
--- ./PKGBUILD    2008-03-05 19:19:16.000000000 +0100
+++ ./PKGBUILD.custom    2008-03-05 19:19:20.000000000 +0100
@@ -25,7 +25,7 @@
 
 build() {
 
-  ./configure --prefix=$startdir/pkg/usr
+  ./configure --prefix=/usr --root=$startdir/pkg || return 1
   make || return 1
   make DESTDIR="$pkgdir" install
 }

Offline

#3 2008-03-05 20:53:19

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: customizepkg

i see,
thank you wain!

vlad

Offline

#4 2008-03-06 11:48:30

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: customizepkg

once again:
thank you wain!
i discovered customizepkg some days ago and i think it's really really useful.

vlad

Offline

Board footer

Powered by FluxBB