summaryrefslogtreecommitdiffstats
path: root/linhes/calamares/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/calamares/PKGBUILD')
-rw-r--r--linhes/calamares/PKGBUILD110
1 files changed, 57 insertions, 53 deletions
diff --git a/linhes/calamares/PKGBUILD b/linhes/calamares/PKGBUILD
index c749ce5..eeb1b03 100644
--- a/linhes/calamares/PKGBUILD
+++ b/linhes/calamares/PKGBUILD
@@ -1,65 +1,69 @@
-# Maintainer: Cecil Watson <knoppmyth@gmail.com>
+# Maintainer:
+# Contributor: Rustmilian Rustmilian@proton.me
-pkgname=calamares
-pkgver=3.2.62
-_pkgver=3.2.62
+_pkgname="calamares"
+pkgname="$_pkgname"
+pkgver=3.4.0
pkgrel=1
-pkgdesc='Distribution-independent installer framework'
+pkgdesc="Distribution-independent installer framework"
+url="https://codeberg.org/Calamares/calamares"
+license=("GPL-3.0-or-later")
arch=('i686' 'x86_64')
-license=(GPL)
-url="https://github.com/calamares/calamares"
-license=('LGPL')
-depends=('kconfig' 'kcoreaddons' 'kiconthemes' 'ki18n' 'kio' 'solid' 'yaml-cpp' 'kpmcore>=4.1.0' 'mkinitcpio-openswap'
- 'boost-libs' 'ckbcomp' 'hwinfo' 'qt5-svg' 'polkit-qt5' 'gtk-update-icon-cache' 'plasma-framework'
- 'qt5-xmlpatterns' 'squashfs-tools' 'libpwquality' 'appstream-qt')
-makedepends=('extra-cmake-modules' 'qt5-tools' 'qt5-translations' 'git' 'boost' 'python-yaml'
- 'python-jsonschema')
-source=("https://github.com/calamares/calamares/releases/download/v$pkgver/calamares-$pkgver.tar.gz")
-
-#pkgver() {
-# cd ${srcdir}/calamares-${pkgver}
-# sed -i -e "s|\${CALAMARES_VERSION_MAJOR}.\${CALAMARES_VERSION_MINOR}.\${CALAMARES_VERSION_PATCH}|${_ver}-${pkgrel}|g" CMakeLists.txt
-# sed -i -e "s|CALAMARES_VERSION_RC 1|CALAMARES_VERSION_RC 0|g" CMakeLists.txt
-#}
-
-prepare() {
- cd ${srcdir}/calamares-${pkgver}
- sed -i -e 's/"Install configuration files" OFF/"Install configuration files" ON/' CMakeLists.txt
- sed -i -e 's|$pkgver|$_pkgver|g' CMakeLists.txt
- printf 'Version: %s-%s' "${_ver}" "${pkgrel}"
-
- sed -i -e "s|\${CALAMARES_VERSION_MAJOR}.\${CALAMARES_VERSION_MINOR}.\${CALAMARES_VERSION_PATCH}|${_ver}-${pkgrel}|g" CMakeLists.txt
- sed -i -e "s|CALAMARES_VERSION_RC 1|CALAMARES_VERSION_RC 0|g" CMakeLists.txt
-}
+depends=(
+ 'kcoreaddons'
+ 'kpmcore'
+ 'libpwquality'
+ 'qt6-declarative'
+ 'qt6-svg'
+ 'yaml-cpp'
+)
+makedepends=(
+ 'extra-cmake-modules'
+ 'ninja'
+ 'qt6-tools'
+ 'qt6-translations'
+)
+_pkgsrc="$_pkgname"
+_pkgext="tar.gz"
+source=("$_pkgname-$pkgver.$_pkgext"::"$url/archive/v$pkgver.$_pkgext")
+sha256sums=('45de0214f4a16095374e2ed3982032c34f0f2c2104987089152e4b928dd0548f')
build() {
- cd ${srcdir}/calamares-${pkgver}
+ local _skip_modules=(
+ dracut
+ dracutlukscfg
+ dummycpp
+ dummyprocess
+ dummypython
+ dummypythonqt
+ initramfs
+ initramfscfg
+ interactiveterminal
+ packagechooser
+ packagechooserq
+ services-openrc
+ )
- mkdir -p build
- cd build
- cmake .. \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib \
- -DWITH_PYTHONQT:BOOL=ON \
- -DBoost_NO_BOOST_CMAKE=ON \
- -DSKIP_MODULES="webview interactiveterminal initramfs \
- initramfscfg dracut dracutlukscfg \
- dummyprocess dummypython dummycpp \
- dummypythonqt services-openrc"
- make
+ local _cmake_options=(
+ -B build
+ -S "$_pkgsrc"
+ -G Ninja
+ -DCMAKE_BUILD_TYPE=Release
+ -DCMAKE_INSTALL_PREFIX='/usr'
+ -DCMAKE_INSTALL_LIBDIR='lib'
+ -DWITH_QT6=ON
+ -DINSTALL_CONFIG=ON
+ -DSKIP_MODULES="${_skip_modules[*]}"
+ -DBUILD_TESTING=OFF
+ -Wno-dev
+ )
+
+ cmake "${_cmake_options[@]}"
+ cmake --build build
}
package() {
- cd ${srcdir}/calamares-${pkgver}/build
- make DESTDIR="$pkgdir" install
-
- # rename services-systemd back to services
- mv "$pkgdir/usr/lib/calamares/modules/services-systemd" "$pkgdir/usr/lib/calamares/modules/services"
- mv "$pkgdir/usr/share/calamares/modules/services-systemd.conf" "$pkgdir/usr/share/calamares/modules/services.conf"
- sed -i -e 's/-systemd//' "$pkgdir/usr/lib/calamares/modules/services/module.desc"
- sed -i -e 's/-systemd//' "$pkgdir/usr/share/calamares/settings.conf"
+ DESTDIR="$pkgdir" cmake --install build
}
-sha256sums=('a0fbcec2a438693753fc174220356119ad7adb8a2b19c317518aa1cb025d6dd0')