This commit is contained in:
Valeria Fadeeva 2023-05-09 23:35:37 +05:00
parent 4e9cae08d3
commit 75ace1ebaf
14 changed files with 160 additions and 3 deletions

8
core/calamares/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
*.pkg.tar
*.pkg.tar.*
*.zst
*.zst.*
pkg/
src/
.idea/
/calamares

72
core/calamares/PKGBUILD Normal file
View File

@ -0,0 +1,72 @@
# Maintainer: Valeria Fadeeva <valeria@fadeeva.me>
_gitname="$(basename $(pwd))"
pkgname=("melawy-$_gitname")
pkgver=3.3.0.1
pkgrel=1
pkgdesc="$(head -n 2 README.md | tail -n 1)"
arch=("i686" "x86_64")
url="https://github.com/Melawy/$_gitname"
license=("AGPL")
depends=("boost" "boost-libs" "ckbcomp" "cryptsetup" "dmidecode" "doxygen" "efibootmgr" "extra-cmake-modules" "gptfdisk" "gtk-update-icon-cache" "hwinfo" "icu" "kconfig" "kcoreaddons" "ki18n" "kiconthemes" "kio" "kparts" "kpmcore" "kservice" "kwidgetsaddons" "libpwquality" "mkinitcpio-openswap" "networkmanager" "plasma-framework" "polkit-qt5" "python" "qt5-quickcontrols2" "qt5-svg" "qt5-tools" "qt5-translations" "qt5-webengine" "qt5-xmlpatterns" "rsync" "solid" "squashfs-tools" "upower" "yaml-cpp")
optdepends=()
makedepends=("git" "cmake" "python-jsonschema" "python-pyaml" "python-unidecode" "boost" "boost-libs" "ckbcomp" "cryptsetup" "dmidecode" "doxygen" "efibootmgr" "extra-cmake-modules" "gptfdisk" "gtk-update-icon-cache" "hwinfo" "icu" "kconfig" "kcoreaddons" "ki18n" "kiconthemes" "kio" "kparts" "kpmcore" "kservice" "kwidgetsaddons" "libpwquality" "mkinitcpio-openswap" "networkmanager" "plasma-framework" "polkit-qt5" "python" "qt5-quickcontrols2" "qt5-svg" "qt5-tools" "qt5-translations" "qt5-webengine" "qt5-xmlpatterns" "rsync" "solid" "squashfs-tools" "upower" "yaml-cpp")
backup=()
provides=("${pkgname}")
conflicts=("calamares" "${pkgname}")
options=(!strip !emptydirs)
source=("git+$url.git")
sha256sums=("SKIP")
validpgpkeys=("95F48000540A4DB146583A47C49B5E77FD80302D")
# pkgver() {
# cd "$srcdir/$_gitname"
# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
# }
pkgver() {
cd "${srcdir}/${_gitname}"
printf "3.3.0.%s" "$(git rev-list --count HEAD)"
}
prepare() {
# cp -rv ../modules/* ${srcdir}/$_pkgname-${pkgver}/src/modules/
sed -i -e 's/"Install configuration files" OFF/"Install configuration files" ON/' "${srcdir}/${_gitname}/calamares_eos/CMakeLists.txt"
sed -i -e 's/# DEBUG_FILESYSTEMS/DEBUG_FILESYSTEMS/' "${srcdir}/${_gitname}/calamares_eos/CMakeLists.txt"
sed -i -e "s/desired_size = 512 \* 1024 \* 1024 \# 512MiB/desired_size = 512 \* 1024 \* 1024 \* 4 \# 2048MiB/" "${srcdir}/${_gitname}/calamares_eos/src/modules/fstab/main.py"
sed -i -e "s|CALAMARES_VERSION 3.3.0-alpha3|CALAMARES_VERSION $pkgver|g" "${srcdir}/${_gitname}/calamares_eos/CMakeLists.txt"
}
build() {
mkdir -p "${_gitname}/calamares/build"
cmake -B "${_gitname}/calamares/build" -S "${_gitname}/calamares_eos" \
-DWEBVIEW_FORCE_WEBKIT=OFF \
-DWITH_PYTHONQT=ON \
-DWITH_KF5DBus=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DBoost_NO_BOOST_CMAKE=ON \
-DSKIP_MODULES="dummyprocess dummypython dummycpp dummypythonqt \
dracut dracutlukscfg initramfs initramfscfg initcpio \
webview tracking services-openrc \
keyboardq localeq welcomeq finishedq \
license notesqml oemid \
openrcdmcryptcfg plymouthcfg plasmalnf \
summaryq usersq"
export DESTDIR="${_gitname}/calamares/build"
make -j $(nproc) -C "${_gitname}/calamares/build"
}
package() {
make -C "${srcdir}/${_gitname}/calamares/build" DESTDIR="${pkgdir}" install
install -Dm644 "${srcdir}/${_gitname}/calamares/melawy-linux.desktop" "${pkgdir}/usr/share/applications/melawy-linux.desktop"
install -Dm644 "${srcdir}/${_gitname}/calamares/melawy-linux-debugging.desktop" "${pkgdir}/usr/share/applications/melawy-linux-debugging.desktop"
install -Dm755 "${srcdir}/${_gitname}/calamares/calamares_polkit" "${pkgdir}/usr/bin/calamares_polkit"
rm "${pkgdir}/usr/share/applications/calamares.desktop"
install -dm 755 "${pkgdir}/etc"
cp -rp "${srcdir}/${_gitname}/calamares/configs/melawy" "${pkgdir}/etc/calamares"
}

