mkinitcpio with lz4 compression; cleanup

This commit is contained in:
Daniel Langbein 2021-05-02 21:58:11 +02:00
parent 7f1243213b
commit 075d9fe653
13 changed files with 55 additions and 198 deletions

View File

@ -2,7 +2,7 @@
_pkgname=base-efi
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.1.2
pkgver=0.1.3
pkgrel=1
pkgdesc="base packages for headless Arch installation"
arch=('any')
@ -10,8 +10,10 @@ url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
groups=()
depends=('base' 'meta-group-base-devel' 'linux-firmware' 'man-db' 'man-pages' 'de-p1st-nano')
# lz4 enabled mkinitcpio
depends=('de-p1st-mkinitcpio')
# basic stuff
depends+=('base' 'meta-group-base-devel' 'linux-firmware' 'man-db' 'man-pages' 'de-p1st-nano')
# filesystems: luks, btrfs, ext4, f2fs
depends+=('lvm2' 'btrfs-progs' 'e2fsprogs' 'f2fs-tools')
# filesystems: exfat support

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=mkinitcpio
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="mkinitcpio with lz4 compression"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
groups=()
depends=('mkinitcpio' 'holo')
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 mkinitcpio.conf.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/mkinitcpio.conf.holoscript
}

View File

@ -0,0 +1,5 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
cat
echo 'COMPRESSION="lz4"'

View File

@ -1,34 +1,14 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
holo apply
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
holo apply
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
post_remove() {
holo apply

View File

@ -1,35 +1,10 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
systemctl preset-all
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
systemctl preset-all
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
# post_remove() {
# do something here
# }

View File

@ -1,34 +1,14 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
holo apply
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
holo apply
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
post_remove() {
holo apply

View File

@ -1,34 +1,14 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
holo apply
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
holo apply
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
post_remove() {
holo apply

View File

@ -1,24 +1,9 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
holo apply
systemctl preset-all
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
@ -26,11 +11,6 @@ post_upgrade() {
systemctl preset-all
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
post_remove() {
holo apply

View File

@ -1,35 +1,10 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
systemctl preset-all
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
systemctl preset-all
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
# post_remove() {
# do something here
# }

View File

@ -1,24 +1,9 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
holo apply
systemctl preset-all
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
@ -26,11 +11,6 @@ post_upgrade() {
systemctl preset-all
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
post_remove() {
holo apply

View File

@ -1,34 +1,14 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
holo apply
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
holo apply
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
post_remove() {
holo apply

View File

@ -1,35 +1,10 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
systemctl preset-all
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
systemctl preset-all
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
# post_remove() {
# do something here
# }