add htop pkg; fix locale?

This commit is contained in:
Daniel Langbein 2021-05-13 15:44:02 +00:00
parent 58673a27ec
commit 9fae097bc9
10 changed files with 76 additions and 12 deletions

View File

@ -1,5 +1,6 @@
# https://github.com/ungoogled-software/ungoogled-chromium-archlinux/blob/master/.github/workflows/build/Dockerfile # Inspiration:
# https://github.com/WhyNotHugo/docker-makepkg/blob/main/Dockerfile # * https://github.com/ungoogled-software/ungoogled-chromium-archlinux/blob/master/.github/workflows/build/Dockerfile
# * https://github.com/WhyNotHugo/docker-makepkg/blob/main/Dockerfile
FROM archlinux:base-devel FROM archlinux:base-devel

View File

@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.

View File

@ -84,3 +84,6 @@ $ sudo pacman -S de-p1st-test
Enter a number (default=1): Enter a number (default=1):
``` ```
**TODO**: How does Pacman pick the default option? Are packages simply
ordered alphabetically?

View File

@ -50,8 +50,11 @@ function main() {
# build-pkg "${PKG}" || return $? # build-pkg "${PKG}" || return $?
# done # done
# Stage0: Take special care of package de-p1st-locale
# TODO
# Stage1 # Stage1
build-and-push xorg-meta de-p1st-systemd de-p1st-sudo de-p1st-screen de-p1st-pacman de-p1st-pacman-mirrorlist de-p1st-networkmanager de-p1st-ucode-placeholder de-p1st-ucode-intel de-p1st-ucode-amd de-p1st-nano de-p1st-mkinitcpio de-p1st-makepkg de-p1st-grub de-p1st-font de-p1st-keyboard-de de-p1st-keyboard-x11-de de-p1st-gnupg de-p1st-redshift de-p1st-theme de-p1st-gpu-generic de-p1st-gpu-amdgpu de-p1st-installer de-p1st-repo || return $? build-and-push xorg-meta de-p1st-systemd de-p1st-sudo de-p1st-screen de-p1st-htop de-p1st-pacman de-p1st-pacman-mirrorlist de-p1st-networkmanager de-p1st-ucode-placeholder de-p1st-ucode-intel de-p1st-ucode-amd de-p1st-nano de-p1st-mkinitcpio de-p1st-makepkg de-p1st-grub de-p1st-font de-p1st-keyboard-de de-p1st-keyboard-x11-de de-p1st-gnupg de-p1st-redshift de-p1st-theme de-p1st-gpu-generic de-p1st-gpu-amdgpu de-p1st-installer de-p1st-repo || return $?
# Stage2 # Stage2
build-and-push de-p1st-smartcard de-p1st-kernel-default de-p1st-kernel-lts de-p1st-dns || return $? build-and-push de-p1st-smartcard de-p1st-kernel-default de-p1st-kernel-lts de-p1st-dns || return $?
# Stage3 # Stage3

View File

@ -74,10 +74,7 @@ function main() {
build-pkg "$PKG" || return $? build-pkg "$PKG" || return $?
done done
else else
# No arguments given build-pkg xorg-meta de-p1st-locale de-p1st-systemd de-p1st-sudo de-p1st-screen de-p1st-htop de-p1st-pacman de-p1st-pacman-mirrorlist de-p1st-networkmanager de-p1st-ucode-placeholder de-p1st-ucode-intel de-p1st-ucode-amd de-p1st-nano de-p1st-mkinitcpio de-p1st-makepkg de-p1st-grub de-p1st-font de-p1st-keyboard-de de-p1st-keyboard-x11-de de-p1st-gnupg de-p1st-redshift de-p1st-theme de-p1st-gpu-generic de-p1st-gpu-amdgpu de-p1st-installer de-p1st-repo || return $?
# -> build in specified order EXCEPT de-p1st-locale
build-pkg xorg-meta de-p1st-systemd de-p1st-sudo de-p1st-screen de-p1st-pacman de-p1st-pacman-mirrorlist de-p1st-networkmanager de-p1st-ucode-placeholder de-p1st-ucode-intel de-p1st-ucode-amd de-p1st-nano de-p1st-mkinitcpio de-p1st-makepkg de-p1st-grub de-p1st-font de-p1st-keyboard-de de-p1st-keyboard-x11-de de-p1st-gnupg de-p1st-redshift de-p1st-theme de-p1st-gpu-generic de-p1st-gpu-amdgpu de-p1st-installer de-p1st-repo || return $?
push-pkg || return $? push-pkg || return $?
build-pkg de-p1st-smartcard de-p1st-kernel-default de-p1st-kernel-lts de-p1st-dns || return $? build-pkg de-p1st-smartcard de-p1st-kernel-default de-p1st-kernel-lts de-p1st-dns || return $?

View File

@ -43,7 +43,7 @@ depends+=('de-p1st-networkmanager' 'de-p1st-dns')
depends+=('de-p1st-gnupg') depends+=('de-p1st-gnupg')
# task manager # task manager
depends+=('htop') depends+=('de-p1st-htop')
# fonts # fonts
depends+=('de-p1st-font') depends+=('de-p1st-font')

20
pkg/de-p1st-htop/PKGBUILD Normal file
View File

@ -0,0 +1,20 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=nano
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="htop with configuration"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
depends=('htop')
makedepends=('git')
source=("git+${url}.git")
sha256sums=('SKIP')
package() {
cd "${_reponame}/pkg/${pkgname}"
install -m0644 htoprc "$pkgdir"/etc/htoprc
}

39
pkg/de-p1st-htop/htoprc Normal file
View File

@ -0,0 +1,39 @@
# When changing settings inside htop, the file ~/.config/htop/htoprc
# will be created and used in favour of this one.
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_direction=1
tree_sort_key=0
tree_sort_direction=1
hide_kernel_threads=1
hide_userland_threads=0
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=0
highlight_megabytes=1
highlight_threads=1
highlight_changes=0
highlight_changes_delay_secs=5
find_comm_in_cmdline=1
strip_exe_from_cmdline=1
show_merged_command=0
tree_view=0
tree_view_always_by_pid=0
header_margin=1
detailed_cpu_time=0
cpu_count_from_one=0
show_cpu_usage=1
show_cpu_frequency=1
show_cpu_temperature=0
degree_fahrenheit=0
update_process_names=0
account_guest_in_cpu_meter=0
color_scheme=0
enable_mouse=1
delay=15
left_meters=LeftCPUs2 Memory Swap DiskIO
left_meter_modes=1 1 1 2
right_meters=RightCPUs2 Tasks LoadAverage Uptime
right_meter_modes=1 2 2 2
hide_function_bar=0

View File

@ -2,14 +2,15 @@
_pkgname=locale _pkgname=locale
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.7 pkgver=0.0.8
pkgrel=2 pkgrel=1
pkgdesc="locale and timezone" pkgdesc="locale and timezone"
arch=('any') arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}" url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT') license=('MIT')
depends=('holo') depends=('holo')
makedepends=('git') makedepends=('git')
backup=('etc/locale.conf')
install='.install' install='.install'
source=("git+${url}.git") source=("git+${url}.git")
sha256sums=('SKIP') sha256sums=('SKIP')

View File

@ -15,7 +15,7 @@ optdepends=()
provides=() provides=()
conflicts=() conflicts=()
replaces=() replaces=()
backup=() backup=() # Use relative paths without leading slash
options=() options=()
install= install=
changelog= changelog=