# Maintainer: bill-auger pkgname=calamares pkgver=3.1.9 pkgrel='parabola1.1' pkgdesc='Distribution-independent installer framework - Parabola edition' arch=('i686' 'x86_64') license=('GPL') url="https://calamares.io/" _latest_version() { pacman -Si $1 | grep Version | cut -d ':' -f 2 | sed 's/\s//g' ; } _build_couplings=("boost=$(_latest_version 'boost')") _runtime_couplings=("boost-libs=$(_latest_version 'boost')" "kpmcore=$(_latest_version 'kpmcore')") makedepends=(${_build_couplings[@]} 'extra-cmake-modules' 'git' 'qt5-tools') depends=(${_runtime_couplings[@]} 'dmidecode' 'gptfdisk' 'hwinfo' 'kconfig' 'kcoreaddons' 'ki18n' 'kparts' 'os-prober' 'polkit-qt5' 'python' 'squashfs-tools' 'solid' 'qt5ct' 'qt5-styleplugins' 'qt5-svg' 'yaml-cpp') _git_tag="${pkgver}-${pkgrel%%.*}" source=("https://notabug.org/bill-auger/calamares/archive/v${_git_tag}.tar.gz") sha256sums=('4ce0da2894a7f474c10af65d4c32fd595640bf2307cddaffd0f6636a717f4b65') build() { mkdir -p ${srcdir}/calamares/build cd ${srcdir}/calamares/build cmake -DCMAKE_BUILD_TYPE=Debug \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DSKIP_MODULES="dracut dracutlukscfg dummycpp dummyprocess dummypython \ dummypythonqt initramfs initramfscfg interactiveterminal \ license plymouthcfg removeuser tracking webview" .. } package() { cd ${srcdir}/calamares/build make DESTDIR="$pkgdir" install }