mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
makepkg package; installer: specify additional packages
This commit is contained in:
parent
077cb6a3e6
commit
1e84c4c30f
@ -2,7 +2,7 @@
|
|||||||
_pkgname=installer
|
_pkgname=installer
|
||||||
_reponame=arch
|
_reponame=arch
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.0.4
|
pkgver=0.0.5
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Bash script to install Arch Linux"
|
pkgdesc="Bash script to install Arch Linux"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -136,7 +136,7 @@ function run_pacstrap() {
|
|||||||
# BIOS_TYPE
|
# BIOS_TYPE
|
||||||
|
|
||||||
echo "Running pacstrap ..."
|
echo "Running pacstrap ..."
|
||||||
PKGS=()
|
PKGS=("${ADDITIONAL_PKGS[@]}")
|
||||||
|
|
||||||
case "${BIOS_TYPE}" in
|
case "${BIOS_TYPE}" in
|
||||||
uefi)
|
uefi)
|
||||||
|
@ -28,6 +28,6 @@ BIOS_TYPE=uefi
|
|||||||
LEAVE_MOUNTED=1
|
LEAVE_MOUNTED=1
|
||||||
|
|
||||||
PACSTRAP_INTERACTIVE=1
|
PACSTRAP_INTERACTIVE=1
|
||||||
|
# Additional pacman packages, e.g. to specify the preferred providers and avoid questions during pacstrap
|
||||||
# TODO: additional pacman packages, e.g.
|
ADDITIONAL_PKGS=('initramfs' 'de-p1st-kernel-lts' 'de-p1st-ucode-placeholder')
|
||||||
# ADD_PKGS=('de-p1st-kernel-default' 'de-p1st-ucode-amd')
|
# TODO: add initramfs to depends of base-efi?
|
15
pkg/de-p1st-makepkg/.install
Normal file
15
pkg/de-p1st-makepkg/.install
Normal 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
|
||||||
|
}
|
30
pkg/de-p1st-makepkg/PKGBUILD
Normal file
30
pkg/de-p1st-makepkg/PKGBUILD
Normal 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
|
||||||
|
}
|
5
pkg/de-p1st-makepkg/makepkg.conf.holoscript
Normal file
5
pkg/de-p1st-makepkg/makepkg.conf.holoscript
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# stdin: default config
|
||||||
|
# stdout: modified config
|
||||||
|
|
||||||
|
sed 's|^#PACKAGER=.*$|PACKAGER="Daniel Langbein <daniel@systemli.org>"|'
|
Loading…
Reference in New Issue
Block a user