2023-10-20 11:48:45 +03:30
|
|
|
|
2022-08-30 19:48:25 +04:30
|
|
|
|
|
|
|
pkgname=calamares
|
2024-06-24 11:30:27 +03:30
|
|
|
pkgver=3.3.7
|
|
|
|
pkgrel=1
|
2022-08-30 19:48:25 +04:30
|
|
|
pkgdesc='Distribution-independent installer framework'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=(GPL)
|
|
|
|
url="https://github.com/calamares/calamares/releases/download"
|
|
|
|
license=('LGPL')
|
2024-04-26 20:03:08 +03:30
|
|
|
depends=( 'qt6-svg' 'qt6-webengine' 'yaml-cpp' 'networkmanager' 'upower' 'kcoreaddons' 'kconfig' 'ki18n' 'kservice' \
|
2024-06-19 11:22:50 +03:30
|
|
|
'kwidgetsaddons' 'kpmcore' 'squashfs-tools' 'rsync' 'boost' 'pybind11' 'cryptsetup' 'doxygen' 'dmidecode' \
|
2024-04-26 20:03:08 +03:30
|
|
|
'gptfdisk' 'hwinfo' 'kparts' 'polkit-qt6' 'python' 'solid' 'qt6-tools' 'libpwquality' 'ckbcomp' 'qt6-declarative' )
|
|
|
|
makedepends=('git' 'cmake' 'extra-cmake-modules' 'python-jsonschema' 'python-pyaml' 'python-unidecode' 'gawk')
|
2022-08-30 19:48:25 +04:30
|
|
|
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-$pkgver-$pkgrel.tar.gz::$url/v$pkgver/calamares-$pkgver.tar.gz")
|
2024-06-24 11:30:27 +03:30
|
|
|
sha256sums=('56589968f2447a2e79da67079602dabc77504bc0f8233b5e655a1a4d57007a34')
|
2022-08-30 19:48:25 +04:30
|
|
|
|
|
|
|
prepare() {
|
2024-04-26 20:03:08 +03:30
|
|
|
cd ${srcdir}/calamares-${pkgver}
|
|
|
|
# change version
|
|
|
|
_ver="$(cat CMakeLists.txt | grep -m3 -e " VERSION" | grep -o "[[:digit:]]*" | xargs | sed s'/ /./g')"
|
|
|
|
_ver="$pkgver"
|
|
|
|
printf 'Version: %s-%s\n' "${_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
|
2022-08-30 19:48:25 +04:30
|
|
|
|
|
|
|
# modify desktop file
|
|
|
|
sed -i -e 's#Exec=sh.*#Exec=sh -c "/etc/calamares/launch.sh"#g' "$srcdir/${pkgname}-${pkgver}/calamares.desktop"
|
2023-10-20 11:48:17 +03:30
|
|
|
sed -i -e 's#Name=.*#Name=Install Parch Linux#g' "$srcdir/${pkgname}-${pkgver}/calamares.desktop"
|
|
|
|
sed -i -e 's#GenericName=.*#GenericName=Parch Linux Installer#g' "$srcdir/${pkgname}-${pkgver}/calamares.desktop"
|
|
|
|
sed -i -e 's#Icon=.*#Icon=parchinstall#g' "$srcdir/${pkgname}-${pkgver}/calamares.desktop"
|
|
|
|
sed -i -e 's#Comment=.*#Comment=Parch Linux Installer#g' "$srcdir/${pkgname}-${pkgver}/calamares.desktop"
|
2022-08-30 19:48:25 +04:30
|
|
|
|
|
|
|
|
|
|
|
# patches here
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2024-04-26 20:03:08 +03:30
|
|
|
cd ${srcdir}/calamares-${pkgver}
|
|
|
|
|
|
|
|
_cpuCount=$(grep -c -w ^processor /proc/cpuinfo)
|
|
|
|
|
|
|
|
export CXXFLAGS+=" -fPIC"
|
|
|
|
|
|
|
|
cmake -S . -Bbuild \
|
|
|
|
-GNinja \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DWITH_APPSTREAM=OFF \
|
|
|
|
-DWITH_PYBIND11=OFF \
|
|
|
|
-DWITH_QT6=ON \
|
|
|
|
-DSKIP_MODULES="dracut dracutlukscfg \
|
|
|
|
dummycpp dummyprocess dummypython dummypythonqt \
|
2024-06-19 11:22:50 +03:30
|
|
|
license notesqml \
|
2024-04-26 20:03:08 +03:30
|
|
|
openrcdmcryptcfg fsresizer \
|
|
|
|
rawfs mkinitfs contextualprocess interactiveterminal \
|
|
|
|
plymouthcfg plasmalnf services-openrc \
|
|
|
|
tracking webview"
|
2022-08-30 19:48:25 +04:30
|
|
|
|
2024-04-26 20:03:08 +03:30
|
|
|
cmake --build build --parallel $_cpuCount
|
2022-08-30 19:48:25 +04:30
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${srcdir}/calamares-${pkgver}/build
|
2024-04-26 20:03:08 +03:30
|
|
|
DESTDIR="${pkgdir}" cmake --build . --target install
|
2022-08-30 19:48:25 +04:30
|
|
|
}
|