diff --git a/packages/calamares/PKGBUILD b/packages/calamares/PKGBUILD new file mode 100644 index 00000000..ad197243 --- /dev/null +++ b/packages/calamares/PKGBUILD @@ -0,0 +1,39 @@ + + +pkgname=calamares +pkgver=3.2.49.1 +pkgrel=1 +pkgdesc='Universal linux distro graphical installer' +arch=('x86_64') +license=('GPL3') +url='https://calamares.io/' +depends=('binutils' 'fakeroot' 'gcc' 'boost' 'patch' 'qt5-tools' 'yaml-cpp' 'ack' 'kpmcore' 'qt5-location' 'icu' 'qt5-declarative' 'qt5-translations' 'qt5-xmlpatterns' 'kiconthemes' 'kservice' 'kio' 'kparts' 'cmake' 'autoconf' 'automake' 'bison' 'flex' 'git' 'libtool' 'm4' 'make' 'extra-cmake-modules' 'appstream-qt' 'squashfs-tools' 'fish' 'libpwquality' 'python3' 'python-qt.py' 'python-qtpy' 'qt5-webengine' '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 + rf "$pkgdir/etc/calamares/*" +} diff --git a/packages/calamares/built.conf b/packages/calamares/built.conf deleted file mode 100644 index 77140d06..00000000 --- a/packages/calamares/built.conf +++ /dev/null @@ -1,2 +0,0 @@ -AUR_NAME="calamares" -AUR_UPDATED="1677435736"