# Maintainer: Developer <dev@opalos.org>
pkgname=mkinitcpio-tuxiso
pkgver=%version%
pkgrel=%release%
pkgdesc="Initcpio scripts"
arch=(any)
url="https://git.tuxcore.org/developer/mkinitcpio-tuxiso"
license=(GPL-3.0-or-later)
depends=(
  bash
  device-mapper
  mkinitcpio
)
makedepends=(git)
checkdepends=(
  shellcheck
  shfmt
)
optdepends=(
  'curl: for PXE over HTTP'
  'gnupg: for PGP signature verification of rootfs over PXE'
  'mkinitcpio-nfs-utils: for PXE over NFS'
  'nbd: for PXE over NBD'
  'openssl: for CMS signature verification of rootfs over PXE'
  'pv: for status display during copy to RAM'
)
source=(git+$url)
sha512sums=('SKIP')
b2sums=('SKIP')

check() {
  make -k check -C $pkgname
}

package() {
  make DESTDIR="$pkgdir/" PREFIX=/usr install -C $pkgname
}
