pkgname=calamares pkgver=3.2.49.1 pkgrel=2 pkgdesc='Universal linux distro graphical installer' arch=('x86_64') license=('GPL3') url='https://calamares.io/' depends=('binutils' 'fakeroot' 'qt5-tools' 'kpmcore' 'qt5-location' 'icu' 'qt5-declarative' 'qt5-translations' 'qt5-xmlpatterns' 'kiconthemes' 'kservice' 'kio' 'kparts' 'flex' 'appstream-qt' 'squashfs-tools' 'fish' 'libpwquality' 'qt5-webengine' 'python-qtpy' 'python-qt.py' 'python3') makedepends=('gcc' 'boost' 'patch' 'yaml-cpp' 'ack' 'cmake' 'autoconf' 'automake' 'bison' 'git' 'libtool' 'm4' 'make' 'extra-cmake-modules' 'python-pip') source=("https://github.com/calamares/calamares/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz") sha256sums=('86bdceb90eb81d42596b780ccd99385002e2b8d45d8fae836156d37b5122d020') prepare() { cd $pkgname-$pkgver # apply patch from the source array (should be a pacman feature) local filename for filename in "${source[@]}"; do if [[ "$filename" =~ \.patch$ ]]; then echo "Applying patch ${filename##*/}" patch -p1 -N -i "$srcdir/${filename##*/}" fi done # : PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps pylint } build() { cd $pkgname-$pkgver mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DWITH_PYTHONQT=ON -DAppStreamQt_DIR=... .. } package() { cd $pkgname-$pkgver/build make DESTDIR="$pkgdir/" install rm -rf "$pkgdir/etc/calamares/*" }