# Maintainer (arch): David Runge <dvzrv@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Contributor: Gerardo Exequiel Pozzi <djgera@archlinux.org>
# Maintainer: David P. <megver83@parabola.nu>

pkgname=parabolaiso
pkgver=65
pkgrel=1
pkgdesc="Tools for creating Parabola GNU/Linux-libre live and install iso images"
arch=(any)
license=(GPL3)
url="https://git.parabola.nu/parabolaiso.git/"
depends=(arch-install-scripts bash dosfstools e2fsprogs erofs-utils grub
libarchive libisoburn mtools squashfs-tools)
makedepends=(git)
checkdepends=(shellcheck)
optdepends=(
  'edk2-ovmf: for emulating UEFI with run_parabolaiso'
  'openssl: for codesigning support when building netboot artifacts'
  'qemu-desktop: for run_parabolaiso'
  'qemu-user-static: for armv7h support when building in bootstrap mode from x86'
)
source=(git+https://git.parabola.nu/packages/parabolaiso.git#tag=v${pkgver}?signed)
sha256sums=('SKIP')
validpgpkeys=(6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78) # David P. <megver83@parabola.nu>

provides=("archiso=$pkgver")
conflicts=('archiso')
replaces=(${conflicts[@]})

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

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