# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=mkinitcpio
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.12
pkgrel=1
pkgdesc="mkinitcpio configuration"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
depends=()
depends+=('mkinitcpio')
depends+=('holo' 'git' 'base') # holo depends on base (otherwise "holo apply" may fail on initial system installation) and git (git-diff)
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
}