You are not logged in.
Pages: 1
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
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
i see,
thank you wain!
vlad
Offline
once again:
thank you wain!
i discovered customizepkg some days ago and i think it's really really useful.
vlad
Offline
Pages: 1