# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=mkinitcpio
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.9
pkgrel=1
pkgdesc="mkinitcpio configuration"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
depends=('mkinitcpio' 'holo' 'git' 'base')  # without base "holo apply" may fail on initial system installation
makedepends=('git')
install='.install'
source=("git+${url}.git")
sha256sums=('SKIP')

package() {
  cd "${_reponame}/pkg/${pkgname}"

  # 11$pkgname as this shall be applied after de-p1st-gpu-amdgpu
  install -Dm0544 mkinitcpio.conf.holoscript "$pkgdir"/usr/share/holo/files/11"$pkgname"/etc/mkinitcpio.conf.holoscript
}
