perf(temp): remove browser config*

This commit is contained in:
Eshan Roy (Eshanized)
2024-05-14 02:46:24 +05:30
parent a6f533072a
commit 5ec6b047e8
23333 changed files with 2052080 additions and 0 deletions

View File

@@ -0,0 +1,127 @@
#https://github.com/calamares/calamares/releases
#change prepare number too
pkgname=snigdhaos-calamares
_pkgname=calamares
pkgver=3.3.6
pkgrel=06
pkgdesc='Distribution-independent installer framework'
arch=('i686' 'x86_64')
license=(GPL)
url="https://github.com/calamares/calamares/releases"
license=('LGPL')
#'appstream-qt5' out as dependency and on iso
provides=('calamares')
depends=(
'boost-libs'
'ckbcomp'
'cryptsetup'
'doxygen'
'efibootmgr'
'gptfdisk'
'gtk-update-icon-cache'
'hwinfo'
'icu'
'kconfig'
'kcoreaddons'
'kcrash'
'ki18n'
'kparts'
'kpmcore'
'kservice'
'kwidgetsaddons'
'libpwquality'
'mkinitcpio-openswap'
'polkit-qt6'
'rsync'
'qt6-declarative'
'solid'
'squashfs-tools'
'yaml-cpp'
)
conflicts=()
makedepends=(
'boost'
'cmake'
'extra-cmake-modules'
'git'
'ninja'
'python-jsonschema'
'python-pyaml'
'python-unidecode'
'qt6-tools'
)
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=("calamares::https://github.com/erikdubois/calamares/archive/refs/tags/$pkgver-$pkgrel.tar.gz"
"snigdhaos-calamares.desktop"
"snigdhaos-calamares-debug.desktop"
"calamares_polkit")
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
prepare() {
cp -rv ../modules/* ${srcdir}/$_pkgname-${pkgver}-${pkgrel}/src/modules/
sed -i -e 's/"Install configuration files" OFF/"Install configuration files" ON/' "$srcdir/${_pkgname}-${pkgver}-${pkgrel}/CMakeLists.txt"
sed -i -e "s/desired_size = 512 \* 1024 \* 1024 \# 512MiB/desired_size = 512 \* 1024 \* 1024 \* 4 \# 2048MiB/" "$srcdir/${_pkgname}-${pkgver}-${pkgrel}/src/modules/fstab/main.py"
cd ${_pkgname}-${pkgver}-${pkgrel}
sed -i -e "s|CALAMARES_VERSION 3.3.5|CALAMARES_VERSION $pkgver-$pkgrel|g" CMakeLists.txt
sed -i -e '/property real padding: 16;/d' "$srcdir/${_pkgname}-${pkgver}-${pkgrel}/src/qml/calamares-qt5/slideshow/Presentation.qml"
sed -i -e '/property real padding: 16;/d' "$srcdir/${_pkgname}-${pkgver}-${pkgrel}/src/qml/calamares-qt6/slideshow/Presentation.qml"
}
build() {
cd $_pkgname-$pkgver-${pkgrel}
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 \
initramfs \
initramfscfg \
interactiveterminal \
keyboardq \
license \
localeq \
oemid \
packagechooserq \
partitionq \
services-openrc \
services-systemd \
summaryq \
tracking \
usersq \
welcomeq \
zfs \
zfshostid"
cmake --build build
}
package() {
cd ${_pkgname}-${pkgver}-${pkgrel}/build
DESTDIR="${pkgdir}" cmake --build . --target install
install -Dm644 "$srcdir/snigdhaos-calamares.desktop" "$pkgdir/usr/share/applications/snigdhaos-calamares.desktop"
install -Dm644 "$srcdir/snigdhaos-calamares-debug.desktop" "$pkgdir/usr/share/applications/snigdhaos-calamares-debug.desktop"
install -Dm755 "$srcdir/calamares_polkit" "$pkgdir/usr/bin/calamares_polkit"
rm "$pkgdir/usr/share/applications/calamares.desktop"
}