just felt like doing a quick guide on that moral speech…
(just wasting a little bit of time, course i just for the moment wanted to do some light work.)
first you need git
# xbps-install -S git
then go to a prefered dir where you want the void-pakage tree to be installed.
I prefered /opt ( Optional application software packages ) since i dont feel that it really fitted anywhere else
clone the pakage repository and create the bootstrap environment.
# cd /opt
# git clone https://github.com/voidlinux/void-packages
# cd void-packages
# ./xbps-src binary-bootstrap
*Tip: usually, you must always be in this directory whenever you are using xbps-src, otherwise xbps-src wont find itself when it enters the building mode.(that means, it wont work even if you create a symbolik link to /bin)
But you can prevent this behave, by adding this dir to the PATH variable. then xbps-src will be able to execute where ever you are
**Tip to Tip: the PATH variable is found in “/etc/profile”. “profile” in turn has orders to execute all “*.sh” files in “/etc/profiles.d”. So as a safety occasion, we can keep PATH in /etc/profile intact and instead append our path thru a separate .sh file
# cd /etc/profiles.d
# echo PATH=$PATH":/opt/void-packages">>binarypaths.sh
# echo export PATH>>binarypaths.sh
the suckless-terminal (st) template will be found in "void-pakages/srcpkgs/st"
go there and create a new dir called patches
# cd /opt/void-packages/srcpkgs/st
# mkdir patches
*TIP: if you don’t want to convert all your patches to -p0 (those found on succless homepage are -p1), witch means to remove all the +++ and — from the file, you can switch the patching mode buy adding “patch_args=”-p1"" to the template.
# sed ‘/depends=“ncurses”/a patch_args="-p1"’ template
(the line above will append the line nicely after dependencys)
now just simply drop what ever patches you like in to the patches dir and continue on building.
just make sure that the patch versions are the same as st
*(the line below asumes that you will use st0.7 witch is the current version)
**(a small note here is that this scroll back option failed at build for me. but other patches where installed this way, so i don’t think it is the method that is the week link)
# cd patches
# wget http://st.suckless.org/patches/st-scrollback-mouse-20160727-308bfbf.diff
# xbps-src pkg st
if it all went well, your package can be found in “/opt/void-packages/hostdir/binpkgs”
add the pakagedir as a new local reprisitory
# cd /etc/xbps.d
# chmod +x local-repo.conf
and install using xbps-install
# xbps-install -S st
also wanted to apologist to Duncan, xtream and biopsin for all my misunderstandings on these maters over the last year, that i didn’t understood at that time. i hope i didn’t forget about something…
oh! i do have a question, yes. Is there a good way to make xbps-install to prefer things in my local repo that maybe has older versions of stuff then the remote once?