From d12df93a594b60d916d28aa979331ca56611536a Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 11 Nov 2022 16:15:52 -0500 Subject: calamares: initial inclusion; 3.2.61 --- linhes/calamares/PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 linhes/calamares/PKGBUILD diff --git a/linhes/calamares/PKGBUILD b/linhes/calamares/PKGBUILD new file mode 100644 index 0000000..8c39eb5 --- /dev/null +++ b/linhes/calamares/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: Cecil Watson + +pkgname=calamares +pkgver=3.2.61 +_pkgver=3.2.61 +pkgrel=1 +pkgdesc='Distribution-independent installer framework' +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 +} + + +build() { + cd ${srcdir}/calamares-${pkgver} + + 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 +} + +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" +} +sha256sums=('7591b9b60738bdba7b9de2b8da5462ab21006db06a006f0dd21ac5b832711dd2') -- cgit v0.12