add PKGBUILD prototype with subpackages; fix de-p1st-grub

This commit is contained in:
Daniel Langbein 2022-07-18 20:23:12 +02:00
parent 09ba6726d1
commit 0eff5d875f
11 changed files with 54 additions and 33 deletions

View File

@ -3,28 +3,28 @@ _pkgname=base
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.2.1 pkgver=0.2.1
pkgrel=1 pkgrel=2
pkgdesc="base meta package for headless Arch installation on EFI system" pkgdesc="Base meta package for headless Arch Linux installation on EFI system"
arch=('any') arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}" url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT') license=('MIT')
depends=() depends=()
# Kernel + Headers # Kernel and headers
depends=('de-p1st-kernel') depends=('de-p1st-kernel')
# lz4 enabled mkinitcpio # lz4 enabled mkinitcpio
depends+=('de-p1st-mkinitcpio') depends+=('de-p1st-mkinitcpio')
# basic stuff # Basic stuff
depends+=('base' 'base-devel-meta' 'linux-firmware' 'man-db' 'man-pages' 'de-p1st-nano') depends+=('base' 'base-devel-meta' 'linux-firmware' 'man-db' 'man-pages' 'de-p1st-nano')
# CPU vendor specific microcode # CPU vendor specific microcode
depends+=('de-p1st-ucode') depends+=('de-p1st-ucode')
# filesystems: luks, btrfs, ext4, f2fs # Filesystems: luks, btrfs, ext4, f2fs
depends+=('lvm2' 'btrfs-progs' 'e2fsprogs' 'f2fs-tools') depends+=('lvm2' 'btrfs-progs' 'e2fsprogs' 'f2fs-tools')
# filesystems: exfat support # Filesystems: exfat support
depends+=('fuse-exfat' 'exfat-utils') depends+=('fuse-exfat' 'exfat-utils')
# filesystems: ntfs write support # Filesystems: ntfs write support
depends+=('ntfs-3g') depends+=('ntfs-3g')
# bootmanager # Bootmanager
depends+=('de-p1st-grub' 'efibootmgr') depends+=('de-p1st-grub' 'efibootmgr')
# systemd with time synchronization and journal size limit # systemd with time synchronization and journal size limit
depends+=('de-p1st-systemd') depends+=('de-p1st-systemd')
@ -36,18 +36,17 @@ depends+=('de-p1st-makepkg')
depends+=('de-p1st-sudo') depends+=('de-p1st-sudo')
# shell # shell
depends+=('zsh' 'zsh-completions' 'grml-zsh-config') depends+=('zsh' 'zsh-completions' 'grml-zsh-config')
# virtual console keyboard config # Virtual console keyboard config
depends+=('de-p1st-keyboard') depends+=('de-p1st-keyboard')
# locale and timezone # Locale and timezone
depends+=('de-p1st-locale') depends+=('de-p1st-locale')
# networking # Networking
depends+=('de-p1st-networkmanager' 'de-p1st-dns') depends+=('de-p1st-networkmanager' 'de-p1st-dns')
# gnupg # GnuPG
depends+=('de-p1st-gnupg') depends+=('de-p1st-gnupg')
# pam configuration # PAM configuration
depends+=('de-p1st-pam') depends+=('de-p1st-pam')
# Taskmanager
# task manager
depends+=('de-p1st-htop') depends+=('de-p1st-htop')

View File

@ -3,7 +3,7 @@ _pkgname=grub
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.5 pkgver=0.0.5
pkgrel=1 pkgrel=2
pkgdesc="grub with configuration" pkgdesc="grub with configuration"
arch=('any') arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}" url="https://codeberg.org/privacy1st/${_reponame}"

View File

@ -1,5 +1,7 @@
# grub # grub
TODO: `grub-mkconfig -o /boot/grub/grub.cfg`
## efi setup ## efi setup
See [/etc/grub.d/40_efi_setup](40_efi_setup) See [/etc/grub.d/40_efi_setup](40_efi_setup)

View File

@ -6,6 +6,6 @@ set -e
# 1) and 2) remember last selected entry; 3) disable submenu # 1) and 2) remember last selected entry; 3) disable submenu
sed ' sed '
s|^GRUB_DEFAULT=0$|GRUB_DEFAULT=saved|; s|^GRUB_DEFAULT=0$|GRUB_DEFAULT=saved|;
s|^#GRUB_SAVEDEFAULT="true"$|#GRUB_SAVEDEFAULT="true"|; s|^#GRUB_SAVEDEFAULT=true$|GRUB_SAVEDEFAULT=true|;
s|^#GRUB_DISABLE_SUBMENU=y$|GRUB_DISABLE_SUBMENU=y|; s|^#GRUB_DISABLE_SUBMENU=y$|GRUB_DISABLE_SUBMENU=y|;
' '

View File

