fixed pre formated code/commands and added link to scripts.md page

This commit is contained in:
joborun linux 2022-03-13 20:34:33 +00:00
parent fa746c8b6b
commit 4de5bc2fcc

View file

@ -3,14 +3,15 @@ You will notice that joborun has an extra directory on its root / named /src
This is where source code goes and the repository should be 0777 so user make can write into it.
If it doesn't already exist as a user create pkg "% mkdir -p /src/pkg
If it doesn't already exist as a user create pkg
<pre>"% mkdir -p /src/pkg</pre>
<pre>
cd /src/pkg
git clone https://git.disroot.org/joborun-pkg/jobcore
git clone https://git.disroot.org/joborun-pkg/jobextra
</pre>
All of the source for joborun is in those repositories.
@ -19,16 +20,17 @@ Shift into the name of the pkg you want to build.
You will notice various files, as usually the original PKGBUILD that "inspired" our PKGBUILD, if it came from arch it should be noted as PKGBUILD-arch and then PKGBUILD is our own version.
% cat note
<pre>% cat note</pre>
if there is a note file there, it may have important information to consider before you build.
deps: Is a file listing all the additional dependencies needed to build the package "on top" of the 'jobbot' minimal chroot which must always be checked before a package is built.
(pacman -Qsq >/tmp/Qsq
diff -Nuar /src/Qsq /tmp/Qsq )
<pre>
pacman -Qsq >/tmp/Qsq
diff -Nuar /src/Qsq /tmp/Qsq
</pre>
If there is a difference of additionally installed packages it should
show in the + list.
@ -36,7 +38,7 @@ deps: Is a file listing all the additional dependencies needed to build the pac
To install additional dependencies do:
% sudo pacman -S $(cat deps)
<pre>% sudo pacman -S $(cat deps)</pre>
or make a shortcut such as depS = sudo pacman -S $(cat deps)
@ -45,7 +47,7 @@ key: if the source is signed, this is the GnuPgp key you need to import
Simply: sh key
To make the package run /usr/local/bin/mkpkg (which is a modified way of running makepkg without risking of overexerting your machine)
To make the package run [[/usr/local/bin/mkpkg|scripts.md]] (which is a modified way of running makepkg without risking of overexerting your machine)
The package should be produced: as pkgname-pkgver-x86_64.pkg.tar.xz
@ -60,31 +62,26 @@ clean: Simply run sh clean and the directory will be left as it was when you en
deps: Once again you should remove additional building dependencies when you are done by simply:
% sudo pacman -Rnsu $(cat deps)
<pre>% sudo pacman -Rnsu $(cat deps)</pre>
or make a shortcut such as depR = sudo pacman -Rnsu $(cat deps)
Now repeat this for all the packages in the repo.
Summary
<pre>
cd pkgname
sh key
depS
mkpkg
sudo mv pkgname*.pkg.tar.xz /var/cache/job..../
sh clean
depR
</pre>
If you want a list of all the pkg names inside each repository:
% pacman -Sl jobcore >/stc/pkg/jobcore.list
<pre>% pacman -Sl jobcore >/stc/pkg/jobcore.list</pre>
You can take the above sequence of commands (not shortcuts the complete commands) use a for pkgname in /stc/pkg/jobcore.list do ....
... and go away for the weekend, if all goes well the entire repository will be full with your own built packages.