This commit is contained in:
Daniel Langbein 2021-05-03 18:14:37 +02:00
parent ee2e6f4303
commit d7f8752bd7
4 changed files with 22 additions and 12 deletions

View File

@ -1,19 +1,24 @@
pre_install() {
mv /etc/locale.conf /etc/locale.conf.bkp
}
post_install() { post_install() {
holo apply --force file:/etc/locale.conf # holo apply --force file:/etc/locale.conf
holo apply --force file:/etc/locale.gen holo apply --force file:/etc/locale.gen
holo apply --force file:/etc/localtime # holo apply --force file:/etc/localtime
locale-gen locale-gen
} }
post_upgrade() { post_upgrade() {
holo apply --force file:/etc/locale.conf # holo apply --force file:/etc/locale.conf
holo apply --force file:/etc/locale.gen holo apply --force file:/etc/locale.gen
holo apply --force file:/etc/localtime # holo apply --force file:/etc/localtime
locale-gen locale-gen
} }
post_remove() { post_remove() {
holo apply holo apply
} mv /etc/locale.conf.bkp /etc/locale.conf
}

View File

@ -2,7 +2,7 @@
_pkgname=locale _pkgname=locale
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.5 pkgver=0.0.6
pkgrel=1 pkgrel=1
pkgdesc="locale and timezone" pkgdesc="locale and timezone"
arch=('any') arch=('any')
@ -29,8 +29,13 @@ package() {
# Note: The following three files are overwritten with "holo apply --force ..." # Note: The following three files are overwritten with "holo apply --force ..."
# See ".install" script # See ".install" script
install -Dm0644 locale.conf "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/locale.conf # (!)
# install -Dm0644 locale.conf "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/locale.conf
install -Dm0644 locale.conf "$pkgdir"/etc/locale.conf
install -Dm0644 locale.gen "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/locale.gen install -Dm0644 locale.gen "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/locale.gen
ln -sf /usr/share/zoneinfo/Europe/Berlin "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/localtime # (!)
# ln -sf /usr/share/zoneinfo/Europe/Berlin "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/localtime
ln -sf /usr/share/zoneinfo/Europe/Berlin "$pkgdir"/etc/localtime
} }

View File

@ -2,14 +2,14 @@
_pkgname=mkinitcpio _pkgname=mkinitcpio
_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="mkinitcpio configuration" pkgdesc="mkinitcpio configuration"
arch=('any') arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}" url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT') license=('MIT')
groups=() groups=()
depends=('mkinitcpio' 'holo') depends=('mkinitcpio' 'holo' 'base') # without base "holo apply" may fail on initial system installation
makedepends=('git') makedepends=('git')
optdepends=() optdepends=()
provides=() provides=()

View File

@ -2,14 +2,14 @@
_pkgname=pacman-mirrorlist _pkgname=pacman-mirrorlist
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.5 pkgver=0.0.6
pkgrel=2 pkgrel=2
pkgdesc="selected Arch Linux mirrors" pkgdesc="selected Arch Linux mirrors"
arch=('any') arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}" url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT') license=('MIT')
groups=() groups=()
depends=('pacman' 'holo') depends=('pacman' 'holo' 'base') # without base "holo apply" may fail on initial system installation
makedepends=('git') makedepends=('git')
optdepends=() optdepends=()
provides=() provides=()