Compare commits

...

5 Commits

Author SHA1 Message Date
eshanized
f7eba10113 🐛 fix: url has been updated
Some checks failed
Check Conventional Commit / check-commit-message (push) Has been cancelled
2025-01-11 18:44:11 +05:30
eshanized
585fd297e2 📝 docs: simplified and correction 2025-01-11 18:38:16 +05:30
eshanized
28628fbb93 ️ perf: improve with command 2025-01-11 18:36:40 +05:30
eshanized
3dc7463b1d ️ perf: remove duplicacy 2025-01-11 18:35:45 +05:30
eshanized
803277a271 📝 docs: remove translation 2025-01-11 18:34:41 +05:30
5 changed files with 128 additions and 314 deletions

View File

@@ -15,18 +15,30 @@ depends=()
conflicts=()
provides=("${pkgname}")
options=(!strip !emptydirs)
source=(${_pkgname}::"git+$url")
source=("git+$url")
sha256sums=('SKIP')
install="${_pkgname}.install"
# Set package version based on git commit count and short hash
pkgver() {
cd "$srcdir/$pkgname" || exit
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
cd "$srcdir/$pkgname" || return 1 # Avoid `exit`, use return for errors
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
# Package creation
package() {
mkdir -p "${pkgdir}${_licensedir}${_pkgname}"
mv "${srcdir}/${_pkgname}/"LICENSE "${pkgdir}${_licensedir}${_pkgname}/LICENSE"
mkdir -p "${pkgdir}${_destname}"
cp -r "${srcdir}/${_pkgname}/calamares/"* "${pkgdir}${_destname}"
}
# Create the necessary directories
mkdir -p "${pkgdir}${_licensedir}${_pkgname}"
mkdir -p "${pkgdir}${_destname}"
# Move LICENSE file with correct permissions
install -Dm644 "${srcdir}/${_pkgname}/LICENSE" "${pkgdir}${_licensedir}${_pkgname}/LICENSE"
# Copy the configuration files, preserve permissions and ownership
cp -r "${srcdir}/${_pkgname}/calamares/"* "${pkgdir}${_destname}/"
# Optionally, ensure the files are owned by root (as the package will typically be installed by root)
chown -R root:root "${pkgdir}${_destname}"
chmod -R 755 "${pkgdir}${_destname}"
}

View File