@ -1,8 +1,5 @@
# locale # locale
**Note**: One may need to delete `/etc/locale.conf`
and `/etc/localtime` before installing this pkg!
## locale.conf ## locale.conf
* Archwiki: [Locale](https://wiki.archlinux.org/index.php/Locale) * Archwiki: [Locale](https://wiki.archlinux.org/index.php/Locale)

View File

@ -1,6 +1,6 @@
# redsihft # redsihft
``` ```shell
sudo pacman -S --needed redshift sudo pacman -S --needed redshift
``` ```
@ -19,7 +19,7 @@ Config file: Linux/macOS: `~/.config/redshift/redshift.conf`
or `${XDG_CONFIG_HOME}/redshift/redshift.conf` (if `XDG_CONFIG_HOME` or `${XDG_CONFIG_HOME}/redshift/redshift.conf` (if `XDG_CONFIG_HOME`
is defined). is defined).
``` ```shell
mkdir -p ~/.config/redshift mkdir -p ~/.config/redshift
cat << 'EOF' > ~/.config/redshift/redshift.conf cat << 'EOF' > ~/.config/redshift/redshift.conf

View File

@ -1,4 +1,4 @@
# Arch repository manager # Arch Linux repository manager
Special thanks to nachoparker for his article: Special thanks to nachoparker for his article:
@ -13,7 +13,7 @@ Adjust [/etc/de-p1st-repo/arch-repo.conf](arch-repo.cfg) according to your needs
Run a webserver on the server to serve static content: Run a webserver on the server to serve static content:
* https://hub.docker.com/_/nginx/ -> Hosting some simple static content * [https://hub.docker.com/_/nginx/]() -> Hosting some simple static content
* `sudo docker run --name arch-repo -v /mnt/data/live/arch-repo:/usr/share/nginx/html:ro -d nginx` * `sudo docker run --name arch-repo -v /mnt/data/live/arch-repo:/usr/share/nginx/html:ro -d nginx`
Add the newly created mirror to your `/etc/pacman.conf`: Add the newly created mirror to your `/etc/pacman.conf`:
@ -37,10 +37,10 @@ arch-repo-vercmp
Then build those packages locally and push changes to remote repository Then build those packages locally and push changes to remote repository
```shell ```shell
# build on local machine in clean chroot or with AUR helper, e.g. # Build on local machine in clean chroot (or with an AUR helper), e.g.
aur sync -c SOME_AUR_PACKAGE makepkg -fCcsr
# push new packages to remote repository # Push new packages to remote repository
arch-repo-push-new arch-repo-push-new
``` ```

View File

@ -1,4 +1,4 @@
# sddm themes # SDDM themes
* https://www.opendesktop.org/browse/cat/101/page/2/ord/rating/ * https://www.opendesktop.org/browse/cat/101/page/2/ord/rating/
* https://aur.archlinux.org/packages/?O=0&SeB=nd&K=sddm+theme&outdated=&SB=p&SO=d&PP=50&do_Search=Go * https://aur.archlinux.org/packages/?O=0&SeB=nd&K=sddm+theme&outdated=&SB=p&SO=d&PP=50&do_Search=Go

View File

@ -11,7 +11,7 @@ If using XFCE4 or Gnome this is the default theme. No action required.
## qt5 ## qt5
```shell ```shell
aur sync -c adwaita-qt sudo pacman -S --needed adwaita-qt5
``` ```
Enable via env variable. Enable via env variable.

View File

@ -79,7 +79,7 @@ depends+=(python-nautilus) # e.g. Nextcloud integration
depends+=(nautilus-terminal) # open/close terminal in current folder with `F4` depends+=(nautilus-terminal) # open/close terminal in current folder with `F4`
depends+=(libnotify cmark-gfm de-p1st-image-width-limit wkhtmltopdf) # md-to-pdf script depends on these packages depends+=(libnotify cmark-gfm de-p1st-image-width-limit wkhtmltopdf) # md-to-pdf script depends on these packages
# compression/archiving # Compression/Archiving
# -> https://docs.xfce.org/xfce/thunar/archive#supported_archive_managers # -> https://docs.xfce.org/xfce/thunar/archive#supported_archive_managers
# #
# Option1: thunar and xarchiver # Option1: thunar and xarchiver
@ -94,7 +94,7 @@ depends+=(file-roller)
# ============== audio ============== # ============== audio ==============
# pulseaudio - base # pulseaudio - base
depends+=('pulseaudio' 'pulseaudio-alsa' 'pavucontrol') depends+=('pulseaudio' 'pulseaudio-alsa' 'pavucontrol')
# pulseaudio - xfce4 # pulseaudio - Xfce4
depends+=('xfce4-pulseaudio-plugin') depends+=('xfce4-pulseaudio-plugin')
# sound theme # sound theme
depends+=('libcanberra' 'libcanberra-pulse') depends+=('libcanberra' 'libcanberra-pulse')
@ -123,8 +123,8 @@ optdepends=()
optdepends+=('seahorse: Manage the contents of GNOME Keyring; manage GPG keys') optdepends+=('seahorse: Manage the contents of GNOME Keyring; manage GPG keys')
optdepends+=('seahorse-nautilus: PGP encryption and signing for nautilus') optdepends+=('seahorse-nautilus: PGP encryption and signing for nautilus')
# `Ctrl` + `Ctrl` shortcut to toggle between layouts: # `win` + `space` shortcut to toggle between layouts:
# Keyboard > Layout > Change layout option > Both Ctrl together # Keyboard > Layout > Change layout option > `win` + `space`
optdepends+=('xfce4-xkb-plugin: Panel plugin to toggle between keyboard layouts') optdepends+=('xfce4-xkb-plugin: Panel plugin to toggle between keyboard layouts')
build() { build() {

View File

@ -0,0 +1,23 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
pkgbase="de-p1st-subpackage-test"
pkgname=("${pkgbase}1" "${pkgbase}2")
pkgver=0.0.1
pkgrel=1
pkgdesc="for testing purposes only"
arch=('any')
license=('MIT')
depends=('git')
package_de-p1st-subpackage-test1 () {
pkgdesc="for testing purposes only (1)"
depends=("nano")
# pkgver can not be set inside a package function
# pkgrel can not be set inside a package function
}
package_de-p1st-subpackage-test2 () {
pkgdesc="for testing purposes only (2)"
depends=("vim")
# pkgver can not be set inside a package function
# pkgrel can not be set inside a package function
}