makepkg package; installer: specify additional packages

This commit is contained in:
Daniel Langbein 2021-05-05 12:11:09 +02:00
parent 077cb6a3e6
commit 1e84c4c30f
6 changed files with 55 additions and 5 deletions

View File

@ -2,7 +2,7 @@
_pkgname=installer
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.4
pkgver=0.0.5
pkgrel=1
pkgdesc="Bash script to install Arch Linux"
arch=('any')

View File

@ -136,7 +136,7 @@ function run_pacstrap() {
# BIOS_TYPE
echo "Running pacstrap ..."
PKGS=()
PKGS=("${ADDITIONAL_PKGS[@]}")
case "${BIOS_TYPE}" in
uefi)

View File

@ -28,6 +28,6 @@ BIOS_TYPE=uefi
LEAVE_MOUNTED=1
PACSTRAP_INTERACTIVE=1
# TODO: additional pacman packages, e.g.
# ADD_PKGS=('de-p1st-kernel-default' 'de-p1st-ucode-amd')
# Additional pacman packages, e.g. to specify the preferred providers and avoid questions during pacstrap
ADDITIONAL_PKGS=('initramfs' 'de-p1st-kernel-lts' 'de-p1st-ucode-placeholder')
# TODO: add initramfs to depends of base-efi?

View File

@ -0,0 +1,15 @@
## arg 1: the new package version
post_install() {
holo apply
}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
holo apply
}
## arg 1: the old package version
post_remove() {
holo apply
}

View File

@ -0,0 +1,30 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=makepkg
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="Personalized makepkg.conf"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
groups=()
depends=('pacman' 'holo') # /etc/makepkg.conf belongs to pacman
makedepends=('git')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install='.install'
changelog=
source=("git+${url}.git")
noextract=()
sha256sums=('SKIP')
package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0544 makepkg.conf.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/makepkg.conf.holoscript
}

View File

@ -0,0 +1,5 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
sed 's|^#PACKAGER=.*$|PACKAGER="Daniel Langbein <daniel@systemli.org>"|'