From 717d2fa2e15e6e5c6bcb472023b8248d36d59c59 Mon Sep 17 00:00:00 2001 From: Joe Obo Run Date: Mon, 14 Mar 2022 03:12:48 +0000 Subject: [PATCH] add makepkg script --- scripts.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/scripts.md b/scripts.md index 3d2ae95..5f2d6e3 100644 --- a/scripts.md +++ b/scripts.md @@ -2,7 +2,7 @@ If you don't wish to [[install|https://git.disroot.org/joborun/web/src/branch/main/inst_from_image.md]] via downloading and exploding an tarball image, and follow the [[live net-installation|https://git.disroot.org/joborun/web/src/branch/main/install.md]] method you will miss on a few helper scripts that make guess-work easier. -### Install X + openbox + jwm ### +#### Install X + openbox + jwm #### The first script that many may be interested in is simply a file list needed on top of base to start X and openbox or jwm. Note here that you don't need a kernel or a fully booted system to run X, you can chroot from console from another system, and if mounting of system directories is equivalent to arch's arch-chroot, you can switch to user, go to the home directory and simply type xinit or startx. @@ -72,10 +72,23 @@ exec openbox-session then simply type xinit (or startx no difference). +#### mkpkg and makepkg script #### + +makepkg is the pacman subprogram for building a package from a template/recipe pacman defaults as PKGBUILD. PKGBUILD is a bash script because pacman was written to read bash commands to build a package. Someone should tell those fools who edit strict bash syntax and acuse predecesors of "extreme bashism", that this is what pacman was written with default, not a PKGBUILD editor's choice. Thankfully for those fools, bash has evolved in being more elastic and accepting more universal sh syntax and not enforce strictly its own, otherwise many arch/artix/obarun/manjaro/hyperbola/parabola pkgs wouldn't build! [[Mere linux|https://merelinux.org/]] is about the first distribution we have seen honoring this pacman quality and beginning their PKGBUILDs with a bash shebang. + + +sudo chmod +x /usr/local/bin/mkpkg + +
+#!/bin/sh
+time numactl --physcpubind=1,3,5,7 makepkg -f
+
+ +time: calculates the time interval from initiating the process till it ends, which is what the figures in "time" are in each pkg repository. + +numactl: is a program that lets you control on which processors to execute the program. In this example imagine an 8core/thread machine with every other processor being used, to minimize both heat and maintain high functionality on the rest of the system. The makepkg -f cleans up from previous run and starts building from 0. ### More scripts to follow: ### -
-