@@ -1,86 +1,105 @@
#https://github.com/calamares/calamares/releases
#change prepare number too
# PKGBUILD for snigdhaos-calamares
pkgname=snigdhaos-calamares
_pkgname=calamares
pkgver=3.3.6
pkgver=3.3.13
pkgrel=06
pkgdesc='Distribution-independent installer framework'
arch=('i686' 'x86_64')
license=(GPL)
pkgdesc="Distribution-independent installer framework"
arch=("i686" "x86_64")
url="https://github.com/calamares/calamares/releases"
license=('LGPL')
#'appstream-qt5' out as dependency and on iso
provides=('calamares')
license=("LGPL")
# Dependencies
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'
'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'
'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")
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'
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
# Source files
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' # Placeholder for proper checksum values
'SKIP'
'SKIP'
'SKIP'
)
# Prepare the build environment
prepare() {
cp -rv ../modules/* "${srcdir}/$_pkgname-${pkgver}-${pkgrel}/src/modules/"
cp -rv ../modules/* ${srcdir}/$_pkgname-${pkgver}-${pkgrel}/src/modules/
# Modify default settings
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"
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}"
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"
# Update versioning in CMakeLists
sed -i -e "s|CALAMARES_VERSION 3.3.5|CALAMARES_VERSION $pkgver-$pkgrel|g" CMakeLists.txt
# Remove redundant padding properties in QML
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 the package
build() {
cd $_pkgname-$pkgver-${pkgrel}
cd "${_pkgname}-${pkgver}-${pkgrel}"
cmake -S . -Bbuild \
-GNinja \
@@ -117,11 +136,16 @@ build() {
cmake --build build
}
# Package installation
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"
}
cd "${_pkgname}-${pkgver}-${pkgrel}/build"
DESTDIR="${pkgdir}" cmake --build . --target install
# Install desktop and polkit files
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"
# Remove default Calamares desktop file
rm "$pkgdir/usr/share/applications/calamares.desktop"
}

View File

@@ -1,6 +1,10 @@
#!/bin/bash
if [ $(which pkexec) ]; then
pkexec --disable-internal-agent "/usr/bin/calamares" "$@"
# Check if pkexec exists and is executable
if command -v pkexec &>/dev/null; then
# Use pkexec to run calamares with administrative privileges
pkexec --disable-internal-agent /usr/bin/calamares "$@"
else
/usr/bin/calamares "$@"
fi
# Fallback to running calamares without administrative privileges
/usr/bin/calamares "$@"
fi

View File

@@ -2,239 +2,13 @@
Type=Application
Version=1.0
Name=Install Snigdha OS
Comment=Installer for Snigdha OS
GenericName=System Installer
Keywords=calamares;system;installer;
TryExec=/usr/bin/calamares_polkit %f -style breeze
Comment=Installer for Snigdha OS
Keywords=calamares;installer;system;setup;OS;
TryExec=/usr/bin/calamares_polkit
Exec=/usr/bin/calamares_polkit %f -style breeze
Icon=snigdhaos-calamares
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;Settings;Security;X-GNOME-Settings-Panel;X-GNOME-SystemSettings;X-Unity-Settings-Panel;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;Utility;System;Filesystem;GNOME;Qt;KDE;
Categories=System;Settings;Utility;Security;Qt;KDE;GTK;Filesystem;GNOME;
X-AppStream-Ignore=true
Name[ar]=تثبيت النظام
Icon[ar]=كالامارس
GenericName[ar]=مثبت النظام
Comment[ar]=كالامارس - مثبت النظام
Name[as]=চিছটেম ইনস্তল কৰক
Icon[as]=কেলামাৰেচ
GenericName[as]=চিছটেম ইনস্তলাৰ
Comment[as]=কেলামাৰেচ — চিছটেম​ ইনস্তলাৰ
Name[az]=Sistemi Quraşdırmaq
Icon[az]=calamares
GenericName[az]=Sistem Quraşdırıcısı
Comment[az]=Calamares Sistem Quraşdırıcısı
Name[be]=Усталяваць сістэму
Icon[be]=calamares
GenericName[be]=Усталёўшчык сістэмы
Comment[be]=Calamares — усталёўшчык сістэмы
Name[bg]=Инсталирай системата
Icon[bg]=calamares
GenericName[bg]=Системен Инсталатор
Comment[bg]=Calamares — Системен Инсталатор
Name[bn]=সিস্টেম ইনস্টল করুন
Icon[bn]=ক্যালামারেস
GenericName[bn]=সিস্টেম ইনস্টলার
Comment[bn]=ক্যালামারেস - সিস্টেম ইনস্টলার
Name[ca]=Instal·la el sistema
Icon[ca]=calamares
GenericName[ca]=Instal·lador de sistema
Comment[ca]=Calamares — Instal·lador de sistema
Name[da]=Installér system
Icon[da]=calamares
GenericName[da]=Systeminstallationsprogram
Comment[da]=Calamares — Systeminstallationsprogram
Name[de]=System installieren
Icon[de]=calamares
GenericName[de]=Installation des Betriebssystems
Comment[de]=Calamares - Installation des Betriebssystems
Name[el]=Εγκατάσταση συστήματος
Icon[el]=calamares
GenericName[el]=Εγκατάσταση συστήματος
Comment[el]=Calamares — Εγκατάσταση συστήματος
Name[en_GB]=Install System
Icon[en_GB]=calamares
GenericName[en_GB]=System Installer
Comment[en_GB]=Calamares — System Installer
Name[es]=Instalar Sistema
Icon[es]=calamares
GenericName[es]=Instalador del Sistema
Comment[es]=Calamares — Instalador del Sistema
Name[et]=Paigalda süsteem
Icon[et]=calamares
GenericName[et]=Süsteemipaigaldaja
Comment[et]=Calamares — süsteemipaigaldaja
Name[eu]=Sistema instalatu
Icon[eu]=calamares
GenericName[eu]=Sistema instalatzailea
Comment[eu]=Calamares - sistema instalatzailea
Name[fa]=نصب سامانه
Icon[fa]=کالامارس
GenericName[fa]=نصب‌کنندهٔ سامانه
Comment[fa]=کالامارس — نصب‌کنندهٔ سامانه
Name[es_PR]=Instalar el sistema
Name[fr]=Installer le système
Icon[fr]=calamares
GenericName[fr]=Installateur système
Comment[fr]=Calamares - Installateur système
Name[fur]=Instale il sisteme
Icon[fur]=calamares
GenericName[fur]=Program di instalazion dal sisteme
Comment[fur]=Calamares — Program di instalazion dal sisteme
Name[gl]=Instalación do Sistema
Icon[gl]=calamares
GenericName[gl]=Instalador de sistemas
Comment[gl]=Calamares — Instalador de sistemas
Name[he]=התקנת מערכת
Icon[he]=calamares
GenericName[he]=אשף התקנה
Comment[he]=Calamares - אשף התקנה
Name[hi]=सिस्टम इंस्टॉल करें
Icon[hi]=calamares
GenericName[hi]=सिस्टम इंस्टॉलर
Comment[hi]=Calamares — सिस्टम इंस्टॉलर
Name[hr]=Instaliraj sustav
Icon[hr]=calamares
GenericName[hr]=Instalacija sustava
Comment[hr]=Calamares — Instalacija sustava
Name[ie]=Installar li sistema
Icon[ie]=calamares
GenericName[ie]=Installator del sistema
Comment[ie]=Calamares — Installator del sistema
Name[hu]=Rendszer telepítése
Icon[hu]=calamares
GenericName[hu]=Rendszertelepítő
Comment[hu]=Calamares Rendszertelepítő
Name[id]=Instal Sistem
Icon[id]=calamares
GenericName[id]=Pemasang
Comment[id]=Calamares — Pemasang Sistem
Name[is]=Setja upp kerfið
Icon[is]=calamares
GenericName[is]=Kerfis uppsetning
Comment[is]=Calamares — Kerfis uppsetning
Name[cs_CZ]=Nainstalovat systém
Icon[cs_CZ]=calamares
GenericName[cs_CZ]=Instalátor systému
Comment[cs_CZ]=Calamares instalátor operačních systémů
Name[ja]=システムをインストール
Icon[ja]=calamares
GenericName[ja]=システムインストーラー
Comment[ja]=Calamares — システムインストーラー
Name[ko]=시스템 설치
Icon[ko]=깔라마레스
GenericName[ko]=시스템 설치 관리자
Comment[ko]=깔라마레스 — 시스템 설치 관리자
Name[lt]=Įdiegti Sistemą
Icon[lt]=calamares
GenericName[lt]=Sistemos diegimas į kompiuterį
Comment[lt]=Calamares — Sistemos diegimo programa
Name[it_IT]=Installa il sistema
Icon[it_IT]=calamares
GenericName[it_IT]=Programma d'installazione del sistema
Comment[it_IT]=Calamares — Programma d'installazione del sistema
Name[mk]=Инсталирај го системот
Icon[mk]=calamares
GenericName[mk]=Системен Инсталер
Comment[mk]=Calamares - Системен Инсталер
Name[ml]=സിസ്റ്റം ഇൻസ്റ്റാൾ ചെയ്യുക
Icon[ml]=കലാമാരേസ്
GenericName[ml]=സിസ്റ്റം ഇൻസ്റ്റാളർ
Comment[ml]=കലാമാരേസ് - സിസ്റ്റം ഇൻസ്റ്റാളർ
Name[nb]=Installer System
Icon[nb]=calamares
GenericName[nb]=Systeminstallatør
Comment[nb]=Calamares-systeminstallatør
Name[nl]=Installeer systeem
Icon[nl]=calamares
GenericName[nl]=Installatieprogramma
Comment[nl]=Calamares — Installatieprogramma
Name[az_AZ]=Sistemi quraşdırmaq
Icon[az_AZ]=calamares
GenericName[az_AZ]=Sistem quraşdırcısı
Comment[az_AZ]=Calamares — Sistem Quraşdırıcısı
Name[pl]=Zainstaluj system
Icon[pl]=calamares
GenericName[pl]=Instalator systemu
Comment[pl]=Calamares — Instalator systemu
Name[pt_BR]=Sistema de Instalação
Icon[pt_BR]=calamares
GenericName[pt_BR]=Instalador de Sistema
Comment[pt_BR]=Calamares — Instalador de Sistema
Name[ro]=Instalează sistemul
Icon[ro]=calamares
GenericName[ro]=Instalator de sistem
Comment[ro]=Calamares — Instalator de sistem
Name[ru]=Установить систему
Icon[ru]=calamares
GenericName[ru]=Установщик системы
Comment[ru]=Calamares - Установщик системы
Name[sk]=Inštalovať systém
Icon[sk]=calamares
GenericName[sk]=Inštalátor systému
Comment[sk]=Calamares — Inštalátor systému
Name[sl]=Namesti sistem
Name[sq]=Instalo Sistemin
Icon[sq]=calamares
GenericName[sq]=Instalues Sistemi
Comment[sq]=Calamares — Instalues Sistemi
Name[fi_FI]=Asenna Järjestelmä
Icon[fi_FI]=calamares
GenericName[fi_FI]=Järjestelmän Asennusohjelma
Comment[fi_FI]=Calamares — Järjestelmän Asentaja
Name[sr@latin]=Instaliraj sistem
Name[sr]=Инсталирај систем
Icon[sr]=calamares
GenericName[sr]=Инсталатер система
Comment[sr]=Каламарес — инсталатер система
Name[sv]=Installera system
Icon[sv]=calamares
GenericName[sv]=Systeminstallerare
Comment[sv]=Calamares — Systeminstallerare
Name[tg]=Насбкунии низом
Icon[tg]=calamares
GenericName[tg]=Насбкунандаи низомӣ
Comment[tg]=Calamares — Насбкунандаи низомӣ
Name[th]=ติดตั้งระบบ
Name[uk]=Встановити Систему
Icon[uk]=calamares
GenericName[uk]=Встановлювач системи
Comment[uk]=Calamares - Встановлювач системи
Name[vi]=Cài đặt hệ thống
Icon[vi]=calamares
GenericName[vi]=Bộ cài đặt hệ thống
Comment[vi]=Calamares — Bộ cài đặt hệ thống
Name[zh_CN]=安装系统
Icon[zh_CN]=calamares
GenericName[zh_CN]=系统安装程序
Comment[zh_CN]=Calamares — 系统安装程序
Name[zh_TW]=安裝系統
Icon[zh_TW]=calamares
GenericName[zh_TW]=系統安裝程式
Comment[zh_TW]=Calamares ── 系統安裝程式
Name[ast]=Instalar el sistema
Icon[ast]=calamares
GenericName[ast]=Instalador del sistema
Comment[ast]=Calamares — Instalador del sistema
Name[eo]=Instali Sistemo
Icon[eo]=calamares
GenericName[eo]=Sistema Instalilo
Comment[eo]=Calamares — Sistema Instalilo
Name[ne_NP]= सिस्टम इन्स्टल गर्नुहोस्
Icon[ne_NP]=Calamares
GenericName[ne_NP]=सिस्टम इन्स्टलर
Comment[ne_NP]=Calamares - सिस्टम इन्स्टलर
Name[es_MX]=Instalar el Sistema
Icon[es_MX]=calamares
GenericName[es_MX]=Instalador del sistema
Comment[es_MX]=Calamares - Instalador del sistema
Name[pt_PT]=Instalar Sistema
Icon[pt_PT]=calamares
GenericName[pt_PT]=Instalador de Sistema
Comment[pt_PT]=Calamares - Instalador de Sistema
Name[tr_TR]=Sistemi Yükle
Icon[tr_TR]=calamares
GenericName[tr_TR]=Sistem Yükleyici
Comment[tr_TR]=Calamares Sistem Yükleyici

View File

@@ -5,11 +5,11 @@ pkgver=1
pkgrel=1
arch=('any')
pkgdesc="SnigdhaOS Cinnamon Desktop configuration files"
url="https://snigdha-os.github.io"
url="https://Snigdha-OS.github.io"
license=('MIT')
depends=('kvantum-qt5' 'noto-fonts' 'snigdhaos-default-config')
makedepends=('coreutils')
source=("https://github.com/snigdha-os/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
source=("https://github.com/Snigdha-OS/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('SKIP')
install=$pkgname.install
provides=('snigdhaos-desktop')