# Maintainer: Developer <dev@tuxcore.org>

pkgname=calamares
pkgver=%version%
pkgrel=%release%
pkgdesc='Distribution-independent installer framework'
arch=('i686' 'x86_64')
license=(GPL)
url="https://github.com/calamares/calamares/"
license=('LGPL')
makedepends=('git')
depends=('rsync' 'kwidgetsaddons' 'kconfig' 'kcoreaddons' 'kiconthemes' 'ki18n' 'kio' 'solid' 'yaml-cpp' 'kpmcore' 'mkinitcpio-openswap'
         'boost-libs' 'ckbcomp' 'hwinfo' 'qt5-svg' 'polkit-qt6' 'gtk-update-icon-cache' 'qt6-declarative' 'squashfs-tools' 'libpwquality' 'efibootmgr' 'icu' 'cryptsetup' 'doxygen' 'gptfdisk' 'kcrash' 'kparts' 'kservice') 
# backup=('usr/share/calamares/modules/bootloader.conf'
#         'usr/share/calamares/modules/displaymanager.conf'
#         'usr/share/calamares/modules/initcpio.conf'
#         'usr/share/calamares/modules/unpackfs.conf')

source=($pkgname::git+https://git.tuxcore.org/developer/calamares)

sha256sums=('SKIP')

package() {

  mkdir -p "$pkgdir"/usr
  mkdir -p "$pkgdir"/etc
    # Install
  cp -R $srcdir/calamares/*/ "$pkgdir"/
}