11
core/calamares/README.md Normal file
View File

@ -0,0 +1,11 @@
# calamares
Installer for Melawy Linux
### Donate
[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066)
[YooMoney](https://yoomoney.ru/to/4100115921160758)
[Qiwi](https://qiwi.com/n/VALERIAFADEEVA)
Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f

10
core/calamares_local/.gitignore vendored Normal file
View File

@ -0,0 +1,10 @@
*.pkg.tar
*.pkg.tar.*
*.zst
*.zst.*
*.tar
*.tar.gz
pkg/
src/
.idea/
calamares_local

View File

@ -0,0 +1,40 @@
# Maintainer: Valeria Fadeeva <valeria@fadeeva.me>
_gitname="$(basename $(pwd))"
pkgname=("melawy-$_gitname")
pkgver=3.3.0.2
pkgrel=1
pkgdesc="$(head -n 2 README.md | tail -n 1)"
arch=('i686' 'x86_64')
url="https://github.com/Melawy/$_gitname"
license=('AGPL')
depends=("boost" "boost-libs" "ckbcomp" "cryptsetup" "dmidecode" "doxygen" "efibootmgr" "extra-cmake-modules" "gptfdisk" "gtk-update-icon-cache" "hwinfo" "icu" "kconfig" "kcoreaddons" "ki18n" "kiconthemes" "kio" "kparts" "kpmcore" "kservice" "kwidgetsaddons" "libpwquality" "mkinitcpio-openswap" "networkmanager" "plasma-framework" "polkit-qt5" "python" "qt5-quickcontrols2" "qt5-svg" "qt5-tools" "qt5-translations" "qt5-webengine" "qt5-xmlpatterns" "rsync" "solid" "squashfs-tools" "upower" "yaml-cpp")
optdepends=()
makedepends=('git')
backup=()
provides=("${pkgname}")
conflicts=("calamares" "${pkgname}")
options=(!strip !emptydirs)
source=("file:///disk/github/active/Melawy/Melawy-Dev/CORE/calamares_local/calamares.tar.gz")
sha256sums=("SKIP")
validpgpkeys=('95F48000540A4DB146583A47C49B5E77FD80302D')
# pkgver() {
# cd "${srcdir}/$_gitname"
# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
# }
# pkgver() {
# cd "${srcdir}/$_gitname"
# printf "3.3.0.%s" "$(git rev-list --count HEAD)"
# }
package() {
make -C ${srcdir}/calamares/build DESTDIR="${pkgdir}" install
install -Dm644 "${srcdir}/calamares/melawy-linux.desktop" "${pkgdir}/usr/share/applications/melawy-linux.desktop"
install -Dm644 "${srcdir}/calamares/melawy-linux-debugging.desktop" "${pkgdir}/usr/share/applications/melawy-linux-debugging.desktop"
install -Dm755 "${srcdir}/calamares/calamares_polkit" "${pkgdir}/usr/bin/calamares_polkit"
rm "${pkgdir}/usr/share/applications/calamares.desktop"
install -dm 755 "${pkgdir}/etc"
cp -rp "${srcdir}/calamares/configs/melawy" "${pkgdir}/etc/calamares"
}

View File

@ -0,0 +1,11 @@
# calamares
Installer for Melawy Linux
### Donate
[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066)
[YooMoney](https://yoomoney.ru/to/4100115921160758)
[Qiwi](https://qiwi.com/n/VALERIAFADEEVA)
Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f

View File

@ -1,4 +1,5 @@
# Maintainer: Valeria Fadeeva <valeria@fadeeva.me>
_gitname="$(basename $(pwd))"
pkgname=("melawy-$_gitname")
pkgver=1.1

View File

@ -1,4 +1,5 @@
# Maintainer: Valeria Fadeeva <valeria@fadeeva.me>
_gitname="$(basename $(pwd))"
pkgname=("melawy-$_gitname")
pkgver=1.1

View File

@ -1,4 +1,5 @@
# Maintainer: Morgan <morganamilo@archlinux.org>
pkgname=paru-bin
pkgver=1.11.2
pkgrel=1

View File

@ -1,4 +1,5 @@
# Maintainer: Morgan <morganamilo@archlinux.org>
pkgname=paru-git
_pkgname=paru
pkgver=1.11.2.r167.g257e011

View File

@ -1,4 +1,5 @@
# Maintainer: Morgan <morganamilo@archlinux.org>
pkgname=paru
pkgver=1.11.1
pkgrel=1

View File

@ -2,7 +2,7 @@
_gitname="$(basename $(pwd))"
pkgname=("melawy-$_gitname")
pkgver=1.3
pkgver=1.4
pkgrel=1
pkgdesc="$(head -n 2 README.md | tail -n 1)"
url="https://github.com/Melawy/$_gitname"

View File

@ -2,7 +2,7 @@
_gitname="$(basename $(pwd))"
pkgname=("melawy-$_gitname")
pkgver=1.5
pkgver=1.6
pkgrel=1
pkgdesc="$(head -n 2 README.md | tail -n 1)"
url="https://github.com/Melawy/$_gitname"

View File

@ -2,7 +2,7 @@
_gitname="$(basename $(pwd))"
pkgname=("melawy-$_gitname")
pkgver=1.4
pkgver=1.5
pkgrel=1
pkgdesc="$(head -n 2 README.md | tail -n 1)"
url="https://github.com/Melawy/$_gitname"