Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD: calamares 3.12 #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions calamares/calamares-3.3.12/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#Calamares PKGBUILD for Arch Linux GUI

pkgname=calamares
pkgver=3.3.12
pkgrel=1
pkgdesc='Distribution-independent installer framework'
arch=('x86_64')
license=(GPL)
url="https://github.com/arch-linux-gui/"
license=('LGPL')
depends=('kconfig' 'kcoreaddons' 'kiconthemes' 'ki18n' 'kio' 'solid' 'yaml-cpp' 'kpmcore' 'mkinitcpio-openswap'
'ckbcomp' 'hwinfo' 'qt6-svg' 'polkit-qt6' 'gtk-update-icon-cache'
'squashfs-tools' 'libpwquality' 'pybind11' 'python')
#'boost-libs' 'pythonqt>=3.2') 'boost' #'plasma-framework5') #'qt5-xmlpatterns')
makedepends=('extra-cmake-modules' 'qt6-tools' 'qt6-translations' 'git' 'boost')
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}::"git+${url}/${pkgname}")
sha256sums=('SKIP')

prepare() {
mkdir calamares-${pkgver}
mv calamares/* calamares-${pkgver}
cd ${srcdir}/calamares-${pkgver}
sed -i -e 's/"Install configuration files" OFF/"Install configuration files" ON/' CMakeLists.txt
sed -i -e 's/# DEBUG_FILESYSTEMS/DEBUG_FILESYSTEMS/' "$srcdir/${pkgname}-${pkgver}/CMakeLists.txt"

# modify desktop file
sed -i -e 's#Exec=sh.*#Exec=sh -c "/etc/calamares/launch.sh"#g' "$srcdir/${pkgname}-${pkgver}/calamares.desktop"
sed -i -e 's#Name=.*#Name=Install Arch Linux#g' "$srcdir/${pkgname}-${pkgver}/calamares.desktop"
sed -i -e 's#GenericName=.*#GenericName=Arch Linux Installer#g' "$srcdir/${pkgname}-${pkgver}/calamares.desktop"
sed -i -e 's#Icon=.*#Icon=archlinux-logo#g' "$srcdir/${pkgname}-${pkgver}/calamares.desktop"
sed -i -e 's#Comment=.*#Comment=Arch Linux Installer#g' "$srcdir/${pkgname}-${pkgver}/calamares.desktop"


# patches here

# change version
_ver="$(cat CMakeLists.txt | grep -m3 -e " VERSION" | grep -o "[[:digit:]]*" | xargs | sed s'/ /./g')"
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 \
-DWITH_QT6=ON \
-DWITH_PYBIND11=ON \
-DWITH_APPSTREAM=OFF \
-DBUILD_TESTING=OFF \
-DSKIP_MODULES="tracking webview interactiveterminal initramfs \
initramfscfg dracut dracutlukscfg \
dummyprocess dummypython dummycpp \
dummypythonqt services-openrc"
make
}

package() {
cd ${srcdir}/calamares-${pkgver}/build
make DESTDIR="$pkgdir" install

}
3 changes: 3 additions & 0 deletions calamares/calamares-3.3.12/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rm -rvf pkg/
rm -rvf src/
rm -rvf cala*
6 changes: 6 additions & 0 deletions calamares/calamares-3.3.12/dep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Installing calamares dependencies for ALG

echo "Installing: kconfig kcoreaddons kiconthemes ki18n kio solid yaml-cpp kpmcore mkinitcpio-openswap ckbcomp hwinfo qt6-svg polkit-qt6 gtk-update-icon-cache squashfs-tools libpwquality pybind11 python extra-cmake-modules qt6-tools qt6-translations git"

sudo pacman -Sy kconfig kcoreaddons kiconthemes ki18n kio solid yaml-cpp kpmcore mkinitcpio-openswap ckbcomp hwinfo qt6-svg polkit-qt6 gtk-update-icon-cache squashfs-tools libpwquality pybind11 python extra-cmake-modules qt6-tools qt6-translations git