You are not logged in.
Hi Archies,
My question may have been answered well before. If so sorry and please just tell me where it lies :oops:
I'm playing a bit with abs and makepkg on misc packages. This is until I feel a bit more confident to use it for less misc packages & the kernel.
Now I'm on emelfm2. it's INSTALL file says one has to edit the Makefile.config for certain options like
# setting this to 1 makes the default file-pane layout "horizontal"
PANES_HORIZONTAL ?=0
What am I suppose to do to include such a modified option before launching makepkg ?
The PKGBUILD's default build lines are :
build() {
cd $startdir/src/$pkgname-$pkgver
make PREFIX=/usr
make PREFIX=$startdir/pkg/usr install
}
Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery ) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9
Offline
What am I suppose to do to include such a modified option before launching makepkg ?
You have to put it in the build section. Something like
grep PANES_HORIZONTAL /path/to/file |sed 's|0|1|' -i /path/to/file
Offline
You need to use sed to edit the file - something like this:
cd $startdir/src/$pkgname-$pkgver
sed '/PANES_HORIZONTAL/ s/0/1/' -i Makefile.config
make PREFIX=/usr
make PREFIX=$startdir/pkg/usr install
I'm still only getting the hang of sed myself - have a look through some other PKGBUILDs for other examples.
Offline
Thank you guys.
That's what I read in the wiki --with more details, but a noob sometimes needs to read it twice or more before "getting into"
Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery ) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9
Offline