summaryrefslogtreecommitdiffstats
path: root/linhes/calamares
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2022-11-11 21:15:52 (GMT)
committerBritney Fransen <brfransen@gmail.com>2022-11-11 21:15:52 (GMT)
commitd12df93a594b60d916d28aa979331ca56611536a (patch)
tree9fde6e0b1e687ac25bb9016a8765b57c3bcac608 /linhes/calamares
parent98920007f3377fc8adcf40791b97dff55a7af0d9 (diff)
downloadlinhes_pkgbuild-d12df93a594b60d916d28aa979331ca56611536a.zip
linhes_pkgbuild-d12df93a594b60d916d28aa979331ca56611536a.tar.gz
linhes_pkgbuild-d12df93a594b60d916d28aa979331ca56611536a.tar.bz2
calamares: initial inclusion; 3.2.61
Diffstat (limited to 'linhes/calamares')
-rw-r--r--linhes/calamares/PKGBUILD65
1 files changed, 65 insertions, 0 deletions
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 <knoppmyth@gmail.com>
+
+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')