commit f5adb05953c037458857f9d2da7fff72c4698a15 Author: Valeria Fadeeva Date: Fri Jan 19 12:17:28 2024 +0500 cleanup diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9881fec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.tar.* diff --git a/3PARTY/3party/audio-recorder b/3PARTY/3party/audio-recorder new file mode 160000 index 0000000..f17452f --- /dev/null +++ b/3PARTY/3party/audio-recorder @@ -0,0 +1 @@ +Subproject commit f17452facb162f60a413df834c7a9055eae67cc3 diff --git a/3PARTY/3party/bluetooth-autoconnect b/3PARTY/3party/bluetooth-autoconnect new file mode 160000 index 0000000..1baf4ba --- /dev/null +++ b/3PARTY/3party/bluetooth-autoconnect @@ -0,0 +1 @@ +Subproject commit 1baf4ba3f9518309e0f80643bd364a91cc363ce4 diff --git a/3PARTY/3party/bluetooth-support b/3PARTY/3party/bluetooth-support new file mode 160000 index 0000000..969b23d --- /dev/null +++ b/3PARTY/3party/bluetooth-support @@ -0,0 +1 @@ +Subproject commit 969b23dbcba472a15adc0fb32deadec38f679ebc diff --git a/3PARTY/3party/buildtorrent b/3PARTY/3party/buildtorrent new file mode 160000 index 0000000..b073122 --- /dev/null +++ b/3PARTY/3party/buildtorrent @@ -0,0 +1 @@ +Subproject commit b0731223695d0826639834ca36f36e761000a674 diff --git a/3PARTY/3party/cachyos-kernel-manager/.SRCINFO b/3PARTY/3party/cachyos-kernel-manager/.SRCINFO new file mode 100644 index 0000000..e5f1d4d --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/.SRCINFO @@ -0,0 +1,27 @@ +# Generated by makepkg 6.0.2 +# Fri Aug 11 22:06:38 UTC 2023 +pkgbase = cachyos-kernel-manager + pkgdesc = Simple kernel manager + pkgver = 1.3.2 + pkgrel = 1 + url = https://github.com/cachyos/kernel-manager + arch = aarch64 + arch = x86_64 + arch = x86_64_v3 + groups = cachyos + license = GPLv3 + makedepends = cmake + makedepends = ninja + makedepends = git + makedepends = python + makedepends = polkit-qt5 + makedepends = qt5-tools + depends = qt5-base + depends = polkit + provides = cachyos-kernel-manager + conflicts = cachyos-kernel-manager + options = strip + source = kernel-manager-1.3.2.tar.gz::https://github.com/cachyos/kernel-manager/archive/v1.3.2.tar.gz + sha256sums = 01e356211fdbb2e99a0c848c5ce30a6f08f9b72f9cf822fd5bcc1af839913bb8 + +pkgname = cachyos-kernel-manager diff --git a/3PARTY/3party/cachyos-kernel-manager/00_make.sh b/3PARTY/3party/cachyos-kernel-manager/00_make.sh new file mode 100755 index 0000000..7e7134b --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/00_make.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +status=$? + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + + process=$(ps x | grep konsole | grep $0 | awk '{print $1}') + if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') + fi +fi diff --git a/3PARTY/3party/cachyos-kernel-manager/01_sign.sh b/3PARTY/3party/cachyos-kernel-manager/01_sign.sh new file mode 100755 index 0000000..2ce3206 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" +done + +for i in *.pkg.tar.xz; +do + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" +done + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/3PARTY/3party/cachyos-kernel-manager/PKGBUILD b/3PARTY/3party/cachyos-kernel-manager/PKGBUILD new file mode 100644 index 0000000..96053be --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Vladislav Nepogodin + +pkgname=cachyos-kernel-manager +pkgver=1.4.3 +pkgrel=1 +pkgdesc="Simple kernel manager" +arch=(aarch64 x86_64 x86_64_v3) +url="https://github.com/cachyos/kernel-manager" +license=(GPLv3) +depends=('qt5-base' 'polkit') +makedepends=('cmake' 'ninja' 'git' 'python' 'polkit-qt5' 'qt5-tools') +groups=('cachyos') +source=("git+$url.git" + fix-installed-db.patch) +sha256sums=('SKIP' + 'SKIP') +provides=('cachyos-kernel-manager') +conflicts=('cachyos-kernel-manager') +options=(strip) + +# prepare() { +# cd ${srcdir}/kernel-manager +# +# patch -Np1 -i ../fix-installed-db.patch +# } + +build() { + cd ${srcdir}/kernel-manager + + CFLAGS=${CFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS} + CXXFLAGS=${CXXFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS} + + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -S . -Bbuild \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build --parallel $_cpuCount +} + +package() { + cd ${srcdir}/kernel-manager + DESTDIR="${pkgdir}" cmake --build build --target install + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set sw=2 sts=2 et: diff --git a/3PARTY/3party/cachyos-kernel-manager/PKGBUILD_ b/3PARTY/3party/cachyos-kernel-manager/PKGBUILD_ new file mode 100644 index 0000000..ade407c --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/PKGBUILD_ @@ -0,0 +1,50 @@ +# Maintainer: Vladislav Nepogodin + +pkgname=cachyos-kernel-manager +pkgver=1.4.3 +pkgrel=1 +pkgdesc="Simple kernel manager" +arch=(aarch64 x86_64 x86_64_v3) +url="https://github.com/cachyos/kernel-manager" +license=(GPLv3) +depends=('qt5-base' 'polkit') +makedepends=('cmake' 'ninja' 'git' 'python' 'polkit-qt5' 'qt5-tools') +groups=('cachyos') +source=("kernel-manager-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz" + fix-installed-db.patch) +sha256sums=('e9ab98525e654728654cd84023bc1ef13567db8799ce25376b79726e04fa7216' + 'SKIP') +provides=('cachyos-kernel-manager') +conflicts=('cachyos-kernel-manager') +options=(strip) + +prepare() { + cd ${srcdir}/kernel-manager-${pkgver} + + patch -Np1 -i ../fix-installed-db.patch +} + +build() { + cd ${srcdir}/kernel-manager-${pkgver} + + CFLAGS=${CFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS} + CXXFLAGS=${CXXFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS} + + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -S . -Bbuild \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build --parallel $_cpuCount +} + +package() { + cd ${srcdir}/kernel-manager-${pkgver} + DESTDIR="${pkgdir}" cmake --build build --target install + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set sw=2 sts=2 et: diff --git a/3PARTY/3party/cachyos-kernel-manager/fix-installed-db.patch b/3PARTY/3party/cachyos-kernel-manager/fix-installed-db.patch new file mode 100644 index 0000000..b476ae4 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/fix-installed-db.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 52d5415..ba7883a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -75,11 +75,12 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto -fwhole-program -fuse-linker-plugin") + endif() + +-list(APPEND CMAKE_REQUIRED_LINK_OPTIONS "-lalpm") +-check_symbol_exists(alpm_pkg_get_installed_db "alpm.h" HAVE_ALPM_INSTALLED_DB) +-if(HAVE_ALPM_INSTALLED_DB) +- add_compile_options(-DHAVE_ALPM_INSTALLED_DB) +-endif() ++#list(APPEND CMAKE_REQUIRED_LINK_OPTIONS "-lalpm") ++#check_symbol_exists(alpm_pkg_get_installed_db "alpm.h" HAVE_ALPM_INSTALLED_DB) ++#if(HAVE_ALPM_INSTALLED_DB) ++# add_compile_options(-DHAVE_ALPM_INSTALLED_DB) ++#endif() ++add_compile_options(-DHAVE_ALPM_INSTALLED_DB) + + # Link this 'library' to set the c++ standard / compile-time options requested + add_library(project_options INTERFACE) diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/FETCH_HEAD b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/FETCH_HEAD new file mode 100644 index 0000000..0999ead --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/FETCH_HEAD @@ -0,0 +1,40 @@ +d5613643a4e9124bf0aaef8bcfd6743361fd87ed not-for-merge branch 'develop' of https://github.com/cachyos/kernel-manager +51517d2e5b0068987089d99ebe0415d31925e966 not-for-merge 'refs/pull/3/head' of https://github.com/cachyos/kernel-manager +ffbd22917caa846fcde630e0b0adba179cb8d80b not-for-merge 'refs/pull/4/head' of https://github.com/cachyos/kernel-manager +e7272d97502ff8333dfb647471fcc3706a3c7b35 not-for-merge 'refs/pull/5/head' of https://github.com/cachyos/kernel-manager +a0ca2f39238c5707d1a0b89a8507ff941b529fdc not-for-merge 'refs/pull/6/head' of https://github.com/cachyos/kernel-manager +d7f080bd6171fa0a92fb486db25e9c27a9e39bcc not-for-merge tag '0.9.9.1' of https://github.com/cachyos/kernel-manager +a44eb568d2c42f5cb6b2d9742274131602e6eede not-for-merge tag 'v0.9.0' of https://github.com/cachyos/kernel-manager +e2f2c9c7b8149a46e6387ad05a564e724c31f396 not-for-merge tag 'v0.9.1' of https://github.com/cachyos/kernel-manager +20fb78d5b47381d3119d6ccfd8d0683a414ca81a not-for-merge tag 'v0.9.2' of https://github.com/cachyos/kernel-manager +7d3a46e56b7be1e2d940dc45aaed4017a5dd4bfa not-for-merge tag 'v0.9.3' of https://github.com/cachyos/kernel-manager +680037eac7d6992b8755ec9c48bc4f0dcb99f591 not-for-merge tag 'v0.9.4' of https://github.com/cachyos/kernel-manager +c8f0e48be5038e1139f1859ae57979c76c25fe1a not-for-merge tag 'v0.9.5' of https://github.com/cachyos/kernel-manager +3f95f245827668e299ee727b56c0d56e70462868 not-for-merge tag 'v0.9.6' of https://github.com/cachyos/kernel-manager +59c0a648026de2878a470780adb24bcc465b462e not-for-merge tag 'v0.9.7' of https://github.com/cachyos/kernel-manager +4063170803b479e36b6bfff89d5da98583cb8cbe not-for-merge tag 'v0.9.8' of https://github.com/cachyos/kernel-manager +a102e072cec2c882f660d19f11ac25f9a531e98b not-for-merge tag 'v0.9.9' of https://github.com/cachyos/kernel-manager +d4c493ae600fe471263ac9a5a81632ad152494e9 not-for-merge tag 'v1.0.0' of https://github.com/cachyos/kernel-manager +089262d5bed0357a594af4d2d74afd72e3a71b38 not-for-merge tag 'v1.0.1' of https://github.com/cachyos/kernel-manager +df3ca279d4628aa7c31425ec4d50c4f4029a2976 not-for-merge tag 'v1.0.2' of https://github.com/cachyos/kernel-manager +ffce93c1c515b37ef1be5c658a3a068657e97217 not-for-merge tag 'v1.0.3' of https://github.com/cachyos/kernel-manager +527c776be439ee4e9cd7deefbd8a194960eced03 not-for-merge tag 'v1.0.4' of https://github.com/cachyos/kernel-manager +99893d26c33ad5d5af85f32cec788af09dc8e2d0 not-for-merge tag 'v1.0.5' of https://github.com/cachyos/kernel-manager +c89b64315cca287d9839f10a51ba0bc5a39d744d not-for-merge tag 'v1.0.6' of https://github.com/cachyos/kernel-manager +0c345fcd19f2f3b051cf32a4e05da1014601398a not-for-merge tag 'v1.0.7' of https://github.com/cachyos/kernel-manager +c9d1f73ffe38a93e27f6945e186b0f96e7479b67 not-for-merge tag 'v1.0.8' of https://github.com/cachyos/kernel-manager +1dd67295a4f667059217f5ba5ab568daf86060d2 not-for-merge tag 'v1.0.9' of https://github.com/cachyos/kernel-manager +2e51e5066e35bb5805026b45f85349ae3ce51ad2 not-for-merge tag 'v1.1.0' of https://github.com/cachyos/kernel-manager +b9b595c81c15bde207d1f30b73d0758203aa1c6a not-for-merge tag 'v1.2.0' of https://github.com/cachyos/kernel-manager +e41fe9c0b2025132328f864dd2d16702bd0046c0 not-for-merge tag 'v1.2.1' of https://github.com/cachyos/kernel-manager +e11f3f7b3726665a5c5c6e1bda66aa4bfffb06a4 not-for-merge tag 'v1.3.0' of https://github.com/cachyos/kernel-manager +507f1833582b7c53df1f51502f1f1fb1de73678e not-for-merge tag 'v1.3.1' of https://github.com/cachyos/kernel-manager +1c0bfae47374517cec536bb48e033ec6cb000570 not-for-merge tag 'v1.3.2' of https://github.com/cachyos/kernel-manager +93a39d3033f8e7b6e13fd703622242af10e8dc4c not-for-merge tag 'v1.3.3' of https://github.com/cachyos/kernel-manager +f4a301e74b32bb188b729f9c3833494b7cfecf1a not-for-merge tag 'v1.3.4' of https://github.com/cachyos/kernel-manager +b477ad37300bdf51ad682ffa13818af9a780a8d8 not-for-merge tag 'v1.3.5' of https://github.com/cachyos/kernel-manager +36564df6da91e4ef9960ca45888292cc6c7a1073 not-for-merge tag 'v1.4.0' of https://github.com/cachyos/kernel-manager +87c267aebc9a536324defb18e7a7acbe45576ade not-for-merge tag 'v1.4.1' of https://github.com/cachyos/kernel-manager +ce1bce4a2f392635cfd50eacbad236ebd01bc6fc not-for-merge tag 'v1.4.2' of https://github.com/cachyos/kernel-manager +507e852a0e3f1f0e971998b07dfc434ab5903fab not-for-merge tag 'v1.4.3' of https://github.com/cachyos/kernel-manager +d5613643a4e9124bf0aaef8bcfd6743361fd87ed not-for-merge tag 'v1.4.4' of https://github.com/cachyos/kernel-manager diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/HEAD b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/HEAD new file mode 100644 index 0000000..7ee7e4f --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/HEAD @@ -0,0 +1 @@ +ref: refs/heads/develop diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/config b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/config new file mode 100644 index 0000000..8c8cfba --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/config @@ -0,0 +1,8 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true +[remote "origin"] + url = https://github.com/cachyos/kernel-manager.git + fetch = +refs/*:refs/* + mirror = true diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/description b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/applypatch-msg.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/commit-msg.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/fsmonitor-watchman.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/fsmonitor-watchman.sample new file mode 100755 index 0000000..23e856f --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/fsmonitor-watchman.sample @@ -0,0 +1,174 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use IPC::Open2; + +# An example hook script to integrate Watchman +# (https://facebook.github.io/watchman/) with git to speed up detecting +# new and modified files. +# +# The hook is passed a version (currently 2) and last update token +# formatted as a string and outputs to stdout a new update token and +# all files that have been modified since the update token. Paths must +# be relative to the root of the working tree and separated by a single NUL. +# +# To enable this hook, rename this file to "query-watchman" and set +# 'git config core.fsmonitor .git/hooks/query-watchman' +# +my ($version, $last_update_token) = @ARGV; + +# Uncomment for debugging +# print STDERR "$0 $version $last_update_token\n"; + +# Check the hook interface version +if ($version ne 2) { + die "Unsupported query-fsmonitor hook version '$version'.\n" . + "Falling back to scanning...\n"; +} + +my $git_work_tree = get_working_dir(); + +my $retry = 1; + +my $json_pkg; +eval { + require JSON::XS; + $json_pkg = "JSON::XS"; + 1; +} or do { + require JSON::PP; + $json_pkg = "JSON::PP"; +}; + +launch_watchman(); + +sub launch_watchman { + my $o = watchman_query(); + if (is_work_tree_watched($o)) { + output_result($o->{clock}, @{$o->{files}}); + } +} + +sub output_result { + my ($clockid, @files) = @_; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # binmode $fh, ":utf8"; + # print $fh "$clockid\n@files\n"; + # close $fh; + + binmode STDOUT, ":utf8"; + print $clockid; + print "\0"; + local $, = "\0"; + print @files; +} + +sub watchman_clock { + my $response = qx/watchman clock "$git_work_tree"/; + die "Failed to get clock id on '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + + return $json_pkg->new->utf8->decode($response); +} + +sub watchman_query { + my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') + or die "open2() failed: $!\n" . + "Falling back to scanning...\n"; + + # In the query expression below we're asking for names of files that + # changed since $last_update_token but not from the .git folder. + # + # To accomplish this, we're using the "since" generator to use the + # recency index to select candidate nodes and "fields" to limit the + # output to file names only. Then we're using the "expression" term to + # further constrain the results. + my $last_update_line = ""; + if (substr($last_update_token, 0, 1) eq "c") { + $last_update_token = "\"$last_update_token\""; + $last_update_line = qq[\n"since": $last_update_token,]; + } + my $query = <<" END"; + ["query", "$git_work_tree", {$last_update_line + "fields": ["name"], + "expression": ["not", ["dirname", ".git"]] + }] + END + + # Uncomment for debugging the watchman query + # open (my $fh, ">", ".git/watchman-query.json"); + # print $fh $query; + # close $fh; + + print CHLD_IN $query; + close CHLD_IN; + my $response = do {local $/; }; + + # Uncomment for debugging the watch response + # open ($fh, ">", ".git/watchman-response.json"); + # print $fh $response; + # close $fh; + + die "Watchman: command returned no output.\n" . + "Falling back to scanning...\n" if $response eq ""; + die "Watchman: command returned invalid output: $response\n" . + "Falling back to scanning...\n" unless $response =~ /^\{/; + + return $json_pkg->new->utf8->decode($response); +} + +sub is_work_tree_watched { + my ($output) = @_; + my $error = $output->{error}; + if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) { + $retry--; + my $response = qx/watchman watch "$git_work_tree"/; + die "Failed to make watchman watch '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + $output = $json_pkg->new->utf8->decode($response); + $error = $output->{error}; + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # close $fh; + + # Watchman will always return all files on the first query so + # return the fast "everything is dirty" flag to git and do the + # Watchman query just to get it over with now so we won't pay + # the cost in git to look up each individual file. + my $o = watchman_clock(); + $error = $output->{error}; + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + output_result($o->{clock}, ("/")); + $last_update_token = $o->{clock}; + + eval { launch_watchman() }; + return 0; + } + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + return 1; +} + +sub get_working_dir { + my $working_dir; + if ($^O =~ 'msys' || $^O =~ 'cygwin') { + $working_dir = Win32::GetCwd(); + $working_dir =~ tr/\\/\//; + } else { + require Cwd; + $working_dir = Cwd::cwd(); + } + + return $working_dir; +} diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/post-update.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-applypatch.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-commit.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-merge-commit.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-push.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-push.sample new file mode 100755 index 0000000..4ce688d --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +zero=$(git hash-object --stdin &2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-rebase.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-receive.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/prepare-commit-msg.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/push-to-checkout.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/push-to-checkout.sample new file mode 100755 index 0000000..af5a0c0 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/push-to-checkout.sample @@ -0,0 +1,78 @@ +#!/bin/sh + +# An example hook script to update a checked-out tree on a git push. +# +# This hook is invoked by git-receive-pack(1) when it reacts to git +# push and updates reference(s) in its repository, and when the push +# tries to update the branch that is currently checked out and the +# receive.denyCurrentBranch configuration variable is set to +# updateInstead. +# +# By default, such a push is refused if the working tree and the index +# of the remote repository has any difference from the currently +# checked out commit; when both the working tree and the index match +# the current commit, they are updated to match the newly pushed tip +# of the branch. This hook is to be used to override the default +# behaviour; however the code below reimplements the default behaviour +# as a starting point for convenient modification. +# +# The hook receives the commit with which the tip of the current +# branch is going to be updated: +commit=$1 + +# It can exit with a non-zero status to refuse the push (when it does +# so, it must not modify the index or the working tree). +die () { + echo >&2 "$*" + exit 1 +} + +# Or it can make any necessary changes to the working tree and to the +# index to bring them to the desired state when the tip of the current +# branch is updated to the new commit, and exit with a zero status. +# +# For example, the hook can simply run git read-tree -u -m HEAD "$1" +# in order to emulate git fetch that is run in the reverse direction +# with git push, as the two-tree form of git read-tree -u -m is +# essentially the same as git switch or git checkout that switches +# branches while keeping the local changes in the working tree that do +# not interfere with the difference between the branches. + +# The below is a more-or-less exact translation to shell of the C code +# for the default behaviour for git's push-to-checkout hook defined in +# the push_to_deploy() function in builtin/receive-pack.c. +# +# Note that the hook will be executed from the repository directory, +# not from the working tree, so if you want to perform operations on +# the working tree, you will have to adapt your code accordingly, e.g. +# by adding "cd .." or using relative paths. + +if ! git update-index -q --ignore-submodules --refresh +then + die "Up-to-date check failed" +fi + +if ! git diff-files --quiet --ignore-submodules -- +then + die "Working directory has unstaged changes" +fi + +# This is a rough translation of: +# +# head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX +if git cat-file -e HEAD 2>/dev/null +then + head=HEAD +else + head=$(git hash-object -t tree --stdin &2 + exit 1 +} + +unset GIT_DIR GIT_WORK_TREE +cd "$worktree" && + +if grep -q "^diff --git " "$1" +then + validate_patch "$1" +else + validate_cover_letter "$1" +fi && + +if test "$GIT_SENDEMAIL_FILE_COUNTER" = "$GIT_SENDEMAIL_FILE_TOTAL" +then + git config --unset-all sendemail.validateWorktree && + trap 'git worktree remove -ff "$worktree"' EXIT && + validate_series +fi diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/update.sample b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/update.sample new file mode 100755 index 0000000..c4d426b --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero=$(git hash-object --stdin &2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/info/exclude b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/11/30bf7611928ace7f2affbd2865ed64370e1d68 b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/11/30bf7611928ace7f2affbd2865ed64370e1d68 new file mode 100644 index 0000000..6e541f5 Binary files /dev/null and b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/11/30bf7611928ace7f2affbd2865ed64370e1d68 differ diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/15/4a3600ea3a3645acb4caa5ff0e09434a5a426b b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/15/4a3600ea3a3645acb4caa5ff0e09434a5a426b new file mode 100644 index 0000000..56137c4 Binary files /dev/null and b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/15/4a3600ea3a3645acb4caa5ff0e09434a5a426b differ diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/54/87c1726c925e469f4a7e3a2afe29646dcad5ef b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/54/87c1726c925e469f4a7e3a2afe29646dcad5ef new file mode 100644 index 0000000..68228ff Binary files /dev/null and b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/54/87c1726c925e469f4a7e3a2afe29646dcad5ef differ diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/7d/7d05ba471d7d79e86dbcea07274eefd4b65ac2 b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/7d/7d05ba471d7d79e86dbcea07274eefd4b65ac2 new file mode 100644 index 0000000..d292716 Binary files /dev/null and b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/7d/7d05ba471d7d79e86dbcea07274eefd4b65ac2 differ diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/94/b08bc9574e7af7bb6ea1efc3bbe774abf5095d b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/94/b08bc9574e7af7bb6ea1efc3bbe774abf5095d new file mode 100644 index 0000000..776a8cd Binary files /dev/null and b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/94/b08bc9574e7af7bb6ea1efc3bbe774abf5095d differ diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/b1/a9a025cc965a29ab52ade42c69358467e8d7ba b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/b1/a9a025cc965a29ab52ade42c69358467e8d7ba new file mode 100644 index 0000000..dc66725 Binary files /dev/null and b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/b1/a9a025cc965a29ab52ade42c69358467e8d7ba differ diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/d5/613643a4e9124bf0aaef8bcfd6743361fd87ed b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/d5/613643a4e9124bf0aaef8bcfd6743361fd87ed new file mode 100644 index 0000000..bc69f0b Binary files /dev/null and b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/d5/613643a4e9124bf0aaef8bcfd6743361fd87ed differ diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/ea/26c14f1a8d506fb05d32c2bbf3c1da409a7464 b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/ea/26c14f1a8d506fb05d32c2bbf3c1da409a7464 new file mode 100644 index 0000000..d85a1e2 Binary files /dev/null and b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/ea/26c14f1a8d506fb05d32c2bbf3c1da409a7464 differ diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.idx b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.idx new file mode 100644 index 0000000..c280651 Binary files /dev/null and b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.idx differ diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.pack b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.pack new file mode 100644 index 0000000..1b7b233 Binary files /dev/null and b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.pack differ diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.rev b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.rev new file mode 100644 index 0000000..8b1e546 Binary files /dev/null and b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.rev differ diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/packed-refs b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/packed-refs new file mode 100644 index 0000000..c93af28 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/packed-refs @@ -0,0 +1,40 @@ +# pack-refs with: peeled fully-peeled sorted +507e852a0e3f1f0e971998b07dfc434ab5903fab refs/heads/develop +51517d2e5b0068987089d99ebe0415d31925e966 refs/pull/3/head +ffbd22917caa846fcde630e0b0adba179cb8d80b refs/pull/4/head +e7272d97502ff8333dfb647471fcc3706a3c7b35 refs/pull/5/head +a0ca2f39238c5707d1a0b89a8507ff941b529fdc refs/pull/6/head +d7f080bd6171fa0a92fb486db25e9c27a9e39bcc refs/tags/0.9.9.1 +a44eb568d2c42f5cb6b2d9742274131602e6eede refs/tags/v0.9.0 +e2f2c9c7b8149a46e6387ad05a564e724c31f396 refs/tags/v0.9.1 +20fb78d5b47381d3119d6ccfd8d0683a414ca81a refs/tags/v0.9.2 +7d3a46e56b7be1e2d940dc45aaed4017a5dd4bfa refs/tags/v0.9.3 +680037eac7d6992b8755ec9c48bc4f0dcb99f591 refs/tags/v0.9.4 +c8f0e48be5038e1139f1859ae57979c76c25fe1a refs/tags/v0.9.5 +3f95f245827668e299ee727b56c0d56e70462868 refs/tags/v0.9.6 +59c0a648026de2878a470780adb24bcc465b462e refs/tags/v0.9.7 +4063170803b479e36b6bfff89d5da98583cb8cbe refs/tags/v0.9.8 +a102e072cec2c882f660d19f11ac25f9a531e98b refs/tags/v0.9.9 +d4c493ae600fe471263ac9a5a81632ad152494e9 refs/tags/v1.0.0 +089262d5bed0357a594af4d2d74afd72e3a71b38 refs/tags/v1.0.1 +df3ca279d4628aa7c31425ec4d50c4f4029a2976 refs/tags/v1.0.2 +ffce93c1c515b37ef1be5c658a3a068657e97217 refs/tags/v1.0.3 +527c776be439ee4e9cd7deefbd8a194960eced03 refs/tags/v1.0.4 +99893d26c33ad5d5af85f32cec788af09dc8e2d0 refs/tags/v1.0.5 +c89b64315cca287d9839f10a51ba0bc5a39d744d refs/tags/v1.0.6 +0c345fcd19f2f3b051cf32a4e05da1014601398a refs/tags/v1.0.7 +c9d1f73ffe38a93e27f6945e186b0f96e7479b67 refs/tags/v1.0.8 +1dd67295a4f667059217f5ba5ab568daf86060d2 refs/tags/v1.0.9 +2e51e5066e35bb5805026b45f85349ae3ce51ad2 refs/tags/v1.1.0 +b9b595c81c15bde207d1f30b73d0758203aa1c6a refs/tags/v1.2.0 +e41fe9c0b2025132328f864dd2d16702bd0046c0 refs/tags/v1.2.1 +e11f3f7b3726665a5c5c6e1bda66aa4bfffb06a4 refs/tags/v1.3.0 +507f1833582b7c53df1f51502f1f1fb1de73678e refs/tags/v1.3.1 +1c0bfae47374517cec536bb48e033ec6cb000570 refs/tags/v1.3.2 +93a39d3033f8e7b6e13fd703622242af10e8dc4c refs/tags/v1.3.3 +f4a301e74b32bb188b729f9c3833494b7cfecf1a refs/tags/v1.3.4 +b477ad37300bdf51ad682ffa13818af9a780a8d8 refs/tags/v1.3.5 +36564df6da91e4ef9960ca45888292cc6c7a1073 refs/tags/v1.4.0 +87c267aebc9a536324defb18e7a7acbe45576ade refs/tags/v1.4.1 +ce1bce4a2f392635cfd50eacbad236ebd01bc6fc refs/tags/v1.4.2 +507e852a0e3f1f0e971998b07dfc434ab5903fab refs/tags/v1.4.3 diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/refs/heads/develop b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/refs/heads/develop new file mode 100644 index 0000000..8cd9cf9 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/refs/heads/develop @@ -0,0 +1 @@ +d5613643a4e9124bf0aaef8bcfd6743361fd87ed diff --git a/3PARTY/3party/cachyos-kernel-manager/kernel-manager/refs/tags/v1.4.4 b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/refs/tags/v1.4.4 new file mode 100644 index 0000000..8cd9cf9 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/kernel-manager/refs/tags/v1.4.4 @@ -0,0 +1 @@ +d5613643a4e9124bf0aaef8bcfd6743361fd87ed diff --git a/3PARTY/3party/cachyos-kernel-manager/makepkg-clang-without-lto.conf b/3PARTY/3party/cachyos-kernel-manager/makepkg-clang-without-lto.conf new file mode 100644 index 0000000..6612242 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/makepkg-clang-without-lto.conf @@ -0,0 +1,191 @@ +#!/hint/bash +# +# /etc/makepkg.conf +# + +######################################################################### +# SOURCE ACQUISITION +######################################################################### +# +#-- The download utilities that makepkg should use to acquire sources +# Format: 'protocol::agent' +DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u' + 'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' + 'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'rsync::/usr/bin/rsync --no-motd -z %u %o' + 'scp::/usr/bin/scp -C %u %o') + +# Other common tools: +# /usr/bin/snarf +# /usr/bin/lftpget -c +# /usr/bin/wget + +#-- The package required by makepkg to download VCS sources +# Format: 'protocol::package' +VCSCLIENTS=('bzr::breezy' + 'fossil::fossil' + 'git::git' + 'hg::mercurial' + 'svn::subversion') + +######################################################################### +# ARCHITECTURE, COMPILE FLAGS +######################################################################### +# +CARCH="x86_64" +CHOST="x86_64-pc-linux-gnu" + +export CC=clang +export CXX=clang++ +export LD=ld.lld +export CC_LD=lld +export CXX_LD=lld +export AR=llvm-ar +export NM=llvm-nm +export STRIP=llvm-strip +export OBJCOPY=llvm-objcopy +export OBJDUMP=llvm-objdump +export READELF=llvm-readelf +export RANLIB=llvm-ranlib +export HOSTCC=clang +export HOSTCXX=clang++ +export HOSTAR=llvm-ar +export HOSTLD=ld.lld +export LLVM=1 +export LLVM_IAS=1 + +#-- Compiler and Linker Flags +#CPPFLAGS="" + +CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection" + +#CFLAGS="-march=native -mtune=native -O2 -pipe -fno-plt -fexceptions \ +# -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ +# -fstack-clash-protection -fcf-protection" + +CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" + +LDFLAGS="-fuse-ld=lld -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" + +LTOFLAGS="-flto=auto" + +RUSTFLAGS="-C opt-level=3" + +#-- Make Flags: change this for DistCC/SMP systems +MAKEFLAGS="-j$(nproc) -l$(nproc)" + +#-- Debugging flags +DEBUG_CFLAGS="-g" +DEBUG_CXXFLAGS="$DEBUG_CFLAGS" +DEBUG_RUSTFLAGS="-C debuginfo=3" + +######################################################################### +# BUILD ENVIRONMENT +######################################################################### +# +# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) +# A negated environment option will do the opposite of the comments below. +# +#-- distcc: Use the Distributed C/C++/ObjC compiler +#-- color: Colorize output messages +#-- ccache: Use ccache to cache compilation +#-- check: Run the check() function if present in the PKGBUILD +#-- sign: Generate PGP signature file +# +#BUILDENV=(!distcc color !ccache check !sign) +BUILDENV=(!distcc color ccache check !sign) +# +#-- If using DistCC, your MAKEFLAGS will also need modification. In addition, +#-- specify a space-delimited list of hosts running in the DistCC cluster. +#DISTCC_HOSTS="" +# +#-- Specify a directory for package building. +#BUILDDIR=/tmp/makepkg + +######################################################################### +# GLOBAL PACKAGE OPTIONS +# These are default values for the options=() settings +######################################################################### +# +# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) +# A negated option will do the opposite of the comments below. +# +#-- strip: Strip symbols from binaries/libraries +#-- docs: Save doc directories specified by DOC_DIRS +#-- libtool: Leave libtool (.la) files in packages +#-- staticlibs: Leave static library (.a) files in packages +#-- emptydirs: Leave empty directories in packages +#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip +#-- purge: Remove files specified by PURGE_TARGETS +#-- debug: Add debugging flags as specified in DEBUG_* variables +#-- lto: Add compile flags for building with link time optimization +# +OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto) + +#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2 +INTEGRITY_CHECK=(sha256) +#-- Options to be used when stripping binaries. See `man strip' for details. +STRIP_BINARIES="--strip-all" +#-- Options to be used when stripping shared libraries. See `man strip' for details. +STRIP_SHARED="--strip-unneeded" +#-- Options to be used when stripping static libraries. See `man strip' for details. +STRIP_STATIC="--strip-debug" +#-- Manual (man and info) directories to compress (if zipman is specified) +MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info}) +#-- Doc directories to remove (if !docs is specified) +DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc}) +#-- Files to be removed from all packages (if purge is specified) +PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod) +#-- Directory to store source code in for debug packages +DBGSRCDIR="/usr/src/debug" + +######################################################################### +# PACKAGE OUTPUT +######################################################################### +# +# Default: put built package and cached source in build directory +# +#-- Destination: specify a fixed directory where all packages will be placed +#PKGDEST=/home/packages +#-- Source cache: specify a fixed directory where source files will be cached +#SRCDEST=/home/sources +#-- Source packages: specify a fixed directory where all src packages will be placed +#SRCPKGDEST=/home/srcpackages +#-- Log files: specify a fixed directory where all log files will be placed +#LOGDEST=/home/makepkglogs +#-- Packager: name/email of the person or organization building packages +PACKAGER="Valeria Fadeeva " +#-- Specify a key to use for package signing +GPGKEY="BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8" + +######################################################################### +# COMPRESSION DEFAULTS +######################################################################### +# +COMPRESSGZ=(gzip -c -f -n) +COMPRESSBZ2=(bzip2 -c -f) +COMPRESSXZ=(xz -v -c -z - --threads=0 -9 -e) +COMPRESSZST=(zstd -v -c -z - --threads=0) +COMPRESSLRZ=(lrzip -q) +COMPRESSLZO=(lzop -q) +COMPRESSZ=(compress -c -f) +COMPRESSLZ4=(lz4 -q) +COMPRESSLZ=(lzip -c -f) + +######################################################################### +# EXTENSION DEFAULTS +######################################################################### +# +#PKGEXT='.pkg.tar.zst' +PKGEXT='.pkg.tar.xz' +SRCEXT='.src.tar.gz' + +######################################################################### +# OTHER +######################################################################### +# +#-- Command used to run pacman as root, instead of trying sudo and su +#PACMAN_AUTH=() diff --git a/3PARTY/3party/cachyos-kernel-manager/makepkg-clang.conf b/3PARTY/3party/cachyos-kernel-manager/makepkg-clang.conf new file mode 100644 index 0000000..a4074ba --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/makepkg-clang.conf @@ -0,0 +1,191 @@ +#!/hint/bash +# +# /etc/makepkg.conf +# + +######################################################################### +# SOURCE ACQUISITION +######################################################################### +# +#-- The download utilities that makepkg should use to acquire sources +# Format: 'protocol::agent' +DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u' + 'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' + 'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'rsync::/usr/bin/rsync --no-motd -z %u %o' + 'scp::/usr/bin/scp -C %u %o') + +# Other common tools: +# /usr/bin/snarf +# /usr/bin/lftpget -c +# /usr/bin/wget + +#-- The package required by makepkg to download VCS sources +# Format: 'protocol::package' +VCSCLIENTS=('bzr::breezy' + 'fossil::fossil' + 'git::git' + 'hg::mercurial' + 'svn::subversion') + +######################################################################### +# ARCHITECTURE, COMPILE FLAGS +######################################################################### +# +CARCH="x86_64" +CHOST="x86_64-pc-linux-gnu" + +export CC=clang +export CXX=clang++ +export LD=ld.lld +export CC_LD=lld +export CXX_LD=lld +export AR=llvm-ar +export NM=llvm-nm +export STRIP=llvm-strip +export OBJCOPY=llvm-objcopy +export OBJDUMP=llvm-objdump +export READELF=llvm-readelf +export RANLIB=llvm-ranlib +export HOSTCC=clang +export HOSTCXX=clang++ +export HOSTAR=llvm-ar +export HOSTLD=ld.lld +export LLVM=1 +export LLVM_IAS=1 + +#-- Compiler and Linker Flags +#CPPFLAGS="" + +CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection" + +#CFLAGS="-march=native -mtune=native -O2 -pipe -fno-plt -fexceptions \ +# -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ +# -fstack-clash-protection -fcf-protection" + +CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" + +LDFLAGS="-fuse-ld=lld -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" + +LTOFLAGS="-flto=auto" + +RUSTFLAGS="-C opt-level=3" + +#-- Make Flags: change this for DistCC/SMP systems +MAKEFLAGS="-j$(nproc) -l$(nproc)" + +#-- Debugging flags +DEBUG_CFLAGS="-g" +DEBUG_CXXFLAGS="$DEBUG_CFLAGS" +DEBUG_RUSTFLAGS="-C debuginfo=3" + +######################################################################### +# BUILD ENVIRONMENT +######################################################################### +# +# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) +# A negated environment option will do the opposite of the comments below. +# +#-- distcc: Use the Distributed C/C++/ObjC compiler +#-- color: Colorize output messages +#-- ccache: Use ccache to cache compilation +#-- check: Run the check() function if present in the PKGBUILD +#-- sign: Generate PGP signature file +# +#BUILDENV=(!distcc color !ccache check !sign) +BUILDENV=(!distcc color ccache check !sign) +# +#-- If using DistCC, your MAKEFLAGS will also need modification. In addition, +#-- specify a space-delimited list of hosts running in the DistCC cluster. +#DISTCC_HOSTS="" +# +#-- Specify a directory for package building. +#BUILDDIR=/tmp/makepkg + +######################################################################### +# GLOBAL PACKAGE OPTIONS +# These are default values for the options=() settings +######################################################################### +# +# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) +# A negated option will do the opposite of the comments below. +# +#-- strip: Strip symbols from binaries/libraries +#-- docs: Save doc directories specified by DOC_DIRS +#-- libtool: Leave libtool (.la) files in packages +#-- staticlibs: Leave static library (.a) files in packages +#-- emptydirs: Leave empty directories in packages +#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip +#-- purge: Remove files specified by PURGE_TARGETS +#-- debug: Add debugging flags as specified in DEBUG_* variables +#-- lto: Add compile flags for building with link time optimization +# +OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto) + +#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2 +INTEGRITY_CHECK=(sha256) +#-- Options to be used when stripping binaries. See `man strip' for details. +STRIP_BINARIES="--strip-all" +#-- Options to be used when stripping shared libraries. See `man strip' for details. +STRIP_SHARED="--strip-unneeded" +#-- Options to be used when stripping static libraries. See `man strip' for details. +STRIP_STATIC="--strip-debug" +#-- Manual (man and info) directories to compress (if zipman is specified) +MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info}) +#-- Doc directories to remove (if !docs is specified) +DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc}) +#-- Files to be removed from all packages (if purge is specified) +PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod) +#-- Directory to store source code in for debug packages +DBGSRCDIR="/usr/src/debug" + +######################################################################### +# PACKAGE OUTPUT +######################################################################### +# +# Default: put built package and cached source in build directory +# +#-- Destination: specify a fixed directory where all packages will be placed +#PKGDEST=/home/packages +#-- Source cache: specify a fixed directory where source files will be cached +#SRCDEST=/home/sources +#-- Source packages: specify a fixed directory where all src packages will be placed +#SRCPKGDEST=/home/srcpackages +#-- Log files: specify a fixed directory where all log files will be placed +#LOGDEST=/home/makepkglogs +#-- Packager: name/email of the person or organization building packages +PACKAGER="Valeria Fadeeva " +#-- Specify a key to use for package signing +GPGKEY="BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8" + +######################################################################### +# COMPRESSION DEFAULTS +######################################################################### +# +COMPRESSGZ=(gzip -c -f -n) +COMPRESSBZ2=(bzip2 -c -f) +COMPRESSXZ=(xz -v -c -z - --threads=0 -9 -e) +COMPRESSZST=(zstd -v -c -z - --threads=0) +COMPRESSLRZ=(lrzip -q) +COMPRESSLZO=(lzop -q) +COMPRESSZ=(compress -c -f) +COMPRESSLZ4=(lz4 -q) +COMPRESSLZ=(lzip -c -f) + +######################################################################### +# EXTENSION DEFAULTS +######################################################################### +# +#PKGEXT='.pkg.tar.zst' +PKGEXT='.pkg.tar.xz' +SRCEXT='.src.tar.gz' + +######################################################################### +# OTHER +######################################################################### +# +#-- Command used to run pacman as root, instead of trying sudo and su +#PACMAN_AUTH=() diff --git a/3PARTY/3party/cachyos-kernel-manager/makepkg-gcc-without-lto.conf b/3PARTY/3party/cachyos-kernel-manager/makepkg-gcc-without-lto.conf new file mode 100644 index 0000000..a0bfdd6 --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/makepkg-gcc-without-lto.conf @@ -0,0 +1,172 @@ +#!/hint/bash +# +# /etc/makepkg.conf +# + +######################################################################### +# SOURCE ACQUISITION +######################################################################### +# +#-- The download utilities that makepkg should use to acquire sources +# Format: 'protocol::agent' +DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u' + 'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' + 'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'rsync::/usr/bin/rsync --no-motd -z %u %o' + 'scp::/usr/bin/scp -C %u %o') + +# Other common tools: +# /usr/bin/snarf +# /usr/bin/lftpget -c +# /usr/bin/wget + +#-- The package required by makepkg to download VCS sources +# Format: 'protocol::package' +VCSCLIENTS=('bzr::breezy' + 'fossil::fossil' + 'git::git' + 'hg::mercurial' + 'svn::subversion') + +######################################################################### +# ARCHITECTURE, COMPILE FLAGS +######################################################################### +# +CARCH="x86_64" +CHOST="x86_64-pc-linux-gnu" + +#-- Compiler and Linker Flags +#CPPFLAGS="" + +CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection" + +#CFLAGS="-march=native -mtune=native -O2 -pipe -fno-plt -fexceptions \ +# -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ +# -fstack-clash-protection -fcf-protection" + +CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" + +LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" + +LTOFLAGS="-flto=auto" + +RUSTFLAGS="-C opt-level=3" + +#-- Make Flags: change this for DistCC/SMP systems +MAKEFLAGS="-j$(nproc) -l$(nproc)" + +#-- Debugging flags +DEBUG_CFLAGS="-g" +DEBUG_CXXFLAGS="$DEBUG_CFLAGS" +DEBUG_RUSTFLAGS="-C debuginfo=3" + +######################################################################### +# BUILD ENVIRONMENT +######################################################################### +# +# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) +# A negated environment option will do the opposite of the comments below. +# +#-- distcc: Use the Distributed C/C++/ObjC compiler +#-- color: Colorize output messages +#-- ccache: Use ccache to cache compilation +#-- check: Run the check() function if present in the PKGBUILD +#-- sign: Generate PGP signature file +# +#BUILDENV=(!distcc color !ccache check !sign) +BUILDENV=(!distcc color ccache check !sign) +# +#-- If using DistCC, your MAKEFLAGS will also need modification. In addition, +#-- specify a space-delimited list of hosts running in the DistCC cluster. +#DISTCC_HOSTS="" +# +#-- Specify a directory for package building. +#BUILDDIR=/tmp/makepkg + +######################################################################### +# GLOBAL PACKAGE OPTIONS +# These are default values for the options=() settings +######################################################################### +# +# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) +# A negated option will do the opposite of the comments below. +# +#-- strip: Strip symbols from binaries/libraries +#-- docs: Save doc directories specified by DOC_DIRS +#-- libtool: Leave libtool (.la) files in packages +#-- staticlibs: Leave static library (.a) files in packages +#-- emptydirs: Leave empty directories in packages +#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip +#-- purge: Remove files specified by PURGE_TARGETS +#-- debug: Add debugging flags as specified in DEBUG_* variables +#-- lto: Add compile flags for building with link time optimization +# +OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto) + +#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2 +INTEGRITY_CHECK=(sha256) +#-- Options to be used when stripping binaries. See `man strip' for details. +STRIP_BINARIES="--strip-all" +#-- Options to be used when stripping shared libraries. See `man strip' for details. +STRIP_SHARED="--strip-unneeded" +#-- Options to be used when stripping static libraries. See `man strip' for details. +STRIP_STATIC="--strip-debug" +#-- Manual (man and info) directories to compress (if zipman is specified) +MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info}) +#-- Doc directories to remove (if !docs is specified) +DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc}) +#-- Files to be removed from all packages (if purge is specified) +PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod) +#-- Directory to store source code in for debug packages +DBGSRCDIR="/usr/src/debug" + +######################################################################### +# PACKAGE OUTPUT +######################################################################### +# +# Default: put built package and cached source in build directory +# +#-- Destination: specify a fixed directory where all packages will be placed +#PKGDEST=/home/packages +#-- Source cache: specify a fixed directory where source files will be cached +#SRCDEST=/home/sources +#-- Source packages: specify a fixed directory where all src packages will be placed +#SRCPKGDEST=/home/srcpackages +#-- Log files: specify a fixed directory where all log files will be placed +#LOGDEST=/home/makepkglogs +#-- Packager: name/email of the person or organization building packages +PACKAGER="Valeria Fadeeva " +#-- Specify a key to use for package signing +GPGKEY="BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8" + +######################################################################### +# COMPRESSION DEFAULTS +######################################################################### +# +COMPRESSGZ=(gzip -c -f -n) +COMPRESSBZ2=(bzip2 -c -f) +COMPRESSXZ=(xz -v -c -z - --threads=0 -9 -e) +COMPRESSZST=(zstd -v -c -z - --threads=0) +COMPRESSLRZ=(lrzip -q) +COMPRESSLZO=(lzop -q) +COMPRESSZ=(compress -c -f) +COMPRESSLZ4=(lz4 -q) +COMPRESSLZ=(lzip -c -f) + +######################################################################### +# EXTENSION DEFAULTS +######################################################################### +# +#PKGEXT='.pkg.tar.zst' +PKGEXT='.pkg.tar.xz' +SRCEXT='.src.tar.gz' + +######################################################################### +# OTHER +######################################################################### +# +#-- Command used to run pacman as root, instead of trying sudo and su +#PACMAN_AUTH=() diff --git a/3PARTY/3party/cachyos-kernel-manager/makepkg-gcc.conf b/3PARTY/3party/cachyos-kernel-manager/makepkg-gcc.conf new file mode 100644 index 0000000..b45ff5a --- /dev/null +++ b/3PARTY/3party/cachyos-kernel-manager/makepkg-gcc.conf @@ -0,0 +1,172 @@ +#!/hint/bash +# +# /etc/makepkg.conf +# + +######################################################################### +# SOURCE ACQUISITION +######################################################################### +# +#-- The download utilities that makepkg should use to acquire sources +# Format: 'protocol::agent' +DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u' + 'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' + 'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'rsync::/usr/bin/rsync --no-motd -z %u %o' + 'scp::/usr/bin/scp -C %u %o') + +# Other common tools: +# /usr/bin/snarf +# /usr/bin/lftpget -c +# /usr/bin/wget + +#-- The package required by makepkg to download VCS sources +# Format: 'protocol::package' +VCSCLIENTS=('bzr::breezy' + 'fossil::fossil' + 'git::git' + 'hg::mercurial' + 'svn::subversion') + +######################################################################### +# ARCHITECTURE, COMPILE FLAGS +######################################################################### +# +CARCH="x86_64" +CHOST="x86_64-pc-linux-gnu" + +#-- Compiler and Linker Flags +#CPPFLAGS="" + +CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection" + +#CFLAGS="-march=native -mtune=native -O2 -pipe -fno-plt -fexceptions \ +# -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ +# -fstack-clash-protection -fcf-protection" + +CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" + +LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" + +LTOFLAGS="-flto=auto" + +RUSTFLAGS="-C opt-level=3" + +#-- Make Flags: change this for DistCC/SMP systems +MAKEFLAGS="-j$(nproc) -l$(nproc)" + +#-- Debugging flags +DEBUG_CFLAGS="-g" +DEBUG_CXXFLAGS="$DEBUG_CFLAGS" +DEBUG_RUSTFLAGS="-C debuginfo=3" + +######################################################################### +# BUILD ENVIRONMENT +######################################################################### +# +# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) +# A negated environment option will do the opposite of the comments below. +# +#-- distcc: Use the Distributed C/C++/ObjC compiler +#-- color: Colorize output messages +#-- ccache: Use ccache to cache compilation +#-- check: Run the check() function if present in the PKGBUILD +#-- sign: Generate PGP signature file +# +#BUILDENV=(!distcc color !ccache check !sign) +BUILDENV=(!distcc color ccache check !sign) +# +#-- If using DistCC, your MAKEFLAGS will also need modification. In addition, +#-- specify a space-delimited list of hosts running in the DistCC cluster. +#DISTCC_HOSTS="" +# +#-- Specify a directory for package building. +#BUILDDIR=/tmp/makepkg + +######################################################################### +# GLOBAL PACKAGE OPTIONS +# These are default values for the options=() settings +######################################################################### +# +# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) +# A negated option will do the opposite of the comments below. +# +#-- strip: Strip symbols from binaries/libraries +#-- docs: Save doc directories specified by DOC_DIRS +#-- libtool: Leave libtool (.la) files in packages +#-- staticlibs: Leave static library (.a) files in packages +#-- emptydirs: Leave empty directories in packages +#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip +#-- purge: Remove files specified by PURGE_TARGETS +#-- debug: Add debugging flags as specified in DEBUG_* variables +#-- lto: Add compile flags for building with link time optimization +# +OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto) + +#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2 +INTEGRITY_CHECK=(sha256) +#-- Options to be used when stripping binaries. See `man strip' for details. +STRIP_BINARIES="--strip-all" +#-- Options to be used when stripping shared libraries. See `man strip' for details. +STRIP_SHARED="--strip-unneeded" +#-- Options to be used when stripping static libraries. See `man strip' for details. +STRIP_STATIC="--strip-debug" +#-- Manual (man and info) directories to compress (if zipman is specified) +MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info}) +#-- Doc directories to remove (if !docs is specified) +DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc}) +#-- Files to be removed from all packages (if purge is specified) +PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod) +#-- Directory to store source code in for debug packages +DBGSRCDIR="/usr/src/debug" + +######################################################################### +# PACKAGE OUTPUT +######################################################################### +# +# Default: put built package and cached source in build directory +# +#-- Destination: specify a fixed directory where all packages will be placed +#PKGDEST=/home/packages +#-- Source cache: specify a fixed directory where source files will be cached +#SRCDEST=/home/sources +#-- Source packages: specify a fixed directory where all src packages will be placed +#SRCPKGDEST=/home/srcpackages +#-- Log files: specify a fixed directory where all log files will be placed +#LOGDEST=/home/makepkglogs +#-- Packager: name/email of the person or organization building packages +PACKAGER="Valeria Fadeeva " +#-- Specify a key to use for package signing +GPGKEY="BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8" + +######################################################################### +# COMPRESSION DEFAULTS +######################################################################### +# +COMPRESSGZ=(gzip -c -f -n) +COMPRESSBZ2=(bzip2 -c -f) +COMPRESSXZ=(xz -v -c -z - --threads=0 -9 -e) +COMPRESSZST=(zstd -v -c -z - --threads=0) +COMPRESSLRZ=(lrzip -q) +COMPRESSLZO=(lzop -q) +COMPRESSZ=(compress -c -f) +COMPRESSLZ4=(lz4 -q) +COMPRESSLZ=(lzip -c -f) + +######################################################################### +# EXTENSION DEFAULTS +######################################################################### +# +#PKGEXT='.pkg.tar.zst' +PKGEXT='.pkg.tar.xz' +SRCEXT='.src.tar.gz' + +######################################################################### +# OTHER +######################################################################### +# +#-- Command used to run pacman as root, instead of trying sudo and su +#PACMAN_AUTH=() diff --git a/3PARTY/3party/cachyos-packageinstaller/.SRCINFO b/3PARTY/3party/cachyos-packageinstaller/.SRCINFO new file mode 100644 index 0000000..4481a6a --- /dev/null +++ b/3PARTY/3party/cachyos-packageinstaller/.SRCINFO @@ -0,0 +1,26 @@ +# Generated by makepkg 6.0.2 +# Fri Aug 11 22:06:59 UTC 2023 +pkgbase = cachyos-packageinstaller + pkgdesc = Simple Software Application Package Installer for CachyOS which helps setting up & installing applications + pkgver = 1.1.0 + pkgrel = 1 + url = https://github.com/cachyos/packageinstaller + arch = aarch64 + arch = x86_64 + arch = x86_64_v3 + groups = cachyos + license = GPLv3 + makedepends = cmake + makedepends = ninja + makedepends = git + makedepends = polkit-qt5 + makedepends = qt5-tools + depends = qt5-base + depends = polkit + provides = cachyos-packageinstaller + conflicts = cachyos-packageinstaller + options = strip + source = packageinstaller-1.1.0.tar.gz::https://github.com/cachyos/packageinstaller/archive/v1.1.0.tar.gz + sha256sums = 5af2e10b7889b51a77ae5e578d20f8fe0eb2f1d9017746102c4288a3f991a399 + +pkgname = cachyos-packageinstaller diff --git a/3PARTY/3party/cachyos-packageinstaller/00_make.sh b/3PARTY/3party/cachyos-packageinstaller/00_make.sh new file mode 100755 index 0000000..7e7134b --- /dev/null +++ b/3PARTY/3party/cachyos-packageinstaller/00_make.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +status=$? + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + + process=$(ps x | grep konsole | grep $0 | awk '{print $1}') + if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') + fi +fi diff --git a/3PARTY/3party/cachyos-packageinstaller/01_sign.sh b/3PARTY/3party/cachyos-packageinstaller/01_sign.sh new file mode 100755 index 0000000..2ce3206 --- /dev/null +++ b/3PARTY/3party/cachyos-packageinstaller/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" +done + +for i in *.pkg.tar.xz; +do + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" +done + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/3PARTY/3party/cachyos-packageinstaller/PKGBUILD b/3PARTY/3party/cachyos-packageinstaller/PKGBUILD new file mode 100644 index 0000000..2878bd8 --- /dev/null +++ b/3PARTY/3party/cachyos-packageinstaller/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Vladislav Nepogodin + +pkgname=cachyos-packageinstaller +pkgver=1.1.0 +pkgrel=1 +pkgdesc="Simple Software Application Package Installer for CachyOS which helps setting up & installing applications" +arch=(aarch64 x86_64 x86_64_v3) +url="https://github.com/cachyos/packageinstaller" +license=(GPLv3) +depends=('qt5-base' 'polkit') +makedepends=('cmake' 'ninja' 'git' 'polkit-qt5' 'qt5-tools') +groups=('cachyos') +source=("packageinstaller-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('5af2e10b7889b51a77ae5e578d20f8fe0eb2f1d9017746102c4288a3f991a399') +provides=('cachyos-packageinstaller') +conflicts=('cachyos-packageinstaller') +options=(strip) + +build() { + cd ${srcdir}/packageinstaller-${pkgver} + + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -S . -Bbuild \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build --parallel $_cpuCount +} + +package() { + cd ${srcdir}/packageinstaller-${pkgver} + DESTDIR="${pkgdir}" cmake --build build --target install + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set sw=2 sts=2 et: diff --git a/3PARTY/3party/cachyos-sysctl-manager/00_make.sh b/3PARTY/3party/cachyos-sysctl-manager/00_make.sh new file mode 100755 index 0000000..7e7134b --- /dev/null +++ b/3PARTY/3party/cachyos-sysctl-manager/00_make.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +status=$? + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + + process=$(ps x | grep konsole | grep $0 | awk '{print $1}') + if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') + fi +fi diff --git a/3PARTY/3party/cachyos-sysctl-manager/01_sign.sh b/3PARTY/3party/cachyos-sysctl-manager/01_sign.sh new file mode 100755 index 0000000..2ce3206 --- /dev/null +++ b/3PARTY/3party/cachyos-sysctl-manager/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" +done + +for i in *.pkg.tar.xz; +do + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" +done + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/3PARTY/3party/cachyos-sysctl-manager/PKGBUILD b/3PARTY/3party/cachyos-sysctl-manager/PKGBUILD new file mode 100644 index 0000000..e5f2c20 --- /dev/null +++ b/3PARTY/3party/cachyos-sysctl-manager/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Vladislav Nepogodin + +pkgname=cachyos-sysctl-manager +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Manage linux kernel sysctl options" +arch=(aarch64 x86_64 x86_64_v3) +url="https://github.com/cachyos/sysctl-manager" +license=(GPLv3) +depends=('qt5-base' 'polkit-qt5') +makedepends=('cmake' 'ninja' 'git') +source=("${pkgname}::git+$url.git") +sha512sums=('SKIP') +provides=('cachyos-sysctl-manager') +conflicts=('cachyos-sysctl-manager') +options=(strip) + +pkgver() { + cd "${srcdir}/${pkgname}" +# git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/\1/' | cut -d"-" -f1 +} + +build() { + cd "${srcdir}/${pkgname}" + + CFLAGS=${CFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS} + CXXFLAGS=${CXXFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS} + + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -S . -Bbuild \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build --parallel $_cpuCount +} + +package() { + cd "${srcdir}/${pkgname}" + DESTDIR="${pkgdir}" cmake --build build --target install + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname/-git}/LICENSE" +} + +# vim:set sw=2 sts=2 et: diff --git a/3PARTY/3party/clean.sh b/3PARTY/3party/clean.sh new file mode 100755 index 0000000..98171b5 --- /dev/null +++ b/3PARTY/3party/clean.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-3party/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/3PARTY/3party/freeoffice b/3PARTY/3party/freeoffice new file mode 160000 index 0000000..0792c7d --- /dev/null +++ b/3PARTY/3party/freeoffice @@ -0,0 +1 @@ +Subproject commit 0792c7d6226795517e29009ea0624fc7598ae21b diff --git a/3PARTY/3party/ftl-sdk b/3PARTY/3party/ftl-sdk new file mode 160000 index 0000000..af654bd --- /dev/null +++ b/3PARTY/3party/ftl-sdk @@ -0,0 +1 @@ +Subproject commit af654bdb09a8243ddd2aff65bf926ba60e5b3224 diff --git a/3PARTY/3party/git_pull.sh b/3PARTY/3party/git_pull.sh new file mode 100755 index 0000000..fd93eca --- /dev/null +++ b/3PARTY/3party/git_pull.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +i=0 +for package_dir in $(find . -mindepth 1 -maxdepth 1 -type d) +do + i=$(( $i + 1 )) + echo "$i $CWD/$package_dir" + cd $CWD/$package_dir + git pull + cd $CWD + echo "" +done + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/3PARTY/3party/gstreamer-meta b/3PARTY/3party/gstreamer-meta new file mode 160000 index 0000000..26decb6 --- /dev/null +++ b/3PARTY/3party/gstreamer-meta @@ -0,0 +1 @@ +Subproject commit 26decb613887afe9c86d46f3a81bb6826e705362 diff --git a/3PARTY/3party/icu69-bin b/3PARTY/3party/icu69-bin new file mode 160000 index 0000000..eaecf69 --- /dev/null +++ b/3PARTY/3party/icu69-bin @@ -0,0 +1 @@ +Subproject commit eaecf69494ad6c97afcfa6b8f4ed2726c76a7dea diff --git a/3PARTY/3party/input-devices-support b/3PARTY/3party/input-devices-support new file mode 160000 index 0000000..d70fad3 --- /dev/null +++ b/3PARTY/3party/input-devices-support @@ -0,0 +1 @@ +Subproject commit d70fad31c18929f3f48ba545ac274701461f68e3 diff --git a/3PARTY/3party/librist b/3PARTY/3party/librist new file mode 160000 index 0000000..b6616f8 --- /dev/null +++ b/3PARTY/3party/librist @@ -0,0 +1 @@ +Subproject commit b6616f8f35fced6120321cf1432ac9be5018a390 diff --git a/3PARTY/3party/mailspring b/3PARTY/3party/mailspring new file mode 160000 index 0000000..2fbbf81 --- /dev/null +++ b/3PARTY/3party/mailspring @@ -0,0 +1 @@ +Subproject commit 2fbbf81b8849e7eedd23a04057cd4f8331c17c66 diff --git a/3PARTY/3party/make.sh b/3PARTY/3party/make.sh new file mode 100755 index 0000000..2791581 --- /dev/null +++ b/3PARTY/3party/make.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-3party/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f | sort) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + pkg_exist=$(find "$full_path" -type f -newermt "$(date '+%Y-%m-%d 00:00')" -name "*.pkg.tar.xz") + if [ "$pkg_exist" == "" ]; then + make_file=$(find . -mindepth 1 -maxdepth 1 -name "*make*\.sh" -type f) + if [ -f "$make_file" ]; then + echo "bash $make_file" + bash "$make_file" + else + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + unset make_file + + pkg_file=$(find . -mindepth 1 -maxdepth 1 -name "*.pkg.tar.xz" -type f) + sig_file="${pkg_file}.sig" + + if [ ! -f "$sig_file" ]; then + for i in *.pkg.tar.xz + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/3PARTY/3party/media-downloader b/3PARTY/3party/media-downloader new file mode 160000 index 0000000..d134db0 --- /dev/null +++ b/3PARTY/3party/media-downloader @@ -0,0 +1 @@ +Subproject commit d134db032cbee90d545ca1e4b507f4b267bfb693 diff --git a/3PARTY/3party/move_to_repo.sh b/3PARTY/3party/move_to_repo.sh new file mode 100755 index 0000000..896b2db --- /dev/null +++ b/3PARTY/3party/move_to_repo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-3party/x86_64/" + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst.sig" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -delete + + +echo "Ready" +sleep 5 + +process=$(ps x | grep konsole | grep $0 | awk '{print $1}') +if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') +fi diff --git a/3PARTY/3party/noto-color-emoji-fontconfig b/3PARTY/3party/noto-color-emoji-fontconfig new file mode 160000 index 0000000..f0677d4 --- /dev/null +++ b/3PARTY/3party/noto-color-emoji-fontconfig @@ -0,0 +1 @@ +Subproject commit f0677d458d56acf9f7665bb1e82b90ba6a497b06 diff --git a/3PARTY/3party/outline-client-appimage b/3PARTY/3party/outline-client-appimage new file mode 160000 index 0000000..c3e08c2 --- /dev/null +++ b/3PARTY/3party/outline-client-appimage @@ -0,0 +1 @@ +Subproject commit c3e08c214ffaf830f6f7ebb5416a8ef9cc968482 diff --git a/3PARTY/3party/pipewire-support b/3PARTY/3party/pipewire-support new file mode 160000 index 0000000..52bf736 --- /dev/null +++ b/3PARTY/3party/pipewire-support @@ -0,0 +1 @@ +Subproject commit 52bf736ed2632303e44af97edb8c0b7e1b88fca4 diff --git a/3PARTY/3party/portainer-bin b/3PARTY/3party/portainer-bin new file mode 160000 index 0000000..38c29aa --- /dev/null +++ b/3PARTY/3party/portainer-bin @@ -0,0 +1 @@ +Subproject commit 38c29aaaf85cecdcfd222f2cea8345435371db51 diff --git a/3PARTY/3party/printer-support b/3PARTY/3party/printer-support new file mode 160000 index 0000000..a04201d --- /dev/null +++ b/3PARTY/3party/printer-support @@ -0,0 +1 @@ +Subproject commit a04201d28847d7effab68c69d1f4e323d72537c7 diff --git a/3PARTY/3party/pwd.txt b/3PARTY/3party/pwd.txt new file mode 100644 index 0000000..588c557 --- /dev/null +++ b/3PARTY/3party/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD/3PARTY/3party \ No newline at end of file diff --git a/3PARTY/3party/python-flatbencode b/3PARTY/3party/python-flatbencode new file mode 160000 index 0000000..d1c4cc3 --- /dev/null +++ b/3PARTY/3party/python-flatbencode @@ -0,0 +1 @@ +Subproject commit d1c4cc3366706e1e28b9a056d368d65c34534759 diff --git a/3PARTY/3party/python-torf b/3PARTY/3party/python-torf new file mode 160000 index 0000000..a08473d --- /dev/null +++ b/3PARTY/3party/python-torf @@ -0,0 +1 @@ +Subproject commit a08473d3ee2a9a4fe0ac45dab6b78c4afafb6a55 diff --git a/3PARTY/3party/samba-support b/3PARTY/3party/samba-support new file mode 160000 index 0000000..12af7bc --- /dev/null +++ b/3PARTY/3party/samba-support @@ -0,0 +1 @@ +Subproject commit 12af7bc65342fabb321f5b2924e57ff2e73aa948 diff --git a/3PARTY/3party/scanner-support b/3PARTY/3party/scanner-support new file mode 160000 index 0000000..8b77fb5 --- /dev/null +++ b/3PARTY/3party/scanner-support @@ -0,0 +1 @@ +Subproject commit 8b77fb59be9de1660c9b296f30d7beeb067421c6 diff --git a/3PARTY/3party/shadowsocks-electron-bin b/3PARTY/3party/shadowsocks-electron-bin new file mode 160000 index 0000000..972bff9 --- /dev/null +++ b/3PARTY/3party/shadowsocks-electron-bin @@ -0,0 +1 @@ +Subproject commit 972bff9c5d20edd76d8d8ef9fa612aa57611b4b3 diff --git a/3PARTY/3party/shadowsocks-rust b/3PARTY/3party/shadowsocks-rust new file mode 160000 index 0000000..2e3ddce --- /dev/null +++ b/3PARTY/3party/shadowsocks-rust @@ -0,0 +1 @@ +Subproject commit 2e3ddce252989ffacdcc1dae846e9a745cb05db1 diff --git a/3PARTY/3party/ss-face b/3PARTY/3party/ss-face new file mode 160000 index 0000000..72f92b9 --- /dev/null +++ b/3PARTY/3party/ss-face @@ -0,0 +1 @@ +Subproject commit 72f92b9113b8286d63c5b82ff8c05a9f194eb245 diff --git a/3PARTY/3party/torf-cli b/3PARTY/3party/torf-cli new file mode 160000 index 0000000..e153426 --- /dev/null +++ b/3PARTY/3party/torf-cli @@ -0,0 +1 @@ +Subproject commit e153426ccb8206f4a65373b11dd40ed3a7bba41e diff --git a/3PARTY/3party/ttf-ms-fonts b/3PARTY/3party/ttf-ms-fonts new file mode 160000 index 0000000..4b3621d --- /dev/null +++ b/3PARTY/3party/ttf-ms-fonts @@ -0,0 +1 @@ +Subproject commit 4b3621d776c7090b7d42ff53e1aa0170e16477e5 diff --git a/3PARTY/3party/ttf-twemoji b/3PARTY/3party/ttf-twemoji new file mode 160000 index 0000000..a83b86c --- /dev/null +++ b/3PARTY/3party/ttf-twemoji @@ -0,0 +1 @@ +Subproject commit a83b86c2bb188efef06cea0675fcaab7fd8dee04 diff --git a/3PARTY/3party/ventoy-bin b/3PARTY/3party/ventoy-bin new file mode 160000 index 0000000..41f096b --- /dev/null +++ b/3PARTY/3party/ventoy-bin @@ -0,0 +1 @@ +Subproject commit 41f096b8a96ed09b9e1c9d26d90879c4c4d45160 diff --git a/3PARTY/3party/whalebird b/3PARTY/3party/whalebird new file mode 160000 index 0000000..0737798 --- /dev/null +++ b/3PARTY/3party/whalebird @@ -0,0 +1 @@ +Subproject commit 0737798f5ebb2fd63ab8d96356b227b7e5b747dc diff --git a/3PARTY/3party/yandex-disk b/3PARTY/3party/yandex-disk new file mode 160000 index 0000000..aab250f --- /dev/null +++ b/3PARTY/3party/yandex-disk @@ -0,0 +1 @@ +Subproject commit aab250f513ab024d4d535a34959f37b425a212dc diff --git a/3PARTY/3party/yandex-disk-indicator b/3PARTY/3party/yandex-disk-indicator new file mode 160000 index 0000000..df08743 --- /dev/null +++ b/3PARTY/3party/yandex-disk-indicator @@ -0,0 +1 @@ +Subproject commit df087438f846de950ba59177bca2f03061901f4d diff --git a/3PARTY/One_per_month/linux-xanmod-anbox b/3PARTY/One_per_month/linux-xanmod-anbox new file mode 160000 index 0000000..bddd72a --- /dev/null +++ b/3PARTY/One_per_month/linux-xanmod-anbox @@ -0,0 +1 @@ +Subproject commit bddd72a7ab42c9b42d5756082d9120954bb67063 diff --git a/3PARTY/One_per_month/make.sh b/3PARTY/One_per_month/make.sh new file mode 100755 index 0000000..58c3e6e --- /dev/null +++ b/3PARTY/One_per_month/make.sh @@ -0,0 +1,67 @@ +#!/bin/bash + +find . -type f -name "*.xz" -delete +find . -type f -name "*.zst" -delete +find . -type f -name "*.sig" -delete + +REPO="/data/github/active/Melawy/REPO/melawy-3party/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +for package_dir in $(find . -mindepth 1 -maxdepth 1 -type d) +do + cd $CWD/$package_dir + + bash 00_git_pull.sh + bash 01_patch.sh + bash 02_make.sh + + for i in *.pkg.tar.zst; + do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + + package_file=$(ls -1 | grep -v "pkg.tar.zst.sig" | grep "pkg.tar.zst" | head -n 1) + if [ -f "$CWD/$package_dir/$package_file" ]; then + mv -v $CWD/$package_dir/*.pkg.tar.zst $REPO/ + fi + + package_file=$(ls -1 | grep -v "pkg.tar.xz.sig" | grep "pkg.tar.xz" | head -n 1) + if [ -f "$CWD/$package_dir/$package_file" ]; then + mv -v $CWD/$package_dir/*.pkg.tar.xz $REPO/ + fi + + package_file=$(ls -1 | grep "pkg.tar.xz.sig" | head -n 1) + if [ -f "$CWD/$package_dir/$package_file" ]; then + mv -v $CWD/$package_dir/*.pkg.tar.xz.sig $REPO/ + fi + + package_file=$(ls -1 | grep "pkg.tar.zst.sig" | head -n 1) + if [ -f "$CWD/$package_dir/$package_file" ]; then + mv -v $CWD/$package_dir/*.pkg.tar.zst.sig $REPO/ + fi + + cd $CWD +done + +echo "melawy" | beep -f 200 -l 250 -d 100 -r 1 -n -s +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/3PARTY/One_per_month/pwd.txt b/3PARTY/One_per_month/pwd.txt new file mode 100644 index 0000000..e430311 --- /dev/null +++ b/3PARTY/One_per_month/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD/3PARTY/One_per_month \ No newline at end of file diff --git a/3PARTY/WhiteSur-firefox-theme b/3PARTY/WhiteSur-firefox-theme new file mode 160000 index 0000000..a6a08d0 --- /dev/null +++ b/3PARTY/WhiteSur-firefox-theme @@ -0,0 +1 @@ +Subproject commit a6a08d0cdc47e2593b4c91e231adba38cc463770 diff --git a/3PARTY/catppuccin/catppuccin-cursors-frappe b/3PARTY/catppuccin/catppuccin-cursors-frappe new file mode 160000 index 0000000..e6565e3 --- /dev/null +++ b/3PARTY/catppuccin/catppuccin-cursors-frappe @@ -0,0 +1 @@ +Subproject commit e6565e36a41710bca8fb536f041d274cf4ce2d94 diff --git a/3PARTY/catppuccin/catppuccin-cursors-latte b/3PARTY/catppuccin/catppuccin-cursors-latte new file mode 160000 index 0000000..41edc14 --- /dev/null +++ b/3PARTY/catppuccin/catppuccin-cursors-latte @@ -0,0 +1 @@ +Subproject commit 41edc14c995eb499caa8c224052ab832fa596946 diff --git a/3PARTY/catppuccin/catppuccin-cursors-macchiato b/3PARTY/catppuccin/catppuccin-cursors-macchiato new file mode 160000 index 0000000..12efbdc --- /dev/null +++ b/3PARTY/catppuccin/catppuccin-cursors-macchiato @@ -0,0 +1 @@ +Subproject commit 12efbdc4f9372c92fe39b9d56f6a5c88ddd31872 diff --git a/3PARTY/catppuccin/catppuccin-cursors-mocha b/3PARTY/catppuccin/catppuccin-cursors-mocha new file mode 160000 index 0000000..a89b326 --- /dev/null +++ b/3PARTY/catppuccin/catppuccin-cursors-mocha @@ -0,0 +1 @@ +Subproject commit a89b3266d20cc438851e8c6503f2222ad0cf0d45 diff --git a/3PARTY/catppuccin/catppuccin-gtk-theme-frappe b/3PARTY/catppuccin/catppuccin-gtk-theme-frappe new file mode 160000 index 0000000..7a2851d --- /dev/null +++ b/3PARTY/catppuccin/catppuccin-gtk-theme-frappe @@ -0,0 +1 @@ +Subproject commit 7a2851d70445038a7259db8609080a97bf798b0d diff --git a/3PARTY/catppuccin/catppuccin-gtk-theme-latte b/3PARTY/catppuccin/catppuccin-gtk-theme-latte new file mode 160000 index 0000000..358b885 --- /dev/null +++ b/3PARTY/catppuccin/catppuccin-gtk-theme-latte @@ -0,0 +1 @@ +Subproject commit 358b8851759603ac465e3ed90c2f8d0f7c0021aa diff --git a/3PARTY/catppuccin/catppuccin-gtk-theme-macchiato b/3PARTY/catppuccin/catppuccin-gtk-theme-macchiato new file mode 160000 index 0000000..0c765bd --- /dev/null +++ b/3PARTY/catppuccin/catppuccin-gtk-theme-macchiato @@ -0,0 +1 @@ +Subproject commit 0c765bdc1981d1ff755a9bada990712978afdd1b diff --git a/3PARTY/catppuccin/catppuccin-gtk-theme-mocha b/3PARTY/catppuccin/catppuccin-gtk-theme-mocha new file mode 160000 index 0000000..b7e5b95 --- /dev/null +++ b/3PARTY/catppuccin/catppuccin-gtk-theme-mocha @@ -0,0 +1 @@ +Subproject commit b7e5b95e533462701516ea592ec86da099f7f349 diff --git a/3PARTY/catppuccin/catppuccin-konsole-theme b/3PARTY/catppuccin/catppuccin-konsole-theme new file mode 160000 index 0000000..dea74fb --- /dev/null +++ b/3PARTY/catppuccin/catppuccin-konsole-theme @@ -0,0 +1 @@ +Subproject commit dea74fb5b2a9850c8a35dad830b149575ade6daa diff --git a/3PARTY/catppuccin/clean.sh b/3PARTY/catppuccin/clean.sh new file mode 100755 index 0000000..98171b5 --- /dev/null +++ b/3PARTY/catppuccin/clean.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-3party/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/3PARTY/catppuccin/git_pull.sh b/3PARTY/catppuccin/git_pull.sh new file mode 100755 index 0000000..fd93eca --- /dev/null +++ b/3PARTY/catppuccin/git_pull.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +i=0 +for package_dir in $(find . -mindepth 1 -maxdepth 1 -type d) +do + i=$(( $i + 1 )) + echo "$i $CWD/$package_dir" + cd $CWD/$package_dir + git pull + cd $CWD + echo "" +done + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/3PARTY/catppuccin/kvantum-theme-catppuccin b/3PARTY/catppuccin/kvantum-theme-catppuccin new file mode 160000 index 0000000..62aa645 --- /dev/null +++ b/3PARTY/catppuccin/kvantum-theme-catppuccin @@ -0,0 +1 @@ +Subproject commit 62aa64569cd681ebdf67d47c5ecd1501ace13f99 diff --git a/3PARTY/catppuccin/make.sh b/3PARTY/catppuccin/make.sh new file mode 100755 index 0000000..aaa1055 --- /dev/null +++ b/3PARTY/catppuccin/make.sh @@ -0,0 +1,89 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-3party/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + make_file=$(find . -mindepth 1 -maxdepth 1 -name "*make*\.sh" -type f) + if [ -f "$make_file" ]; then + echo "bash $make_file" + bash "$make_file" + else + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + unset make_file + + pkg_file=$(find . -mindepth 1 -maxdepth 1 -name "*.pkg.tar.*" -type f) + sig_file="${pkg_file}.sig" + + if [ ! -f "$sig_file" ]; then + for i in *.pkg.tar.xz + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/3PARTY/catppuccin/move_to_repo.sh b/3PARTY/catppuccin/move_to_repo.sh new file mode 100755 index 0000000..896b2db --- /dev/null +++ b/3PARTY/catppuccin/move_to_repo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-3party/x86_64/" + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst.sig" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -delete + + +echo "Ready" +sleep 5 + +process=$(ps x | grep konsole | grep $0 | awk '{print $1}') +if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') +fi diff --git a/3PARTY/catppuccin/plasma5-theme-catppuccin b/3PARTY/catppuccin/plasma5-theme-catppuccin new file mode 160000 index 0000000..50c577f --- /dev/null +++ b/3PARTY/catppuccin/plasma5-theme-catppuccin @@ -0,0 +1 @@ +Subproject commit 50c577f7aa554dfdad963b4b52e2b796915721f5 diff --git a/3PARTY/catppuccin/plasma5-theme-catppuccin-git b/3PARTY/catppuccin/plasma5-theme-catppuccin-git new file mode 160000 index 0000000..8941169 --- /dev/null +++ b/3PARTY/catppuccin/plasma5-theme-catppuccin-git @@ -0,0 +1 @@ +Subproject commit 8941169305e87e154cdde88e278ec3db2f75ec1b diff --git a/3PARTY/catppuccin/plymouth-theme-catppuccin b/3PARTY/catppuccin/plymouth-theme-catppuccin new file mode 160000 index 0000000..0e9d8b9 --- /dev/null +++ b/3PARTY/catppuccin/plymouth-theme-catppuccin @@ -0,0 +1 @@ +Subproject commit 0e9d8b94c03c11fae0a063ec547d0e147e815470 diff --git a/3PARTY/catppuccin/pwd.txt b/3PARTY/catppuccin/pwd.txt new file mode 100644 index 0000000..2447857 --- /dev/null +++ b/3PARTY/catppuccin/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD/3PARTY/catppuccin \ No newline at end of file diff --git a/3PARTY/catppuccin/refind-theme-catppuccin b/3PARTY/catppuccin/refind-theme-catppuccin new file mode 160000 index 0000000..da7c291 --- /dev/null +++ b/3PARTY/catppuccin/refind-theme-catppuccin @@ -0,0 +1 @@ +Subproject commit da7c2914ba0df24a64d2bc5d5b2dff875f8a3ed1 diff --git a/3PARTY/catppuccin/sddm-theme-catppuccin b/3PARTY/catppuccin/sddm-theme-catppuccin new file mode 160000 index 0000000..e51c063 --- /dev/null +++ b/3PARTY/catppuccin/sddm-theme-catppuccin @@ -0,0 +1 @@ +Subproject commit e51c063eafe5a39ef09bc653133089968e10ef90 diff --git a/3PARTY/ssr-decode b/3PARTY/ssr-decode new file mode 160000 index 0000000..8299353 --- /dev/null +++ b/3PARTY/ssr-decode @@ -0,0 +1 @@ +Subproject commit 8299353f0b210267ca3b0817e19878e2128e1806 diff --git a/3PARTY/Текстовый файл….txt b/3PARTY/Текстовый файл….txt new file mode 100644 index 0000000..40b20f0 --- /dev/null +++ b/3PARTY/Текстовый файл….txt @@ -0,0 +1 @@ +https://github.com/vinceliuice/Colloid-gtk-theme/tree/main/src/other/firefox#installation diff --git a/Archlinux/bash b/Archlinux/bash new file mode 160000 index 0000000..9d196c4 --- /dev/null +++ b/Archlinux/bash @@ -0,0 +1 @@ +Subproject commit 9d196c480f1bc6336389be2ba8e90bb19dd4b361 diff --git a/Archlinux/ccache b/Archlinux/ccache new file mode 160000 index 0000000..0eec1e1 --- /dev/null +++ b/Archlinux/ccache @@ -0,0 +1 @@ +Subproject commit 0eec1e19b3f99a424764f0db754e876c964a7674 diff --git a/Archlinux/clean.sh b/Archlinux/clean.sh new file mode 100755 index 0000000..bee2c06 --- /dev/null +++ b/Archlinux/clean.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-archlinux/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/Archlinux/clone.sh b/Archlinux/clone.sh new file mode 100755 index 0000000..27b938d --- /dev/null +++ b/Archlinux/clone.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +packages=$(cat packages.txt) + +for package in ${packages} +do + if [ -d "$package" ]; then + cd "$CWD/$package" + git pull + cd "$CWD" + else + access_location=$(curl -ILs https://gitlab.archlinux.org/archlinux/packaging/packages/${package} | grep location | awk '{print $2}') + if [[ "$access_location" == *"gitlab.archlinux.org/users"* ]]; then + echo "" + else + git clone "https://gitlab.archlinux.org/archlinux/packaging/packages/${package}.git" + fi + fi +done + +echo "Ready" diff --git a/Archlinux/fastfetch b/Archlinux/fastfetch new file mode 160000 index 0000000..d70d344 --- /dev/null +++ b/Archlinux/fastfetch @@ -0,0 +1 @@ +Subproject commit d70d3446bcf51ef19652237550a7e999db2694d4 diff --git a/Archlinux/kdsoap-ws-discovery-client b/Archlinux/kdsoap-ws-discovery-client new file mode 160000 index 0000000..2c55102 --- /dev/null +++ b/Archlinux/kdsoap-ws-discovery-client @@ -0,0 +1 @@ +Subproject commit 2c551023e316f33f68e527584bf1d944dd095f36 diff --git a/Archlinux/make.sh b/Archlinux/make.sh new file mode 100755 index 0000000..f992a7f --- /dev/null +++ b/Archlinux/make.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-archlinux/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f | sort) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + pkg_exist=$(find "$full_path" -type f -newermt "$(date '+%Y-%m-%d 00:00')" -name "*.pkg.tar.xz") + if [ "$pkg_exist" == "" ]; then + make_file=$(find . -mindepth 1 -maxdepth 1 -name "*make*\.sh" -type f) + if [ -f "$make_file" ]; then + echo "bash $make_file" + bash "$make_file" + else + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + unset make_file + + pkg_file=$(find . -mindepth 1 -maxdepth 1 -name "*.pkg.tar.xz" -type f) + sig_file="${pkg_file}.sig" + + if [ ! -f "$sig_file" ]; then + for i in *.pkg.tar.xz + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/Archlinux/move_to_repo.sh b/Archlinux/move_to_repo.sh new file mode 100755 index 0000000..549a862 --- /dev/null +++ b/Archlinux/move_to_repo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-archlinux/x86_64/" + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst.sig" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -delete + + +echo "Ready" +sleep 5 + +process=$(ps x | grep konsole | grep $0 | awk '{print $1}') +if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') +fi diff --git a/Archlinux/packages.txt b/Archlinux/packages.txt new file mode 100644 index 0000000..2b65b64 --- /dev/null +++ b/Archlinux/packages.txt @@ -0,0 +1,8 @@ +bash +ccache +fastfetch +ftl-sdk +kdsoap-ws-discovery-client +profile-sync-daemon +python +plymouth diff --git a/Archlinux/plymouth b/Archlinux/plymouth new file mode 160000 index 0000000..7fc3620 --- /dev/null +++ b/Archlinux/plymouth @@ -0,0 +1 @@ +Subproject commit 7fc3620a1b3d2e809a429e02f954b73e33ae46f7 diff --git a/Archlinux/profile-sync-daemon b/Archlinux/profile-sync-daemon new file mode 160000 index 0000000..2f54889 --- /dev/null +++ b/Archlinux/profile-sync-daemon @@ -0,0 +1 @@ +Subproject commit 2f548897fbc8e35a431960ae5027641991ba8aee diff --git a/Archlinux/pwd.txt b/Archlinux/pwd.txt new file mode 100644 index 0000000..ded4e47 --- /dev/null +++ b/Archlinux/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD/Archlinux \ No newline at end of file diff --git a/Archlinux/python b/Archlinux/python new file mode 160000 index 0000000..e99f785 --- /dev/null +++ b/Archlinux/python @@ -0,0 +1 @@ +Subproject commit e99f7856656790318d9735b4d9a1d92bff845f41 diff --git a/Archlinux/python312 b/Archlinux/python312 new file mode 160000 index 0000000..6615298 --- /dev/null +++ b/Archlinux/python312 @@ -0,0 +1 @@ +Subproject commit 6615298c4ce167692722b43975cbf15d8208ccf4 diff --git a/Archlinux/sign.sh b/Archlinux/sign.sh new file mode 100755 index 0000000..592baf2 --- /dev/null +++ b/Archlinux/sign.sh @@ -0,0 +1,68 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-archlinux/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + pkg_file=$(find . -mindepth 1 -maxdepth 1 -name "*.pkg.tar.xz$" -type f) + sig_file="${pkg_file}.sig" + + if [ ! -f "$sig_file" ]; then + for i in $pkg_file + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/CORE/Core/ananicy-cpp b/CORE/Core/ananicy-cpp new file mode 160000 index 0000000..bdfb838 --- /dev/null +++ b/CORE/Core/ananicy-cpp @@ -0,0 +1 @@ +Subproject commit bdfb8383bc32d83e632daf30f00071e6d1796043 diff --git a/CORE/Core/ananicy-rules b/CORE/Core/ananicy-rules new file mode 160000 index 0000000..b78fafd --- /dev/null +++ b/CORE/Core/ananicy-rules @@ -0,0 +1 @@ +Subproject commit b78fafdf57a73639453934c07e70d0c553c19214 diff --git a/CORE/Core/appimagelauncher b/CORE/Core/appimagelauncher new file mode 160000 index 0000000..264ee4b --- /dev/null +++ b/CORE/Core/appimagelauncher @@ -0,0 +1 @@ +Subproject commit 264ee4bc760aa1154bf497314e50a8c7453fa5d0 diff --git a/CORE/Core/bpftune b/CORE/Core/bpftune new file mode 160000 index 0000000..c187d34 --- /dev/null +++ b/CORE/Core/bpftune @@ -0,0 +1 @@ +Subproject commit c187d34e8ca82948703b99933cd1a5aaf61866e4 diff --git a/CORE/Core/btrfs-assistant b/CORE/Core/btrfs-assistant new file mode 160000 index 0000000..6d55029 --- /dev/null +++ b/CORE/Core/btrfs-assistant @@ -0,0 +1 @@ +Subproject commit 6d5502908ab71c1a705ac8677fdea15a82930013 diff --git a/CORE/Core/btrfs-snapshots b/CORE/Core/btrfs-snapshots new file mode 160000 index 0000000..91c60d0 --- /dev/null +++ b/CORE/Core/btrfs-snapshots @@ -0,0 +1 @@ +Subproject commit 91c60d0c9925f89eea392886d26daae9a7d469df diff --git a/CORE/Core/btrfsmaintenance b/CORE/Core/btrfsmaintenance new file mode 160000 index 0000000..4d79d6d --- /dev/null +++ b/CORE/Core/btrfsmaintenance @@ -0,0 +1 @@ +Subproject commit 4d79d6dadcc4f45b95bdb4105758bf34f7487f59 diff --git a/CORE/Core/chwd/00_make.sh b/CORE/Core/chwd/00_make.sh new file mode 100755 index 0000000..7e7134b --- /dev/null +++ b/CORE/Core/chwd/00_make.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +status=$? + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + + process=$(ps x | grep konsole | grep $0 | awk '{print $1}') + if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') + fi +fi diff --git a/CORE/Core/chwd/01_sign.sh b/CORE/Core/chwd/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/CORE/Core/chwd/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/CORE/Core/chwd/PKGBUILD b/CORE/Core/chwd/PKGBUILD new file mode 100644 index 0000000..c4b3425 --- /dev/null +++ b/CORE/Core/chwd/PKGBUILD @@ -0,0 +1,84 @@ +# Maintainer: Vladislav Nepogodin + +pkgbase=chwd +pkgname=('chwd' 'chwd-db') +pkgver=1.2.1 +pkgrel=2 +pkgdesc="CachyOS Hardware Detection Tool" +arch=(x86_64) +url="https://github.com/cachyos/chwd" +license=(GPL3) +depends=('gcc-libs' 'pciutils' 'lua') +makedepends=('git' 'cargo' 'mold' 'clang' 'llvm') +groups=('cachyos') +_commit_hash=138bcc312764b53115acb18a3a7278e788310a3e +source=("git+${url}.git#commit=${_commit_hash}" + "git+${url/-cachyos}-db.git") +sha256sums=('SKIP' + 'SKIP') + +prepare() { + cd "$srcdir/$pkgname" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" + + cd scripts/chwd-kernel + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$srcdir/$pkgname" + + # Compile with clang + export AR=llvm-ar + export CC=clang + export CXX=clang++ + export NM=llvm-nm + export RANLIB=llvm-ranlib + + export RUSTFLAGS="-Cembed-bitcode -C opt-level=3 -Ccodegen-units=1 -Clinker=clang -C link-arg=-flto -Clink-arg=-fuse-ld=/usr/bin/mold" + + cd scripts/chwd-kernel + cargo build --release --frozen + + cd ../../ + + cargo build --release --frozen +} + +package_chwd() { + depends=('gcc-libs' 'pciutils' 'lua' 'chwd-db' 'pacman') + provides=('mhwd-cachyos') + conflicts=('mhwd-cachyos') + replaces=('mhwd-cachyos') + + cd "$srcdir/$pkgname" + + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/chwd/LICENSE" + + install -Dm755 "target/release/chwd" "$pkgdir/usr/bin/chwd" + ln -s "/usr/bin/chwd" "$pkgdir/usr/bin/mhwd" + install -Dm755 scripts/chwd "$pkgdir"/var/lib/chwd/scripts/chwd + + install -Dm644 target/release/build/chwd-*/out/chwd.bash "$pkgdir/usr/share/bash-completion/completions/chwd" + install -Dm644 target/release/build/chwd-*/out/chwd.fish "$pkgdir/usr/share/fish/vendor_completions.d/chwd.fish" + install -Dm644 target/release/build/chwd-*/out/_chwd "$pkgdir/usr/share/zsh/site-functions/_chwd" + + install -d -m755 "$pkgdir"/var/lib/chwd/{db,local}/pci + + cd scripts/chwd-kernel + install -Dm755 "target/release/chwd-kernel" "$pkgdir/usr/bin/chwd-kernel" +} + +package_chwd-db() { + pkgdesc="Profiles we use at CachyOS :)" + provides=('mhwd-db-cachyos') + conflicts=('mhwd-db-cachyos') + replaces=('mhwd-db-cachyos') + + cd $pkgname + + mkdir -p "$pkgdir"/var/lib/chwd/db + cp -r pci "$pkgdir"/var/lib/chwd/db/ +} + +# vim:set sw=2 sts=2 et: diff --git a/CORE/Core/chwd/chwd-db/FETCH_HEAD b/CORE/Core/chwd/chwd-db/FETCH_HEAD new file mode 100644 index 0000000..27307f8 --- /dev/null +++ b/CORE/Core/chwd/chwd-db/FETCH_HEAD @@ -0,0 +1,27 @@ +892f0952c5edfce74187920dd47622469079e8b6 not-for-merge branch 'feature/toml' of https://github.com/cachyos/chwd-db +bc878422c2930e4d899d470daa234be93840d157 not-for-merge branch 'master' of https://github.com/cachyos/chwd-db +2d4cb7938cd742327c66050519d8dc51c2a969b6 not-for-merge 'refs/pull/1/head' of https://github.com/cachyos/chwd-db +74ec0628ec8dea61bd081132da350c13c80309b4 not-for-merge 'refs/pull/10/head' of https://github.com/cachyos/chwd-db +f91b2150f5362a6b001dcb291370601dd0fb0047 not-for-merge 'refs/pull/11/head' of https://github.com/cachyos/chwd-db +e55b3000d881f6231311ec9f98853794e2acd242 not-for-merge 'refs/pull/12/head' of https://github.com/cachyos/chwd-db +71fc9e4b09622e0ced0224cd2adb347cbb2da050 not-for-merge 'refs/pull/13/head' of https://github.com/cachyos/chwd-db +a27de8b737d75b22b989d7348e1bd2b398c2ed66 not-for-merge 'refs/pull/14/head' of https://github.com/cachyos/chwd-db +c7d68d5d48fe5915344d79280e4d6aad206f9dbc not-for-merge 'refs/pull/15/head' of https://github.com/cachyos/chwd-db +9ee1cd35d1965763c689659d301a114d69788c7a not-for-merge 'refs/pull/16/head' of https://github.com/cachyos/chwd-db +4d278779b0d5f8202e92ee4cba15aff6f585872c not-for-merge 'refs/pull/17/head' of https://github.com/cachyos/chwd-db +de5e550857f6d6c4233f079a7403b6457935db3b not-for-merge 'refs/pull/18/head' of https://github.com/cachyos/chwd-db +463e0d106c40f3b29c57250994cc7833599f9132 not-for-merge 'refs/pull/19/head' of https://github.com/cachyos/chwd-db +137624370b2b5861a036b6ab0ca1252fdf7fe3df not-for-merge 'refs/pull/2/head' of https://github.com/cachyos/chwd-db +892f0952c5edfce74187920dd47622469079e8b6 not-for-merge 'refs/pull/20/head' of https://github.com/cachyos/chwd-db +6d8755d4a8194fbff9052dde1b4cbebdf204fd7c not-for-merge 'refs/pull/21/head' of https://github.com/cachyos/chwd-db +ac90426fc03086e27645548cdcc1e1a88febd6d4 not-for-merge 'refs/pull/22/head' of https://github.com/cachyos/chwd-db +52655024628fd09987d8137b83202a6c5868dcaa not-for-merge 'refs/pull/23/head' of https://github.com/cachyos/chwd-db +a2b7d8bdeff0f850595e780d4e7d5f46aeace1e7 not-for-merge 'refs/pull/24/head' of https://github.com/cachyos/chwd-db +9f92e9200084e9b81bcaf94de7b63f4fd22c4887 not-for-merge 'refs/pull/25/head' of https://github.com/cachyos/chwd-db +3da74493856427cb1710c31450df147ef07dccd3 not-for-merge 'refs/pull/26/head' of https://github.com/cachyos/chwd-db +6d95c692e37b15941c449d967fabffc33fbcf497 not-for-merge 'refs/pull/4/head' of https://github.com/cachyos/chwd-db +df41661972e414a30b7f6c0f828bcd898eb54d06 not-for-merge 'refs/pull/5/head' of https://github.com/cachyos/chwd-db +599f22070f0135356a2c7359c37e14370b62aa5c not-for-merge 'refs/pull/6/head' of https://github.com/cachyos/chwd-db +1f54c99e0847831284ab1f7f1dd4c3e65865f2e2 not-for-merge 'refs/pull/7/head' of https://github.com/cachyos/chwd-db +20a982694208a89f3f17b443f04fe8af98d4ffe6 not-for-merge 'refs/pull/8/head' of https://github.com/cachyos/chwd-db +e58c31c2f659f64201ab34c6bdc1954f48810af3 not-for-merge 'refs/pull/9/head' of https://github.com/cachyos/chwd-db diff --git a/CORE/Core/chwd/chwd-db/HEAD b/CORE/Core/chwd/chwd-db/HEAD new file mode 100644 index 0000000..cb089cd --- /dev/null +++ b/CORE/Core/chwd/chwd-db/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/CORE/Core/chwd/chwd-db/config b/CORE/Core/chwd/chwd-db/config new file mode 100644 index 0000000..00ba952 --- /dev/null +++ b/CORE/Core/chwd/chwd-db/config @@ -0,0 +1,8 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true +[remote "origin"] + url = https://github.com/cachyos/chwd-db.git + fetch = +refs/*:refs/* + mirror = true diff --git a/CORE/Core/chwd/chwd-db/description b/CORE/Core/chwd/chwd-db/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/CORE/Core/chwd/chwd-db/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/CORE/Core/chwd/chwd-db/hooks/applypatch-msg.sample b/CORE/Core/chwd/chwd-db/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/CORE/Core/chwd/chwd-db/hooks/commit-msg.sample b/CORE/Core/chwd/chwd-db/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/CORE/Core/chwd/chwd-db/hooks/fsmonitor-watchman.sample b/CORE/Core/chwd/chwd-db/hooks/fsmonitor-watchman.sample new file mode 100755 index 0000000..23e856f --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/fsmonitor-watchman.sample @@ -0,0 +1,174 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use IPC::Open2; + +# An example hook script to integrate Watchman +# (https://facebook.github.io/watchman/) with git to speed up detecting +# new and modified files. +# +# The hook is passed a version (currently 2) and last update token +# formatted as a string and outputs to stdout a new update token and +# all files that have been modified since the update token. Paths must +# be relative to the root of the working tree and separated by a single NUL. +# +# To enable this hook, rename this file to "query-watchman" and set +# 'git config core.fsmonitor .git/hooks/query-watchman' +# +my ($version, $last_update_token) = @ARGV; + +# Uncomment for debugging +# print STDERR "$0 $version $last_update_token\n"; + +# Check the hook interface version +if ($version ne 2) { + die "Unsupported query-fsmonitor hook version '$version'.\n" . + "Falling back to scanning...\n"; +} + +my $git_work_tree = get_working_dir(); + +my $retry = 1; + +my $json_pkg; +eval { + require JSON::XS; + $json_pkg = "JSON::XS"; + 1; +} or do { + require JSON::PP; + $json_pkg = "JSON::PP"; +}; + +launch_watchman(); + +sub launch_watchman { + my $o = watchman_query(); + if (is_work_tree_watched($o)) { + output_result($o->{clock}, @{$o->{files}}); + } +} + +sub output_result { + my ($clockid, @files) = @_; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # binmode $fh, ":utf8"; + # print $fh "$clockid\n@files\n"; + # close $fh; + + binmode STDOUT, ":utf8"; + print $clockid; + print "\0"; + local $, = "\0"; + print @files; +} + +sub watchman_clock { + my $response = qx/watchman clock "$git_work_tree"/; + die "Failed to get clock id on '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + + return $json_pkg->new->utf8->decode($response); +} + +sub watchman_query { + my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') + or die "open2() failed: $!\n" . + "Falling back to scanning...\n"; + + # In the query expression below we're asking for names of files that + # changed since $last_update_token but not from the .git folder. + # + # To accomplish this, we're using the "since" generator to use the + # recency index to select candidate nodes and "fields" to limit the + # output to file names only. Then we're using the "expression" term to + # further constrain the results. + my $last_update_line = ""; + if (substr($last_update_token, 0, 1) eq "c") { + $last_update_token = "\"$last_update_token\""; + $last_update_line = qq[\n"since": $last_update_token,]; + } + my $query = <<" END"; + ["query", "$git_work_tree", {$last_update_line + "fields": ["name"], + "expression": ["not", ["dirname", ".git"]] + }] + END + + # Uncomment for debugging the watchman query + # open (my $fh, ">", ".git/watchman-query.json"); + # print $fh $query; + # close $fh; + + print CHLD_IN $query; + close CHLD_IN; + my $response = do {local $/; }; + + # Uncomment for debugging the watch response + # open ($fh, ">", ".git/watchman-response.json"); + # print $fh $response; + # close $fh; + + die "Watchman: command returned no output.\n" . + "Falling back to scanning...\n" if $response eq ""; + die "Watchman: command returned invalid output: $response\n" . + "Falling back to scanning...\n" unless $response =~ /^\{/; + + return $json_pkg->new->utf8->decode($response); +} + +sub is_work_tree_watched { + my ($output) = @_; + my $error = $output->{error}; + if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) { + $retry--; + my $response = qx/watchman watch "$git_work_tree"/; + die "Failed to make watchman watch '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + $output = $json_pkg->new->utf8->decode($response); + $error = $output->{error}; + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # close $fh; + + # Watchman will always return all files on the first query so + # return the fast "everything is dirty" flag to git and do the + # Watchman query just to get it over with now so we won't pay + # the cost in git to look up each individual file. + my $o = watchman_clock(); + $error = $output->{error}; + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + output_result($o->{clock}, ("/")); + $last_update_token = $o->{clock}; + + eval { launch_watchman() }; + return 0; + } + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + return 1; +} + +sub get_working_dir { + my $working_dir; + if ($^O =~ 'msys' || $^O =~ 'cygwin') { + $working_dir = Win32::GetCwd(); + $working_dir =~ tr/\\/\//; + } else { + require Cwd; + $working_dir = Cwd::cwd(); + } + + return $working_dir; +} diff --git a/CORE/Core/chwd/chwd-db/hooks/post-update.sample b/CORE/Core/chwd/chwd-db/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/CORE/Core/chwd/chwd-db/hooks/pre-applypatch.sample b/CORE/Core/chwd/chwd-db/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/CORE/Core/chwd/chwd-db/hooks/pre-commit.sample b/CORE/Core/chwd/chwd-db/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/CORE/Core/chwd/chwd-db/hooks/pre-merge-commit.sample b/CORE/Core/chwd/chwd-db/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/CORE/Core/chwd/chwd-db/hooks/pre-push.sample b/CORE/Core/chwd/chwd-db/hooks/pre-push.sample new file mode 100755 index 0000000..4ce688d --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +zero=$(git hash-object --stdin &2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/CORE/Core/chwd/chwd-db/hooks/pre-rebase.sample b/CORE/Core/chwd/chwd-db/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/CORE/Core/chwd/chwd-db/hooks/pre-receive.sample b/CORE/Core/chwd/chwd-db/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/CORE/Core/chwd/chwd-db/hooks/prepare-commit-msg.sample b/CORE/Core/chwd/chwd-db/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/CORE/Core/chwd/chwd-db/hooks/push-to-checkout.sample b/CORE/Core/chwd/chwd-db/hooks/push-to-checkout.sample new file mode 100755 index 0000000..af5a0c0 --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/push-to-checkout.sample @@ -0,0 +1,78 @@ +#!/bin/sh + +# An example hook script to update a checked-out tree on a git push. +# +# This hook is invoked by git-receive-pack(1) when it reacts to git +# push and updates reference(s) in its repository, and when the push +# tries to update the branch that is currently checked out and the +# receive.denyCurrentBranch configuration variable is set to +# updateInstead. +# +# By default, such a push is refused if the working tree and the index +# of the remote repository has any difference from the currently +# checked out commit; when both the working tree and the index match +# the current commit, they are updated to match the newly pushed tip +# of the branch. This hook is to be used to override the default +# behaviour; however the code below reimplements the default behaviour +# as a starting point for convenient modification. +# +# The hook receives the commit with which the tip of the current +# branch is going to be updated: +commit=$1 + +# It can exit with a non-zero status to refuse the push (when it does +# so, it must not modify the index or the working tree). +die () { + echo >&2 "$*" + exit 1 +} + +# Or it can make any necessary changes to the working tree and to the +# index to bring them to the desired state when the tip of the current +# branch is updated to the new commit, and exit with a zero status. +# +# For example, the hook can simply run git read-tree -u -m HEAD "$1" +# in order to emulate git fetch that is run in the reverse direction +# with git push, as the two-tree form of git read-tree -u -m is +# essentially the same as git switch or git checkout that switches +# branches while keeping the local changes in the working tree that do +# not interfere with the difference between the branches. + +# The below is a more-or-less exact translation to shell of the C code +# for the default behaviour for git's push-to-checkout hook defined in +# the push_to_deploy() function in builtin/receive-pack.c. +# +# Note that the hook will be executed from the repository directory, +# not from the working tree, so if you want to perform operations on +# the working tree, you will have to adapt your code accordingly, e.g. +# by adding "cd .." or using relative paths. + +if ! git update-index -q --ignore-submodules --refresh +then + die "Up-to-date check failed" +fi + +if ! git diff-files --quiet --ignore-submodules -- +then + die "Working directory has unstaged changes" +fi + +# This is a rough translation of: +# +# head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX +if git cat-file -e HEAD 2>/dev/null +then + head=HEAD +else + head=$(git hash-object -t tree --stdin &2 + exit 1 +} + +unset GIT_DIR GIT_WORK_TREE +cd "$worktree" && + +if grep -q "^diff --git " "$1" +then + validate_patch "$1" +else + validate_cover_letter "$1" +fi && + +if test "$GIT_SENDEMAIL_FILE_COUNTER" = "$GIT_SENDEMAIL_FILE_TOTAL" +then + git config --unset-all sendemail.validateWorktree && + trap 'git worktree remove -ff "$worktree"' EXIT && + validate_series +fi diff --git a/CORE/Core/chwd/chwd-db/hooks/update.sample b/CORE/Core/chwd/chwd-db/hooks/update.sample new file mode 100755 index 0000000..c4d426b --- /dev/null +++ b/CORE/Core/chwd/chwd-db/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero=$(git hash-object --stdin &2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/CORE/Core/chwd/chwd-db/info/exclude b/CORE/Core/chwd/chwd-db/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/CORE/Core/chwd/chwd-db/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/CORE/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.idx b/CORE/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.idx new file mode 100644 index 0000000..1c767bf Binary files /dev/null and b/CORE/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.idx differ diff --git a/CORE/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.pack b/CORE/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.pack new file mode 100644 index 0000000..2e36467 Binary files /dev/null and b/CORE/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.pack differ diff --git a/CORE/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.rev b/CORE/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.rev new file mode 100644 index 0000000..2faaf2f Binary files /dev/null and b/CORE/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.rev differ diff --git a/CORE/Core/chwd/chwd-db/packed-refs b/CORE/Core/chwd/chwd-db/packed-refs new file mode 100644 index 0000000..275f30e --- /dev/null +++ b/CORE/Core/chwd/chwd-db/packed-refs @@ -0,0 +1,28 @@ +# pack-refs with: peeled fully-peeled sorted +892f0952c5edfce74187920dd47622469079e8b6 refs/heads/feature/toml +bc878422c2930e4d899d470daa234be93840d157 refs/heads/master +2d4cb7938cd742327c66050519d8dc51c2a969b6 refs/pull/1/head +74ec0628ec8dea61bd081132da350c13c80309b4 refs/pull/10/head +f91b2150f5362a6b001dcb291370601dd0fb0047 refs/pull/11/head +e55b3000d881f6231311ec9f98853794e2acd242 refs/pull/12/head +71fc9e4b09622e0ced0224cd2adb347cbb2da050 refs/pull/13/head +a27de8b737d75b22b989d7348e1bd2b398c2ed66 refs/pull/14/head +c7d68d5d48fe5915344d79280e4d6aad206f9dbc refs/pull/15/head +9ee1cd35d1965763c689659d301a114d69788c7a refs/pull/16/head +4d278779b0d5f8202e92ee4cba15aff6f585872c refs/pull/17/head +de5e550857f6d6c4233f079a7403b6457935db3b refs/pull/18/head +463e0d106c40f3b29c57250994cc7833599f9132 refs/pull/19/head +137624370b2b5861a036b6ab0ca1252fdf7fe3df refs/pull/2/head +892f0952c5edfce74187920dd47622469079e8b6 refs/pull/20/head +6d8755d4a8194fbff9052dde1b4cbebdf204fd7c refs/pull/21/head +ac90426fc03086e27645548cdcc1e1a88febd6d4 refs/pull/22/head +52655024628fd09987d8137b83202a6c5868dcaa refs/pull/23/head +a2b7d8bdeff0f850595e780d4e7d5f46aeace1e7 refs/pull/24/head +9f92e9200084e9b81bcaf94de7b63f4fd22c4887 refs/pull/25/head +3da74493856427cb1710c31450df147ef07dccd3 refs/pull/26/head +6d95c692e37b15941c449d967fabffc33fbcf497 refs/pull/4/head +df41661972e414a30b7f6c0f828bcd898eb54d06 refs/pull/5/head +599f22070f0135356a2c7359c37e14370b62aa5c refs/pull/6/head +1f54c99e0847831284ab1f7f1dd4c3e65865f2e2 refs/pull/7/head +20a982694208a89f3f17b443f04fe8af98d4ffe6 refs/pull/8/head +e58c31c2f659f64201ab34c6bdc1954f48810af3 refs/pull/9/head diff --git a/CORE/Core/clean.sh b/CORE/Core/clean.sh new file mode 100755 index 0000000..6da9fdd --- /dev/null +++ b/CORE/Core/clean.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-core/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/CORE/Core/codelldb b/CORE/Core/codelldb new file mode 160000 index 0000000..37c895e --- /dev/null +++ b/CORE/Core/codelldb @@ -0,0 +1 @@ +Subproject commit 37c895eeb4e8e672f1d55fb551926672a49624d3 diff --git a/CORE/Core/downgrade b/CORE/Core/downgrade new file mode 160000 index 0000000..1a10c1c --- /dev/null +++ b/CORE/Core/downgrade @@ -0,0 +1 @@ +Subproject commit 1a10c1cb6091853d892854c3fffaa6acf2e4a944 diff --git a/CORE/Core/find-the-command b/CORE/Core/find-the-command new file mode 160000 index 0000000..cf62ddb --- /dev/null +++ b/CORE/Core/find-the-command @@ -0,0 +1 @@ +Subproject commit cf62ddb7652a308cf0575997c1547e4ec68d67d9 diff --git a/CORE/Core/git_pull.sh b/CORE/Core/git_pull.sh new file mode 100755 index 0000000..fd93eca --- /dev/null +++ b/CORE/Core/git_pull.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +i=0 +for package_dir in $(find . -mindepth 1 -maxdepth 1 -type d) +do + i=$(( $i + 1 )) + echo "$i $CWD/$package_dir" + cd $CWD/$package_dir + git pull + cd $CWD + echo "" +done + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/CORE/Core/grub-dracut/.gitignore b/CORE/Core/grub-dracut/.gitignore new file mode 100644 index 0000000..bc268c6 --- /dev/null +++ b/CORE/Core/grub-dracut/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/grub-dracut diff --git a/CORE/Core/grub-dracut/00_make.sh b/CORE/Core/grub-dracut/00_make.sh new file mode 100755 index 0000000..7e7134b --- /dev/null +++ b/CORE/Core/grub-dracut/00_make.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +status=$? + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + + process=$(ps x | grep konsole | grep $0 | awk '{print $1}') + if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') + fi +fi diff --git a/CORE/Core/grub-dracut/01_sign.sh b/CORE/Core/grub-dracut/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/CORE/Core/grub-dracut/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/CORE/Core/grub-dracut/PKGBUILD b/CORE/Core/grub-dracut/PKGBUILD new file mode 100644 index 0000000..7673054 --- /dev/null +++ b/CORE/Core/grub-dracut/PKGBUILD @@ -0,0 +1,33 @@ +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.2.1 +pkgrel=1 +pkgdesc="Enables grub boot automation using kernel-install with dracut" +arch=(any) +url="https://git.melawy.ru/Core/$_gitname" +license=("BSD") +depends=("dracut") +optdepends=() +makedepends=("git") +backup=("etc/grub-dracut.conf") +provides=("${pkgname}") +conflicts=("${pkgname}" "mkinitcpio" "kernel-install-mkinitcpio" "kernel-install-for-dracut" "dracut-hook") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=("BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8") + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.2.%s" "$(git rev-list --count HEAD)" +} + +package() +{ + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/etc" "$pkgdir/" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/usr" "$pkgdir/" +} diff --git a/CORE/Core/irqbalance b/CORE/Core/irqbalance new file mode 160000 index 0000000..b65e351 --- /dev/null +++ b/CORE/Core/irqbalance @@ -0,0 +1 @@ +Subproject commit b65e3510bfbb4ce3b42624a764b6c8b70964ac61 diff --git a/CORE/Core/libpamac-full b/CORE/Core/libpamac-full new file mode 160000 index 0000000..a53e4ba --- /dev/null +++ b/CORE/Core/libpamac-full @@ -0,0 +1 @@ +Subproject commit a53e4ba3861a48bce045652298d82f31baacc339 diff --git a/CORE/Core/make.sh b/CORE/Core/make.sh new file mode 100755 index 0000000..aee80fc --- /dev/null +++ b/CORE/Core/make.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-core/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f | sort) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + pkg_exist=$(find "$full_path" -type f -newermt "$(date '+%Y-%m-%d 00:00')" -name "*.pkg.tar.xz") + if [ "$pkg_exist" == "" ]; then + make_file=$(find . -mindepth 1 -maxdepth 1 -name "*make*\.sh" -type f) + if [ -f "$make_file" ]; then + echo "bash $make_file" + bash "$make_file" + else + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + unset make_file + + pkg_file=$(find . -mindepth 1 -maxdepth 1 -name "*.pkg.tar.*" -type f) + sig_file="${pkg_file}.sig" + + if [ ! -f "$sig_file" ]; then + for i in *.pkg.tar.xz + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/CORE/Core/move_to_repo.sh b/CORE/Core/move_to_repo.sh new file mode 100755 index 0000000..a6ac9f9 --- /dev/null +++ b/CORE/Core/move_to_repo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-core/x86_64/" + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst.sig" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -delete + + +echo "Ready" +sleep 5 + +process=$(ps x | grep konsole | grep $0 | awk '{print $1}') +if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') +fi diff --git a/CORE/Core/ocs-url b/CORE/Core/ocs-url new file mode 160000 index 0000000..2576545 --- /dev/null +++ b/CORE/Core/ocs-url @@ -0,0 +1 @@ +Subproject commit 2576545f24fab8340a69e4f7452f7b1b6a30c761 diff --git a/CORE/Core/pace b/CORE/Core/pace new file mode 160000 index 0000000..3908804 --- /dev/null +++ b/CORE/Core/pace @@ -0,0 +1 @@ +Subproject commit 3908804e10092616e02aabbd9c30551798b118b0 diff --git a/CORE/Core/paclast b/CORE/Core/paclast new file mode 160000 index 0000000..6fd9a9e --- /dev/null +++ b/CORE/Core/paclast @@ -0,0 +1 @@ +Subproject commit 6fd9a9e2cbe68bb5da010bb3c1320c4965b3d4ee diff --git a/CORE/Core/pamac-all b/CORE/Core/pamac-all new file mode 160000 index 0000000..83793d4 --- /dev/null +++ b/CORE/Core/pamac-all @@ -0,0 +1 @@ +Subproject commit 83793d425946dadcdb9ba719315d8bee24580145 diff --git a/CORE/Core/pamac-cli b/CORE/Core/pamac-cli new file mode 160000 index 0000000..2cc3d92 --- /dev/null +++ b/CORE/Core/pamac-cli @@ -0,0 +1 @@ +Subproject commit 2cc3d926cc89c91fb2c36e9667ed8ecdc4a0801d diff --git a/CORE/Core/paru/.SRCINFO b/CORE/Core/paru/.SRCINFO new file mode 100644 index 0000000..f00dfd3 --- /dev/null +++ b/CORE/Core/paru/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = paru-git + pkgdesc = Feature packed AUR helper + pkgver = 1.7.3.r22.g1ed1f29 + pkgrel = 1 + url = https://github.com/morganamilo/paru + arch = i686 + arch = pentium4 + arch = x86_64 + arch = arm + arch = armv7h + arch = armv6h + arch = aarch64 + license = GPL3 + makedepends = cargo + depends = glibc + depends = git + depends = pacman + optdepends = asp: downloading repo pkgbuilds + optdepends = bat: colored pkgbuild printing + optdepends = devtools: build in chroot + provides = paru + conflicts = paru + backup = etc/paru.conf + source = git+https://github.com/morganamilo/paru + sha256sums = SKIP + +pkgname = paru-git diff --git a/CORE/Core/paru/.gitignore b/CORE/Core/paru/.gitignore new file mode 100644 index 0000000..d9061c4 --- /dev/null +++ b/CORE/Core/paru/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/paru diff --git a/CORE/Core/paru/00_make.sh b/CORE/Core/paru/00_make.sh new file mode 100755 index 0000000..7e7134b --- /dev/null +++ b/CORE/Core/paru/00_make.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +status=$? + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + + process=$(ps x | grep konsole | grep $0 | awk '{print $1}') + if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') + fi +fi diff --git a/CORE/Core/paru/01_sign.sh b/CORE/Core/paru/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/CORE/Core/paru/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/CORE/Core/paru/PKGBUILD b/CORE/Core/paru/PKGBUILD new file mode 100644 index 0000000..3338f65 --- /dev/null +++ b/CORE/Core/paru/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Morgan + +pkgname=paru +_pkgname=paru +pkgver=2.0.1 +pkgrel=1 +pkgdesc='Feature packed AUR helper' +url='https://github.com/morganamilo/paru' +source=("git+https://github.com/morganamilo/paru") +backup=("etc/paru.conf") +arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64') +license=('GPL3') +makedepends=('cargo') +depends=('glibc' 'git' 'pacman') +optdepends=('asp: downloading repo pkgbuilds' 'bat: colored pkgbuild printing' 'devtools: build in chroot') +conflicts=('paru') +provides=('paru') +sha256sums=(SKIP) + +pkgver() { + cd "$srcdir/$_pkgname" +# git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/\1/' | cut -d"-" -f1 +} + +build () { + cd "$srcdir/$_pkgname" + + if pacman -T pacman-git > /dev/null; then + _features+="git," + fi + + if [[ $(rustc -V) == *"nightly"* ]]; then + _features+="backtrace," + fi + + if [[ $CARCH != x86_64 ]]; then + export CARGO_PROFILE_RELEASE_LTO=off + fi + + PARU_VERSION=$pkgver cargo build --locked --features "${_features:-}" --release --target-dir target + ./scripts/mkmo locale/ +} + +package() { + cd "$srcdir/$_pkgname" + + install -Dm755 target/release/paru "${pkgdir}/usr/bin/paru" + install -Dm644 paru.conf "${pkgdir}/etc/paru.conf" + + install -Dm644 man/paru.8 "$pkgdir/usr/share/man/man8/paru.8" + install -Dm644 man/paru.conf.5 "$pkgdir/usr/share/man/man5/paru.conf.5" + + install -Dm644 completions/bash "${pkgdir}/usr/share/bash-completion/completions/paru.bash" + install -Dm644 completions/fish "${pkgdir}/usr/share/fish/vendor_completions.d/paru.fish" + install -Dm644 completions/zsh "${pkgdir}/usr/share/zsh/site-functions/_paru" + + install -d "$pkgdir/usr/share/" + cp -r locale "$pkgdir/usr/share/" +} diff --git a/CORE/Core/performance-tweaks/00_make.sh b/CORE/Core/performance-tweaks/00_make.sh new file mode 100755 index 0000000..7e7134b --- /dev/null +++ b/CORE/Core/performance-tweaks/00_make.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +status=$? + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + + process=$(ps x | grep konsole | grep $0 | awk '{print $1}') + if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') + fi +fi diff --git a/CORE/Core/performance-tweaks/01_sign.sh b/CORE/Core/performance-tweaks/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/CORE/Core/performance-tweaks/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/CORE/Core/performance-tweaks/PKGBUILD b/CORE/Core/performance-tweaks/PKGBUILD new file mode 100644 index 0000000..726180f --- /dev/null +++ b/CORE/Core/performance-tweaks/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: dr460nf1r3 +# Contributor: Librewish + +pkgname=performance-tweaks +pkgdesc='Tweaks to improve performance' +pkgver=2.1.2 +pkgrel=1 +arch=('any') +url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname" +license=('GPL') +depends=('ananicy-cpp' + 'ananicy-rules' + 'hdparm' + 'irqbalance' + 'preload') +makedepends=('coreutils') +source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('2453da2dd2ea4b921f4d8ebe692ca2d098b67a575aa2ef08480d55d3c184bb75') +conflicts=('powersave-tweaks' 'tlp' 'auto-cpufreq' 'thermald') +install=$pkgname.install + +package() { + install -d "$pkgdir"/usr/lib + cp -rf "$srcdir"/$pkgname-$pkgver/usr "$pkgdir" +} + diff --git a/CORE/Core/performance-tweaks/performance-tweaks.install b/CORE/Core/performance-tweaks/performance-tweaks.install new file mode 100644 index 0000000..e22d256 --- /dev/null +++ b/CORE/Core/performance-tweaks/performance-tweaks.install @@ -0,0 +1,10 @@ +post_install() { + systemctl enable ananicy-cpp + systemctl enable irqbalance + systemctl enable preload +} + +post_upgrade() { + post_install +} + diff --git a/CORE/Core/plymouth b/CORE/Core/plymouth new file mode 160000 index 0000000..6dfb94f --- /dev/null +++ b/CORE/Core/plymouth @@ -0,0 +1 @@ +Subproject commit 6dfb94f622454b5dbc9c4f85d9ce252ecb4de5ae diff --git a/CORE/Core/plymouth-kcm b/CORE/Core/plymouth-kcm new file mode 160000 index 0000000..6bd724e --- /dev/null +++ b/CORE/Core/plymouth-kcm @@ -0,0 +1 @@ +Subproject commit 6bd724e36a2217933e8f311293768a651b22530c diff --git a/CORE/Core/powersave-tweaks/00_make.sh b/CORE/Core/powersave-tweaks/00_make.sh new file mode 100755 index 0000000..7e7134b --- /dev/null +++ b/CORE/Core/powersave-tweaks/00_make.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +status=$? + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + + process=$(ps x | grep konsole | grep $0 | awk '{print $1}') + if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') + fi +fi diff --git a/CORE/Core/powersave-tweaks/01_sign.sh b/CORE/Core/powersave-tweaks/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/CORE/Core/powersave-tweaks/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/CORE/Core/powersave-tweaks/PKGBUILD b/CORE/Core/powersave-tweaks/PKGBUILD new file mode 100644 index 0000000..b493c1b --- /dev/null +++ b/CORE/Core/powersave-tweaks/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer: dr460nf1r3 +# Contributor: Librewish + +pkgname=powersave-tweaks +pkgdesc='Tweaks to preserve power on Garuda Linux' +pkgver=2.0.0 +pkgrel=1 +arch=('any') +url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname" +license=('GPL') +makedepends=('coreutils') +source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('SKIP') +depends=('hdparm') +conflicts=('performanace-tweaks') + +package() { + install -d "$pkgdir/usr/lib" + cp -rf "$srcdir/$pkgname-$pkgver/usr" "$pkgdir" +} diff --git a/CORE/Core/preload b/CORE/Core/preload new file mode 160000 index 0000000..0636f6b --- /dev/null +++ b/CORE/Core/preload @@ -0,0 +1 @@ +Subproject commit 0636f6b3ff0a4b54640b3e5652429d52a767eb59 diff --git a/CORE/Core/pwd.txt b/CORE/Core/pwd.txt new file mode 100644 index 0000000..cd48dd1 --- /dev/null +++ b/CORE/Core/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD/CORE/Core \ No newline at end of file diff --git a/CORE/Core/ramroot-btrfs b/CORE/Core/ramroot-btrfs new file mode 160000 index 0000000..fd91310 --- /dev/null +++ b/CORE/Core/ramroot-btrfs @@ -0,0 +1 @@ +Subproject commit fd91310ea12aaa0066b8ed9891c7524bc58f35a2 diff --git a/CORE/Core/rate-mirrors b/CORE/Core/rate-mirrors new file mode 160000 index 0000000..2cbca61 --- /dev/null +++ b/CORE/Core/rate-mirrors @@ -0,0 +1 @@ +Subproject commit 2cbca613c35e896c3ffa1532fe11e42d1c9e786b diff --git a/CORE/Core/systemd-boot-dracut/.SRCINFO b/CORE/Core/systemd-boot-dracut/.SRCINFO new file mode 100644 index 0000000..f3971c7 --- /dev/null +++ b/CORE/Core/systemd-boot-dracut/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = kernel-install-for-dracut + pkgdesc = Enables systemd-boot automation using kernel-install with dracut + pkgver = 1.9.1 + pkgrel = 1 + url = https://gitlab.com/dalto.8/kernel-install-for-dracut + arch = any + license = GPL2 + depends = dracut + conflicts = mkinitcpio + conflicts = kernel-install-mkinitcpio + backup = etc/kernel/install.d/50-dracut.install + backup = etc/kernel-install-for-dracut.conf + source = kernel-install-for-dracut-1.9.1.tar.gz::https://gitlab.com/dalto.8/kernel-install-for-dracut/-/archive/1.9.1/kernel-install-for-dracut-1.9.1.tar.gz + sha256sums = 1f7e6908388e862849bd7e78504c91dd2a8a3dba8a75dc26e9d4ede038099c3d + +pkgname = kernel-install-for-dracut diff --git a/CORE/Core/systemd-boot-dracut/.gitignore b/CORE/Core/systemd-boot-dracut/.gitignore new file mode 100644 index 0000000..22afcff --- /dev/null +++ b/CORE/Core/systemd-boot-dracut/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/systemd-boot-dracut diff --git a/CORE/Core/systemd-boot-dracut/00_make.sh b/CORE/Core/systemd-boot-dracut/00_make.sh new file mode 100755 index 0000000..7e7134b --- /dev/null +++ b/CORE/Core/systemd-boot-dracut/00_make.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +status=$? + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + + process=$(ps x | grep konsole | grep $0 | awk '{print $1}') + if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') + fi +fi diff --git a/CORE/Core/systemd-boot-dracut/01_sign.sh b/CORE/Core/systemd-boot-dracut/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/CORE/Core/systemd-boot-dracut/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/CORE/Core/systemd-boot-dracut/PKGBUILD b/CORE/Core/systemd-boot-dracut/PKGBUILD new file mode 100644 index 0000000..eb1fcdc --- /dev/null +++ b/CORE/Core/systemd-boot-dracut/PKGBUILD @@ -0,0 +1,33 @@ +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.9.1.19 +pkgrel=1 +pkgdesc="Enables systemd-boot automation using kernel-install with dracut" +arch=(any) +url="https://git.melawy.ru/Core/$_gitname" +license=("AGPL3") +depends=("dracut") +optdepends=() +makedepends=("git") +backup=("etc/kernel/install.d/50-dracut.install" "etc/kernel-install-for-dracut.conf") +provides=("${pkgname}") +conflicts=("${pkgname}" "mkinitcpio" "kernel-install-mkinitcpio" "kernel-install-for-dracut") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=("BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8") + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.9.1.%s" "$(git rev-list --count HEAD)" +} + +package() +{ + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/etc" "$pkgdir/" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/usr" "$pkgdir/" +} diff --git a/CORE/Core/systemd-oomd-defaults b/CORE/Core/systemd-oomd-defaults new file mode 160000 index 0000000..5405143 --- /dev/null +++ b/CORE/Core/systemd-oomd-defaults @@ -0,0 +1 @@ +Subproject commit 540514358c2dbaf48a3b41308cfb7f529066b137 diff --git a/CORE/Core/timeshift b/CORE/Core/timeshift new file mode 160000 index 0000000..6f81bb3 --- /dev/null +++ b/CORE/Core/timeshift @@ -0,0 +1 @@ +Subproject commit 6f81bb3415aa21be3a027a5909817ae0120197a5 diff --git a/CORE/Core/timeshift-autosnap b/CORE/Core/timeshift-autosnap new file mode 160000 index 0000000..2b779f4 --- /dev/null +++ b/CORE/Core/timeshift-autosnap @@ -0,0 +1 @@ +Subproject commit 2b779f48394cc2a08d90c9e1770eb2f8a8258a96 diff --git a/CORE/Core/topgrade b/CORE/Core/topgrade new file mode 160000 index 0000000..0f4ebe1 --- /dev/null +++ b/CORE/Core/topgrade @@ -0,0 +1 @@ +Subproject commit 0f4ebe10de0407b3a1836b2e41b3fb1a6ada18a0 diff --git a/CORE/Core/uksmd b/CORE/Core/uksmd new file mode 160000 index 0000000..b1dd94c --- /dev/null +++ b/CORE/Core/uksmd @@ -0,0 +1 @@ +Subproject commit b1dd94c8e5a886353356ceb1f3f175a578e7fd46 diff --git a/CORE/Core/uksmdstats b/CORE/Core/uksmdstats new file mode 160000 index 0000000..612471d --- /dev/null +++ b/CORE/Core/uksmdstats @@ -0,0 +1 @@ +Subproject commit 612471d71c4948bb5537d218372e119fa5369ae6 diff --git a/CORE/Core/yay b/CORE/Core/yay new file mode 160000 index 0000000..e881112 --- /dev/null +++ b/CORE/Core/yay @@ -0,0 +1 @@ +Subproject commit e8811123596419ca2f3c2135b0ff7807ab94eb3b diff --git a/DECORE/breeze-enhanced-catppuccin/00_git_pull.sh b/DECORE/breeze-enhanced-catppuccin/00_git_pull.sh new file mode 100755 index 0000000..7d6762a --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/00_git_pull.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +git pull diff --git a/DECORE/breeze-enhanced-catppuccin/00_make.sh b/DECORE/breeze-enhanced-catppuccin/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/DECORE/breeze-enhanced-catppuccin/01_sign.sh b/DECORE/breeze-enhanced-catppuccin/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/FETCH_HEAD b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/FETCH_HEAD new file mode 100644 index 0000000..fbe18e4 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/FETCH_HEAD @@ -0,0 +1 @@ +de056482f84fa0033c7128d802c729f1446e7808 not-for-merge branch 'master' of https://github.com/diogogmatos/BreezeEnhancedCatppuccin diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/HEAD b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/HEAD new file mode 100644 index 0000000..cb089cd --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/config b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/config new file mode 100644 index 0000000..28e75d1 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/config @@ -0,0 +1,8 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true +[remote "origin"] + url = https://github.com/diogogmatos/BreezeEnhancedCatppuccin.git + fetch = +refs/*:refs/* + mirror = true diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/description b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/applypatch-msg.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/commit-msg.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/fsmonitor-watchman.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/fsmonitor-watchman.sample new file mode 100755 index 0000000..23e856f --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/fsmonitor-watchman.sample @@ -0,0 +1,174 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use IPC::Open2; + +# An example hook script to integrate Watchman +# (https://facebook.github.io/watchman/) with git to speed up detecting +# new and modified files. +# +# The hook is passed a version (currently 2) and last update token +# formatted as a string and outputs to stdout a new update token and +# all files that have been modified since the update token. Paths must +# be relative to the root of the working tree and separated by a single NUL. +# +# To enable this hook, rename this file to "query-watchman" and set +# 'git config core.fsmonitor .git/hooks/query-watchman' +# +my ($version, $last_update_token) = @ARGV; + +# Uncomment for debugging +# print STDERR "$0 $version $last_update_token\n"; + +# Check the hook interface version +if ($version ne 2) { + die "Unsupported query-fsmonitor hook version '$version'.\n" . + "Falling back to scanning...\n"; +} + +my $git_work_tree = get_working_dir(); + +my $retry = 1; + +my $json_pkg; +eval { + require JSON::XS; + $json_pkg = "JSON::XS"; + 1; +} or do { + require JSON::PP; + $json_pkg = "JSON::PP"; +}; + +launch_watchman(); + +sub launch_watchman { + my $o = watchman_query(); + if (is_work_tree_watched($o)) { + output_result($o->{clock}, @{$o->{files}}); + } +} + +sub output_result { + my ($clockid, @files) = @_; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # binmode $fh, ":utf8"; + # print $fh "$clockid\n@files\n"; + # close $fh; + + binmode STDOUT, ":utf8"; + print $clockid; + print "\0"; + local $, = "\0"; + print @files; +} + +sub watchman_clock { + my $response = qx/watchman clock "$git_work_tree"/; + die "Failed to get clock id on '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + + return $json_pkg->new->utf8->decode($response); +} + +sub watchman_query { + my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') + or die "open2() failed: $!\n" . + "Falling back to scanning...\n"; + + # In the query expression below we're asking for names of files that + # changed since $last_update_token but not from the .git folder. + # + # To accomplish this, we're using the "since" generator to use the + # recency index to select candidate nodes and "fields" to limit the + # output to file names only. Then we're using the "expression" term to + # further constrain the results. + my $last_update_line = ""; + if (substr($last_update_token, 0, 1) eq "c") { + $last_update_token = "\"$last_update_token\""; + $last_update_line = qq[\n"since": $last_update_token,]; + } + my $query = <<" END"; + ["query", "$git_work_tree", {$last_update_line + "fields": ["name"], + "expression": ["not", ["dirname", ".git"]] + }] + END + + # Uncomment for debugging the watchman query + # open (my $fh, ">", ".git/watchman-query.json"); + # print $fh $query; + # close $fh; + + print CHLD_IN $query; + close CHLD_IN; + my $response = do {local $/; }; + + # Uncomment for debugging the watch response + # open ($fh, ">", ".git/watchman-response.json"); + # print $fh $response; + # close $fh; + + die "Watchman: command returned no output.\n" . + "Falling back to scanning...\n" if $response eq ""; + die "Watchman: command returned invalid output: $response\n" . + "Falling back to scanning...\n" unless $response =~ /^\{/; + + return $json_pkg->new->utf8->decode($response); +} + +sub is_work_tree_watched { + my ($output) = @_; + my $error = $output->{error}; + if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) { + $retry--; + my $response = qx/watchman watch "$git_work_tree"/; + die "Failed to make watchman watch '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + $output = $json_pkg->new->utf8->decode($response); + $error = $output->{error}; + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # close $fh; + + # Watchman will always return all files on the first query so + # return the fast "everything is dirty" flag to git and do the + # Watchman query just to get it over with now so we won't pay + # the cost in git to look up each individual file. + my $o = watchman_clock(); + $error = $output->{error}; + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + output_result($o->{clock}, ("/")); + $last_update_token = $o->{clock}; + + eval { launch_watchman() }; + return 0; + } + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + return 1; +} + +sub get_working_dir { + my $working_dir; + if ($^O =~ 'msys' || $^O =~ 'cygwin') { + $working_dir = Win32::GetCwd(); + $working_dir =~ tr/\\/\//; + } else { + require Cwd; + $working_dir = Cwd::cwd(); + } + + return $working_dir; +} diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/post-update.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-applypatch.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-commit.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-merge-commit.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-push.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-push.sample new file mode 100755 index 0000000..4ce688d --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +zero=$(git hash-object --stdin &2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-rebase.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-receive.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/prepare-commit-msg.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/push-to-checkout.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/push-to-checkout.sample new file mode 100755 index 0000000..af5a0c0 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/push-to-checkout.sample @@ -0,0 +1,78 @@ +#!/bin/sh + +# An example hook script to update a checked-out tree on a git push. +# +# This hook is invoked by git-receive-pack(1) when it reacts to git +# push and updates reference(s) in its repository, and when the push +# tries to update the branch that is currently checked out and the +# receive.denyCurrentBranch configuration variable is set to +# updateInstead. +# +# By default, such a push is refused if the working tree and the index +# of the remote repository has any difference from the currently +# checked out commit; when both the working tree and the index match +# the current commit, they are updated to match the newly pushed tip +# of the branch. This hook is to be used to override the default +# behaviour; however the code below reimplements the default behaviour +# as a starting point for convenient modification. +# +# The hook receives the commit with which the tip of the current +# branch is going to be updated: +commit=$1 + +# It can exit with a non-zero status to refuse the push (when it does +# so, it must not modify the index or the working tree). +die () { + echo >&2 "$*" + exit 1 +} + +# Or it can make any necessary changes to the working tree and to the +# index to bring them to the desired state when the tip of the current +# branch is updated to the new commit, and exit with a zero status. +# +# For example, the hook can simply run git read-tree -u -m HEAD "$1" +# in order to emulate git fetch that is run in the reverse direction +# with git push, as the two-tree form of git read-tree -u -m is +# essentially the same as git switch or git checkout that switches +# branches while keeping the local changes in the working tree that do +# not interfere with the difference between the branches. + +# The below is a more-or-less exact translation to shell of the C code +# for the default behaviour for git's push-to-checkout hook defined in +# the push_to_deploy() function in builtin/receive-pack.c. +# +# Note that the hook will be executed from the repository directory, +# not from the working tree, so if you want to perform operations on +# the working tree, you will have to adapt your code accordingly, e.g. +# by adding "cd .." or using relative paths. + +if ! git update-index -q --ignore-submodules --refresh +then + die "Up-to-date check failed" +fi + +if ! git diff-files --quiet --ignore-submodules -- +then + die "Working directory has unstaged changes" +fi + +# This is a rough translation of: +# +# head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX +if git cat-file -e HEAD 2>/dev/null +then + head=HEAD +else + head=$(git hash-object -t tree --stdin &2 + exit 1 +} + +unset GIT_DIR GIT_WORK_TREE +cd "$worktree" && + +if grep -q "^diff --git " "$1" +then + validate_patch "$1" +else + validate_cover_letter "$1" +fi && + +if test "$GIT_SENDEMAIL_FILE_COUNTER" = "$GIT_SENDEMAIL_FILE_TOTAL" +then + git config --unset-all sendemail.validateWorktree && + trap 'git worktree remove -ff "$worktree"' EXIT && + validate_series +fi diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/update.sample b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/update.sample new file mode 100755 index 0000000..c4d426b --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero=$(git hash-object --stdin &2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/info/exclude b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/objects/pack/pack-004eceea371a47fe3cac427a6b5ad8265e8d92fa.idx b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/objects/pack/pack-004eceea371a47fe3cac427a6b5ad8265e8d92fa.idx new file mode 100644 index 0000000..912285a Binary files /dev/null and b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/objects/pack/pack-004eceea371a47fe3cac427a6b5ad8265e8d92fa.idx differ diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/objects/pack/pack-004eceea371a47fe3cac427a6b5ad8265e8d92fa.pack b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/objects/pack/pack-004eceea371a47fe3cac427a6b5ad8265e8d92fa.pack new file mode 100644 index 0000000..deaa02d Binary files /dev/null and b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/objects/pack/pack-004eceea371a47fe3cac427a6b5ad8265e8d92fa.pack differ diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/objects/pack/pack-004eceea371a47fe3cac427a6b5ad8265e8d92fa.rev b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/objects/pack/pack-004eceea371a47fe3cac427a6b5ad8265e8d92fa.rev new file mode 100644 index 0000000..a761a98 Binary files /dev/null and b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/objects/pack/pack-004eceea371a47fe3cac427a6b5ad8265e8d92fa.rev differ diff --git a/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/packed-refs b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/packed-refs new file mode 100644 index 0000000..aa3eaf5 --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/BreezeEnhancedCatppuccin/packed-refs @@ -0,0 +1,2 @@ +# pack-refs with: peeled fully-peeled sorted +de056482f84fa0033c7128d802c729f1446e7808 refs/heads/master diff --git a/DECORE/breeze-enhanced-catppuccin/PKGBUILD b/DECORE/breeze-enhanced-catppuccin/PKGBUILD new file mode 100644 index 0000000..008ac0f --- /dev/null +++ b/DECORE/breeze-enhanced-catppuccin/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Integral-Tech + +pkgname=breeze-enhanced-catppuccin +_pkgname=BreezeEnhancedCatppuccin +pkgver=1.6 +pkgrel=1 +pkgdesc="A fork of the BreezeEnhanced KDE Window Decoration Theme with tweaked colors for Catppuccin Color Scheme" +arch=('x86_64') +url="https://github.com/diogogmatos/BreezeEnhancedCatppuccin" +license=('GPL3') +makedepends=('git' 'cmake' 'extra-cmake-modules' 'kglobalaccel5' 'kde-dev-utils' 'knotifications5' 'kwin' 'qt5-declarative') +depends=('kcoreaddons5' 'libxcb' 'kwindowsystem5' 'kdecoration' 'kiconthemes5' 'kwin') +source=("git+${url}.git") +sha256sums=('SKIP') + +# pkgver() { +# cd "${_pkgname}/" +# git describe --long --tags | sed -e "s/V//" -e "s/-/./"| cut -d"-" -f1 +# } + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +build() { + cd "${_pkgname}/" + mkdir build && cd build + cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DBUILD_TESTING=OFF -DKDE_INSTALL_USE_QT_SYS_PATHS=ON + make +} + +package() { + cd "${_pkgname}/build/" + make DESTDIR=${pkgdir} install +} diff --git a/DECORE/clean.sh b/DECORE/clean.sh new file mode 100755 index 0000000..6da9fdd --- /dev/null +++ b/DECORE/clean.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-core/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/DECORE/git_pull.sh b/DECORE/git_pull.sh new file mode 100755 index 0000000..fd93eca --- /dev/null +++ b/DECORE/git_pull.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +i=0 +for package_dir in $(find . -mindepth 1 -maxdepth 1 -type d) +do + i=$(( $i + 1 )) + echo "$i $CWD/$package_dir" + cd $CWD/$package_dir + git pull + cd $CWD + echo "" +done + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/DECORE/klassy b/DECORE/klassy new file mode 160000 index 0000000..9414782 --- /dev/null +++ b/DECORE/klassy @@ -0,0 +1 @@ +Subproject commit 9414782c23a1c50d2c67e16f9252fb6676f02653 diff --git a/DECORE/lightlyshaders b/DECORE/lightlyshaders new file mode 160000 index 0000000..ebc6901 --- /dev/null +++ b/DECORE/lightlyshaders @@ -0,0 +1 @@ +Subproject commit ebc690111da077176d2e7d5f3ca2ce7272548b55 diff --git a/DECORE/make.sh b/DECORE/make.sh new file mode 100755 index 0000000..aee80fc --- /dev/null +++ b/DECORE/make.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-core/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f | sort) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + pkg_exist=$(find "$full_path" -type f -newermt "$(date '+%Y-%m-%d 00:00')" -name "*.pkg.tar.xz") + if [ "$pkg_exist" == "" ]; then + make_file=$(find . -mindepth 1 -maxdepth 1 -name "*make*\.sh" -type f) + if [ -f "$make_file" ]; then + echo "bash $make_file" + bash "$make_file" + else + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + unset make_file + + pkg_file=$(find . -mindepth 1 -maxdepth 1 -name "*.pkg.tar.*" -type f) + sig_file="${pkg_file}.sig" + + if [ ! -f "$sig_file" ]; then + for i in *.pkg.tar.xz + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/DECORE/move_to_repo.sh b/DECORE/move_to_repo.sh new file mode 100755 index 0000000..a6ac9f9 --- /dev/null +++ b/DECORE/move_to_repo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-core/x86_64/" + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst.sig" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -delete + + +echo "Ready" +sleep 5 + +process=$(ps x | grep konsole | grep $0 | awk '{print $1}') +if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') +fi diff --git a/DECORE/pwd.txt b/DECORE/pwd.txt new file mode 100644 index 0000000..f1f9735 --- /dev/null +++ b/DECORE/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD/DECORE \ No newline at end of file diff --git a/DECORE/roundedsbe b/DECORE/roundedsbe new file mode 160000 index 0000000..77eebfa --- /dev/null +++ b/DECORE/roundedsbe @@ -0,0 +1 @@ +Subproject commit 77eebfa8557ecfe5c2aecd346804a6ffa3c7e5e9 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0ad25db --- /dev/null +++ b/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/MELAWY/Design/Fenek/melawy-kde-theme-fenek/.gitignore b/MELAWY/Design/Fenek/melawy-kde-theme-fenek/.gitignore new file mode 100644 index 0000000..733ae58 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-kde-theme-fenek/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-kde-theme-fenek diff --git a/MELAWY/Design/Fenek/melawy-kde-theme-fenek/00_make.sh b/MELAWY/Design/Fenek/melawy-kde-theme-fenek/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-kde-theme-fenek/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Fenek/melawy-kde-theme-fenek/01_sign.sh b/MELAWY/Design/Fenek/melawy-kde-theme-fenek/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-kde-theme-fenek/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Fenek/melawy-kde-theme-fenek/PKGBUILD b/MELAWY/Design/Fenek/melawy-kde-theme-fenek/PKGBUILD new file mode 100644 index 0000000..0a0e9fd --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-kde-theme-fenek/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.6 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("melawy-theme") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + cp -vrf --no-dereference --preserve=links --no-preserve=mode "$srcdir/$_gitname/usr" "$pkgdir/" +} diff --git a/MELAWY/Design/Fenek/melawy-kde-theme-fenek/README.md b/MELAWY/Design/Fenek/melawy-kde-theme-fenek/README.md new file mode 100644 index 0000000..de6c428 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-kde-theme-fenek/README.md @@ -0,0 +1,11 @@ +# melawy-kde-theme-fenek +KDE theme 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 diff --git a/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/.gitignore b/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/.gitignore new file mode 100644 index 0000000..2249dcb --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plymouth-theme-fenek diff --git a/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/00_make.sh b/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/01_sign.sh b/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/PKGBUILD b/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/PKGBUILD new file mode 100644 index 0000000..a06f0ca --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.19 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("plymouth") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="melawy-fenek" +THEME_PATH="/usr/share/plymouth/themes" + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir$THEME_PATH/" +} + +install=ins.install diff --git a/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/README.md b/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/README.md new file mode 100644 index 0000000..8025f8f --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/README.md @@ -0,0 +1,11 @@ +# melawy-plymouth-theme-fenek +Plymouth theme for theme Fenek + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/ins.install b/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/ins.install new file mode 100644 index 0000000..cbc2b6a --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-plymouth-theme-fenek/ins.install @@ -0,0 +1,9 @@ +post_install() { + if [ "$(grep 'Theme' /etc/plymouth/plymouthd.conf | cut -d'=' -f2)" == "melawy-fenek" ]; then + plymouth-set-default-theme -R + fi +} + +post_upgrade() { + post_install +} diff --git a/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/.gitignore b/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/.gitignore new file mode 100644 index 0000000..e88d1e9 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plymouth-theme-hard-install-fenek diff --git a/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/00_make.sh b/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/01_sign.sh b/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/PKGBUILD b/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/PKGBUILD new file mode 100644 index 0000000..ad5cfe2 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/PKGBUILD @@ -0,0 +1,16 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.0 +pkgrel=1 +pkgdesc="Liveuser specific plymouth theme hard install Fenek for Melawy Linux" +arch=("any") +url="https://git.melawy.ru/Design" +license=("AGPL3") +source=() +provides=("melawy-plymouth-theme-hard-install") +depends=("melawy-plymouth-theme-fenek") +conflicts=("melawy-plymouth-theme-hard-install") + +install=ins.install diff --git a/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/ins.install b/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/ins.install new file mode 100644 index 0000000..2e0895b --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-plymouth-theme-hard-install-fenek/ins.install @@ -0,0 +1,9 @@ +post_install() { + plymouth-set-default-theme --reset + plymouth-set-default-theme melawy-fenek + plymouth-set-default-theme --rebuild-initrd melawy-fenek +} + +post_upgrade() { + post_install +} diff --git a/MELAWY/Design/Fenek/melawy-refind-theme-fenek/.gitignore b/MELAWY/Design/Fenek/melawy-refind-theme-fenek/.gitignore new file mode 100644 index 0000000..cfc5c90 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-refind-theme-fenek/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-refind-theme-fenek diff --git a/MELAWY/Design/Fenek/melawy-refind-theme-fenek/00_make.sh b/MELAWY/Design/Fenek/melawy-refind-theme-fenek/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-refind-theme-fenek/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Fenek/melawy-refind-theme-fenek/01_sign.sh b/MELAWY/Design/Fenek/melawy-refind-theme-fenek/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-refind-theme-fenek/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Fenek/melawy-refind-theme-fenek/PKGBUILD b/MELAWY/Design/Fenek/melawy-refind-theme-fenek/PKGBUILD new file mode 100644 index 0000000..fc20495 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-refind-theme-fenek/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.9 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("refind") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="melawy-fenek" +THEME_PATH="usr/share/refind/themes" + +install=ins.install + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir/$THEME_PATH/" +} diff --git a/MELAWY/Design/Fenek/melawy-refind-theme-fenek/README.md b/MELAWY/Design/Fenek/melawy-refind-theme-fenek/README.md new file mode 100644 index 0000000..d4bbc7b --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-refind-theme-fenek/README.md @@ -0,0 +1,11 @@ +# melawy-refind-theme-fenek +rEFInd bootloader theme Fenek + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Fenek/melawy-refind-theme-fenek/ins.install b/MELAWY/Design/Fenek/melawy-refind-theme-fenek/ins.install new file mode 100644 index 0000000..21392c0 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-refind-theme-fenek/ins.install @@ -0,0 +1,158 @@ +post_install() { + THEME_NAME="melawy-fenek" + local install_dir="/usr/share/refind/themes/$THEME_NAME" + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + if [ -f "${REFIND_DIR}/refind_x64.efi" ]; then + echo "Installing theme in ${REFIND_DIR}/themes" + cd ${install_dir} + + mkdir -p "${REFIND_DIR}/themes/$THEME_NAME" + mkdir -p "${EFI_BOOT_DIR}/themes/$THEME_NAME" + + cp -vrf "$install_dir/." "${REFIND_DIR}/themes/$THEME_NAME/." + cp -vrf "$install_dir/." "${EFI_BOOT_DIR}/themes/$THEME_NAME/." + + # Remove all from "${EFI_BOOT_DIR}" except "themes" + f_list=$(ls -1 "${EFI_BOOT_DIR}" | grep -v "themes") + + for i in ${f_list[@]} + do + rm -vr "${EFI_BOOT_DIR}/${i}" + done + + unset f_list + + # Copy all from "${REFIND_DIR}" to "${EFI_BOOT_DIR}" except "themes" + f_list=$(ls -1 "${REFIND_DIR}" | grep -v "themes") + + for i in ${f_list[@]} + do + if [ -f ${REFIND_DIR}/${i} ]; then + cp -vf "${REFIND_DIR}/${i}" "${EFI_BOOT_DIR}/${i}" + fi + + if [ -d ${REFIND_DIR}/${i} ]; then + cp -vrf "${REFIND_DIR}/${i}" "${EFI_BOOT_DIR}/${i}" + fi + done + + unset f_list + + mv -vf "${EFI_BOOT_DIR}/refind_x64.efi" "${EFI_BOOT_DIR}/bootx64.efi" + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + THEME_NAME="melawy-fenek" + + echo "Removal of theme from EFI partition" + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + if [[ -d "${REFIND_DIR}/themes/$THEME_NAME" ]]; then + rm -vr "${REFIND_DIR}/themes/$THEME_NAME" + echo "Theme uninstalled from ${REFIND_DIR}/themes/$THEME_NAME" + fi + + if [[ -d "${EFI_BOOT_DIR}/themes/$THEME_NAME" ]]; then + rm -vr "${EFI_BOOT_DIR}/themes/$THEME_NAME" + echo "Theme uninstalled from ${EFI_BOOT_DIR}/themes/$THEME_NAME" + fi + + REFIND_CONF_PATH="${REFIND_DIR}/refind.conf" + sed -i "/$THEME_NAME/d" $REFIND_CONF_PATH + + cp -vf "${REFIND_DIR}/refind.conf" "${EFI_BOOT_DIR}/refind.conf" +} + +# Copied from https://raw.githubusercontent.com/jaltuna/refind-theme-nord/main/setup.sh +# Verify EFI System Partition +__has_esp__() { + __find_esp__ + + mount "$ESP" &>/dev/null + [[ -d "$ESP/EFI" ]] && return 0 || return 1 +} + +__find_esp__() { + local parttype + local fstype + local device + + while read -r device; do + read -r parttype fstype ESP <<<"$(lsblk -o "PARTTYPE,FSTYPE,MOUNTPOINT" "$device" 2>/dev/null | awk 'NR==2')" + + [[ "${parttype,,}" != "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" ]] && continue + [[ "${fstype,,}" != "vfat" ]] && continue + [[ -z $(findmnt -sn "$ESP") ]] && continue + + done <<<"$(fdisk -l 2>/dev/null | grep -i efi | cut -d " " -f 1)" + + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/efi" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/boot" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(bootctl --print-esp-path) + if [ -z "${ESP}" ]; then + exit 1 + fi + fi + fi + fi + + echo "Found ${ESP}" + readonly ESP +} diff --git a/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/.gitignore b/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/.gitignore new file mode 100644 index 0000000..2f845d8 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-refind-theme-hard-install-fenek diff --git a/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/00_make.sh b/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/01_sign.sh b/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/PKGBUILD b/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/PKGBUILD new file mode 100644 index 0000000..dbb7e80 --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/PKGBUILD @@ -0,0 +1,16 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.0 +pkgrel=1 +pkgdesc="Specific refind theme hard install Fenek for Melawy Linux" +url="https://git.melawy.ru/Design" +arch=("any") +license=("AGPL3") +source=() +provides=("melawy-refind-theme-hard-install") +depends=("melawy-refind-menu-generator" "melawy-refind-theme-fenek") +conflicts=("melawy-refind-theme-hard-install") + +install=ins.install diff --git a/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/ins.install b/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/ins.install new file mode 100644 index 0000000..d752d5e --- /dev/null +++ b/MELAWY/Design/Fenek/melawy-refind-theme-hard-install-fenek/ins.install @@ -0,0 +1,135 @@ +post_install() { + THEME_NAME="melawy-fenek" + + if [ -f "/etc/refind-menu-generator/theme.conf" ]; then + echo "$THEME_NAME" > "/etc/refind-menu-generator/theme.conf" + fi + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + REFIND_CONF_PATH="${REFIND_DIR}/refind.conf" + + RESULT=$(grep "theme" $REFIND_CONF_PATH) + + if [[ "$?" = "0" ]]; then + CURRENT_THEME=$(echo $RESULT | cut -d"/" -f2) + if [[ "$?" = "0" ]]; then + sed -e "s/$CURRENT_THEME/$THEME_NAME/g" -i $REFIND_CONF_PATH + fi + else + if [[ -z "$(tail -n 1 -c 1 $REFIND_CONF_PATH)" ]];then + echo "include themes/$THEME_NAME/theme.conf" >> $REFIND_CONF_PATH + else + echo -e "\ninclude themes/$THEME_NAME/theme.conf" >> $REFIND_CONF_PATH + fi + fi + + cp -vf "${REFIND_DIR}/refind.conf" "${EFI_BOOT_DIR}/refind.conf" +} + +post_upgrade() { + post_install +} + +post_remove() { + THEME_NAME="melawy-fenek" + + if [ -f "/etc/refind-menu-generator/theme.conf" ]; then + echo "" > "/etc/refind-menu-generator/theme.conf" + fi + + echo "Removal of theme from EFI partition" + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + REFIND_CONF_PATH="${REFIND_DIR}/refind.conf" + sed -i "/$THEME_NAME/d" $REFIND_CONF_PATH + + cp -vf "${REFIND_DIR}/refind.conf" "${EFI_BOOT_DIR}/refind.conf" +} + +# Copied from https://raw.githubusercontent.com/jaltuna/refind-theme-nord/main/setup.sh +# Verify EFI System Partition +__has_esp__() { + __find_esp__ + + mount "$ESP" &>/dev/null + [[ -d "$ESP/EFI" ]] && return 0 || return 1 +} + +__find_esp__() { + local parttype + local fstype + local device + + while read -r device; do + read -r parttype fstype ESP <<<"$(lsblk -o "PARTTYPE,FSTYPE,MOUNTPOINT" "$device" 2>/dev/null | awk 'NR==2')" + + [[ "${parttype,,}" != "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" ]] && continue + [[ "${fstype,,}" != "vfat" ]] && continue + [[ -z $(findmnt -sn "$ESP") ]] && continue + + done <<<"$(fdisk -l 2>/dev/null | grep -i efi | cut -d " " -f 1)" + + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/efi" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/boot" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(bootctl --print-esp-path) + if [ -z "${ESP}" ]; then + exit 1 + fi + fi + fi + fi + + echo "Found ${ESP}" + readonly ESP +} diff --git a/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/.gitignore b/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/.gitignore new file mode 100644 index 0000000..4a94ec7 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-kde-theme-lera-sugar diff --git a/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/00_make.sh b/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/01_sign.sh b/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/PKGBUILD b/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/PKGBUILD new file mode 100644 index 0000000..a36be5f --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.5 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("melawy-theme") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + cp -vrf --no-dereference --preserve=links --no-preserve=mode "$srcdir/$_gitname/usr" "$pkgdir/" +} diff --git a/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/README.md b/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/README.md new file mode 100644 index 0000000..494b78e --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-kde-theme-lera-sugar/README.md @@ -0,0 +1,11 @@ +# melawy-kde-theme-lera-sugar +KDE theme 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 diff --git a/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/.gitignore b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/.gitignore new file mode 100644 index 0000000..9aa0ada --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plymouth-theme-hard-install-lera-sugar diff --git a/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/00_make.sh b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/01_sign.sh b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/PKGBUILD b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/PKGBUILD new file mode 100644 index 0000000..7b09ff4 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/PKGBUILD @@ -0,0 +1,16 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.0 +pkgrel=1 +pkgdesc="Liveuser specific plymouth theme hard install Lera Sugar for Melawy Linux" +arch=("any") +url="https://git.melawy.ru/Design" +license=("AGPL3") +source=() +provides=("melawy-plymouth-theme-hard-install") +depends=("melawy-plymouth-theme-lera-sugar") +conflicts=("melawy-plymouth-theme-hard-install") + +install=ins.install diff --git a/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/ins.install b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/ins.install new file mode 100644 index 0000000..2a93360 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-hard-install-lera-sugar/ins.install @@ -0,0 +1,9 @@ +post_install() { + plymouth-set-default-theme --reset + plymouth-set-default-theme melawy-lera-sugar + plymouth-set-default-theme --rebuild-initrd melawy-lera-sugar +} + +post_upgrade() { + post_install +} diff --git a/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/.gitignore b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/.gitignore new file mode 100644 index 0000000..23162b8 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plymouth-theme-lera-sugar diff --git a/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/00_make.sh b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/01_sign.sh b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/PKGBUILD b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/PKGBUILD new file mode 100644 index 0000000..77e412f --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.21 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("plymouth") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="melawy-lera-sugar" +THEME_PATH="/usr/share/plymouth/themes" + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir$THEME_PATH/" +} + +install=ins.install diff --git a/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/README.md b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/README.md new file mode 100644 index 0000000..7e05783 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/README.md @@ -0,0 +1,11 @@ +# melawy-plymouth-theme-lera-sugar +Plymouth theme for theme Lera Sugar + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/ins.install b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/ins.install new file mode 100644 index 0000000..4dd0d1c --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-plymouth-theme-lera-sugar/ins.install @@ -0,0 +1,9 @@ +post_install() { + if [ "$(grep 'Theme' /etc/plymouth/plymouthd.conf | cut -d'=' -f2)" == "melawy-lera-sugar" ]; then + plymouth-set-default-theme -R + fi +} + +post_upgrade() { + post_install +} diff --git a/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/.gitignore b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/.gitignore new file mode 100644 index 0000000..2f845d8 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-refind-theme-hard-install-fenek diff --git a/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/00_make.sh b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/01_sign.sh b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/PKGBUILD b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/PKGBUILD new file mode 100644 index 0000000..75e9812 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/PKGBUILD @@ -0,0 +1,16 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.0 +pkgrel=1 +pkgdesc="Specific refind theme hard install Lera Sugar for Melawy Linux" +url="https://git.melawy.ru/Design" +arch=("any") +license=("AGPL3") +source=() +provides=("melawy-refind-theme-hard-install") +depends=("melawy-refind-menu-generator" "melawy-refind-theme-lera-sugar") +conflicts=("melawy-refind-theme-hard-install") + +install=ins.install diff --git a/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/ins.install b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/ins.install new file mode 100644 index 0000000..ef1f5ff --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-hard-install-lera-sugar/ins.install @@ -0,0 +1,135 @@ +post_install() { + THEME_NAME="melawy-lera-sugar" + + if [ -f "/etc/refind-menu-generator/theme.conf" ]; then + echo "$THEME_NAME" > "/etc/refind-menu-generator/theme.conf" + fi + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + REFIND_CONF_PATH="${REFIND_DIR}/refind.conf" + + RESULT=$(grep "theme" $REFIND_CONF_PATH) + + if [[ "$?" = "0" ]]; then + CURRENT_THEME=$(echo $RESULT | cut -d"/" -f2) + if [[ "$?" = "0" ]]; then + sed -e "s/$CURRENT_THEME/$THEME_NAME/g" -i $REFIND_CONF_PATH + fi + else + if [[ -z "$(tail -n 1 -c 1 $REFIND_CONF_PATH)" ]];then + echo "include themes/$THEME_NAME/theme.conf" >> $REFIND_CONF_PATH + else + echo -e "\ninclude themes/$THEME_NAME/theme.conf" >> $REFIND_CONF_PATH + fi + fi + + cp -vf "${REFIND_DIR}/refind.conf" "${EFI_BOOT_DIR}/refind.conf" +} + +post_upgrade() { + post_install +} + +post_remove() { + THEME_NAME="melawy-lera-sugar" + + if [ -f "/etc/refind-menu-generator/theme.conf" ]; then + echo "" > "/etc/refind-menu-generator/theme.conf" + fi + + echo "Removal of theme from EFI partition" + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + REFIND_CONF_PATH="${REFIND_DIR}/refind.conf" + sed -i "/$THEME_NAME/d" $REFIND_CONF_PATH + + cp -vf "${REFIND_DIR}/refind.conf" "${EFI_BOOT_DIR}/refind.conf" +} + +# Copied from https://raw.githubusercontent.com/jaltuna/refind-theme-nord/main/setup.sh +# Verify EFI System Partition +__has_esp__() { + __find_esp__ + + mount "$ESP" &>/dev/null + [[ -d "$ESP/EFI" ]] && return 0 || return 1 +} + +__find_esp__() { + local parttype + local fstype + local device + + while read -r device; do + read -r parttype fstype ESP <<<"$(lsblk -o "PARTTYPE,FSTYPE,MOUNTPOINT" "$device" 2>/dev/null | awk 'NR==2')" + + [[ "${parttype,,}" != "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" ]] && continue + [[ "${fstype,,}" != "vfat" ]] && continue + [[ -z $(findmnt -sn "$ESP") ]] && continue + + done <<<"$(fdisk -l 2>/dev/null | grep -i efi | cut -d " " -f 1)" + + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/efi" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/boot" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(bootctl --print-esp-path) + if [ -z "${ESP}" ]; then + exit 1 + fi + fi + fi + fi + + echo "Found ${ESP}" + readonly ESP +} diff --git a/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/.gitignore b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/.gitignore new file mode 100644 index 0000000..d4a330b --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-refind-theme-lera-sugar diff --git a/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/00_make.sh b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/01_sign.sh b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/PKGBUILD b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/PKGBUILD new file mode 100644 index 0000000..d9b8358 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.15 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("refind") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="melawy-lera-sugar" +THEME_PATH="usr/share/refind/themes" + +install=ins.install + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir/$THEME_PATH/" +} diff --git a/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/README.md b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/README.md new file mode 100644 index 0000000..b0aa897 --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/README.md @@ -0,0 +1,11 @@ +# melawy-refind-theme-lera-sugar +rEFInd bootloader theme Lera Sugar + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/ins.install b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/ins.install new file mode 100644 index 0000000..274cd5d --- /dev/null +++ b/MELAWY/Design/Lera-Sugar/melawy-refind-theme-lera-sugar/ins.install @@ -0,0 +1,158 @@ +post_install() { + THEME_NAME="melawy-lera-sugar" + local install_dir="/usr/share/refind/themes/$THEME_NAME" + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + if [ -f "${REFIND_DIR}/refind_x64.efi" ]; then + echo "Installing theme in ${REFIND_DIR}/themes" + cd ${install_dir} + + mkdir -p "${REFIND_DIR}/themes/$THEME_NAME" + mkdir -p "${EFI_BOOT_DIR}/themes/$THEME_NAME" + + cp -vrf "$install_dir/." "${REFIND_DIR}/themes/$THEME_NAME/." + cp -vrf "$install_dir/." "${EFI_BOOT_DIR}/themes/$THEME_NAME/." + + # Remove all from "${EFI_BOOT_DIR}" except "themes" + f_list=$(ls -1 "${EFI_BOOT_DIR}" | grep -v "themes") + + for i in ${f_list[@]} + do + rm -vr "${EFI_BOOT_DIR}/${i}" + done + + unset f_list + + # Copy all from "${REFIND_DIR}" to "${EFI_BOOT_DIR}" except "themes" + f_list=$(ls -1 "${REFIND_DIR}" | grep -v "themes") + + for i in ${f_list[@]} + do + if [ -f ${REFIND_DIR}/${i} ]; then + cp -vf "${REFIND_DIR}/${i}" "${EFI_BOOT_DIR}/${i}" + fi + + if [ -d ${REFIND_DIR}/${i} ]; then + cp -vrf "${REFIND_DIR}/${i}" "${EFI_BOOT_DIR}/${i}" + fi + done + + unset f_list + + mv -vf "${EFI_BOOT_DIR}/refind_x64.efi" "${EFI_BOOT_DIR}/bootx64.efi" + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + THEME_NAME="melawy-lera-sugar" + + echo "Removal of theme from EFI partition" + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + if [[ -d "${REFIND_DIR}/themes/$THEME_NAME" ]]; then + rm -vr "${REFIND_DIR}/themes/$THEME_NAME" + echo "Theme uninstalled from ${REFIND_DIR}/themes/$THEME_NAME" + fi + + if [[ -d "${EFI_BOOT_DIR}/themes/$THEME_NAME" ]]; then + rm -vr "${EFI_BOOT_DIR}/themes/$THEME_NAME" + echo "Theme uninstalled from ${EFI_BOOT_DIR}/themes/$THEME_NAME" + fi + + REFIND_CONF_PATH="${REFIND_DIR}/refind.conf" + sed -i "/$THEME_NAME/d" $REFIND_CONF_PATH + + cp -vf "${REFIND_DIR}/refind.conf" "${EFI_BOOT_DIR}/refind.conf" +} + +# Copied from https://raw.githubusercontent.com/jaltuna/refind-theme-nord/main/setup.sh +# Verify EFI System Partition +__has_esp__() { + __find_esp__ + + mount "$ESP" &>/dev/null + [[ -d "$ESP/EFI" ]] && return 0 || return 1 +} + +__find_esp__() { + local parttype + local fstype + local device + + while read -r device; do + read -r parttype fstype ESP <<<"$(lsblk -o "PARTTYPE,FSTYPE,MOUNTPOINT" "$device" 2>/dev/null | awk 'NR==2')" + + [[ "${parttype,,}" != "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" ]] && continue + [[ "${fstype,,}" != "vfat" ]] && continue + [[ -z $(findmnt -sn "$ESP") ]] && continue + + done <<<"$(fdisk -l 2>/dev/null | grep -i efi | cut -d " " -f 1)" + + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/efi" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/boot" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(bootctl --print-esp-path) + if [ -z "${ESP}" ]; then + exit 1 + fi + fi + fi + fi + + echo "Found ${ESP}" + readonly ESP +} diff --git a/MELAWY/Design/Melawy/melawy-icon-theme/.gitignore b/MELAWY/Design/Melawy/melawy-icon-theme/.gitignore new file mode 100644 index 0000000..c90e42e --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-icon-theme/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-icon-theme diff --git a/MELAWY/Design/Melawy/melawy-icon-theme/00_make.sh b/MELAWY/Design/Melawy/melawy-icon-theme/00_make.sh new file mode 100755 index 0000000..30b8975 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-icon-theme/00_make.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "melawy" | beep -f 200 -l 250 -d 100 -r 1 -n -s +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-icon-theme/01_sign.sh b/MELAWY/Design/Melawy/melawy-icon-theme/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-icon-theme/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-icon-theme/PKGBUILD b/MELAWY/Design/Melawy/melawy-icon-theme/PKGBUILD new file mode 100644 index 0000000..46d56b2 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-icon-theme/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.20 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("gtk-update-icon-cache" "hicolor-icon-theme") +optdepends=() +makedepends=("git") +options=("!strip") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/Melawy-icon-theme" +# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +# } + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +prepare() { + cd "$srcdir/$_gitname" + + # Disable running gtk-update-icon-cache + sed -i '/gtk-update-icon-cache/d' install.sh +} + +package() { + cd "$srcdir/$_gitname" + install -d "$pkgdir/usr/share/icons" + ./install.sh -t all -d "$pkgdir/usr/share/icons" +} diff --git a/MELAWY/Design/Melawy/melawy-icon-theme/README.md b/MELAWY/Design/Melawy/melawy-icon-theme/README.md new file mode 100644 index 0000000..1fab4b1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-icon-theme/README.md @@ -0,0 +1,11 @@ +# melawy-icon-theme +Icon theme 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 diff --git a/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/.gitignore b/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/.gitignore new file mode 100644 index 0000000..b296581 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plasma-desktop-theme diff --git a/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/00_make.sh b/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/01_sign.sh b/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/PKGBUILD b/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/PKGBUILD new file mode 100644 index 0000000..05d7130 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.6 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("plasma-desktop") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="Melawy" +THEME_PATH1="/usr/share/plasma/desktoptheme" +THEME_PATH2="/usr/share/aurorae/themes" +THEME_PATH3="/usr/share/Kvantum" + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir$THEME_PATH1" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir$THEME_PATH1/" + + install -d "$pkgdir$THEME_PATH2" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/aurorae/themes/$THEME_NAME-dark" "$pkgdir$THEME_PATH2/" + + install -d "$pkgdir$THEME_PATH3" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/Kvantum/$THEME_NAME-dark" "$pkgdir$THEME_PATH3/" +} diff --git a/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/README.md b/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/README.md new file mode 100644 index 0000000..75343e6 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plasma-desktop-theme/README.md @@ -0,0 +1,11 @@ +# melawy-plasma-desktop-theme +Desktop theme for KDE 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 diff --git a/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/.gitignore b/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/.gitignore new file mode 100644 index 0000000..e88d1e9 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plymouth-theme-hard-install-fenek diff --git a/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/00_make.sh b/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/01_sign.sh b/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/PKGBUILD b/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/PKGBUILD new file mode 100644 index 0000000..37bc099 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/PKGBUILD @@ -0,0 +1,16 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.0 +pkgrel=1 +pkgdesc="Liveuser specific plymouth theme hard install for Melawy Linux" +arch=("any") +url="https://git.melawy.ru/Design" +license=("AGPL3") +source=() +provides=("melawy-plymouth-theme-hard-install") +depends=("melawy-plymouth-theme") +conflicts=("melawy-plymouth-theme-hard-install") + +install=ins.install diff --git a/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/ins.install b/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/ins.install new file mode 100644 index 0000000..59fab8c --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plymouth-theme-hard-install/ins.install @@ -0,0 +1,9 @@ +post_install() { + plymouth-set-default-theme --reset + plymouth-set-default-theme melawy + plymouth-set-default-theme --rebuild-initrd melawy +} + +post_upgrade() { + post_install +} diff --git a/MELAWY/Design/Melawy/melawy-plymouth-theme/.gitignore b/MELAWY/Design/Melawy/melawy-plymouth-theme/.gitignore new file mode 100644 index 0000000..2249dcb --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plymouth-theme/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plymouth-theme-fenek diff --git a/MELAWY/Design/Melawy/melawy-plymouth-theme/00_make.sh b/MELAWY/Design/Melawy/melawy-plymouth-theme/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plymouth-theme/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-plymouth-theme/01_sign.sh b/MELAWY/Design/Melawy/melawy-plymouth-theme/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plymouth-theme/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-plymouth-theme/PKGBUILD b/MELAWY/Design/Melawy/melawy-plymouth-theme/PKGBUILD new file mode 100644 index 0000000..316f45c --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plymouth-theme/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.23 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("plymouth") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="melawy" +THEME_PATH="usr/share/plymouth/themes" + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir/$THEME_PATH/" +} + +install=ins.install diff --git a/MELAWY/Design/Melawy/melawy-plymouth-theme/README.md b/MELAWY/Design/Melawy/melawy-plymouth-theme/README.md new file mode 100644 index 0000000..0c42c99 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plymouth-theme/README.md @@ -0,0 +1,11 @@ +# melawy-plymouth-theme +Plymouth theme 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 diff --git a/MELAWY/Design/Melawy/melawy-plymouth-theme/ins.install b/MELAWY/Design/Melawy/melawy-plymouth-theme/ins.install new file mode 100644 index 0000000..619699c --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-plymouth-theme/ins.install @@ -0,0 +1,9 @@ +post_install() { + if [ "$(grep 'Theme' /etc/plymouth/plymouthd.conf | cut -d'=' -f2)" == "melawy" ]; then + plymouth-set-default-theme -R + fi +} + +post_upgrade() { + post_install +} diff --git a/MELAWY/Design/Melawy/melawy-purple-dark-cursors/.gitignore b/MELAWY/Design/Melawy/melawy-purple-dark-cursors/.gitignore new file mode 100644 index 0000000..61e1354 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-dark-cursors/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-purple-dark-cursors diff --git a/MELAWY/Design/Melawy/melawy-purple-dark-cursors/00_make.sh b/MELAWY/Design/Melawy/melawy-purple-dark-cursors/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-dark-cursors/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-purple-dark-cursors/01_sign.sh b/MELAWY/Design/Melawy/melawy-purple-dark-cursors/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-dark-cursors/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-purple-dark-cursors/PKGBUILD b/MELAWY/Design/Melawy/melawy-purple-dark-cursors/PKGBUILD new file mode 100644 index 0000000..28a00e1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-dark-cursors/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.5 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=() +optdepends=() +makedepends=("git") +options=("!strip") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +# } + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/usr/share/icons" + cp -r "$srcdir/$_gitname/$_gitname" "$pkgdir/usr/share/icons/${_gitname^}" +} diff --git a/MELAWY/Design/Melawy/melawy-purple-dark-cursors/README.md b/MELAWY/Design/Melawy/melawy-purple-dark-cursors/README.md new file mode 100644 index 0000000..1675061 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-dark-cursors/README.md @@ -0,0 +1,15 @@ +# melawy-purple-dark-cursors +Purple dark cursors theme for Melawy Linux + +Building the Bridge Icon set from the Inkscape SVG: + +Dependencies inkscape and xorg-xcursorgen for building. + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/.gitignore b/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/.gitignore new file mode 100644 index 0000000..1ac3d96 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-purple-dark-default-cursors diff --git a/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/00_make.sh b/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/01_sign.sh b/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/PKGBUILD b/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/PKGBUILD new file mode 100644 index 0000000..5d8e6fb --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.3 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=() +optdepends=() +makedepends=("git") +options=("!strip") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +# } + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/usr/share/icons" + cp -r "$srcdir/$_gitname/$_gitname" "$pkgdir/usr/share/icons/${_gitname^}" +} diff --git a/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/README.md b/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/README.md new file mode 100644 index 0000000..939a0e5 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-dark-default-cursors/README.md @@ -0,0 +1,15 @@ +# melawy-purple-dark-default-cursors +Purple dark default cursors theme for Melawy Linux + +Building the Bridge Icon set from the Inkscape SVG: + +Dependencies inkscape and xorg-xcursorgen for building. + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Melawy/melawy-purple-light-cursors/.gitignore b/MELAWY/Design/Melawy/melawy-purple-light-cursors/.gitignore new file mode 100644 index 0000000..0fde390 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-light-cursors/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-purple-light-cursors diff --git a/MELAWY/Design/Melawy/melawy-purple-light-cursors/00_make.sh b/MELAWY/Design/Melawy/melawy-purple-light-cursors/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-light-cursors/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-purple-light-cursors/01_sign.sh b/MELAWY/Design/Melawy/melawy-purple-light-cursors/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-light-cursors/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-purple-light-cursors/PKGBUILD b/MELAWY/Design/Melawy/melawy-purple-light-cursors/PKGBUILD new file mode 100644 index 0000000..28a00e1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-light-cursors/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.5 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=() +optdepends=() +makedepends=("git") +options=("!strip") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +# } + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/usr/share/icons" + cp -r "$srcdir/$_gitname/$_gitname" "$pkgdir/usr/share/icons/${_gitname^}" +} diff --git a/MELAWY/Design/Melawy/melawy-purple-light-cursors/README.md b/MELAWY/Design/Melawy/melawy-purple-light-cursors/README.md new file mode 100644 index 0000000..57ca5d5 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-light-cursors/README.md @@ -0,0 +1,15 @@ +# melawy-purple-light-cursors +Purple light cursors theme for Melawy Linux + +Building the Bridge Icon set from the Inkscape SVG: + +Dependencies inkscape and xorg-xcursorgen for building. + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/.gitignore b/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/.gitignore new file mode 100644 index 0000000..c0698ed --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-purple-light-default-cursors diff --git a/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/00_make.sh b/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/01_sign.sh b/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/PKGBUILD b/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/PKGBUILD new file mode 100644 index 0000000..5d8e6fb --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.3 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=() +optdepends=() +makedepends=("git") +options=("!strip") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +# } + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/usr/share/icons" + cp -r "$srcdir/$_gitname/$_gitname" "$pkgdir/usr/share/icons/${_gitname^}" +} diff --git a/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/README.md b/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/README.md new file mode 100644 index 0000000..12dec37 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-purple-light-default-cursors/README.md @@ -0,0 +1,15 @@ +# melawy-purple-light-default-cursors +Purple light default cursors theme for Melawy Linux + +Building the Bridge Icon set from the Inkscape SVG: + +Dependencies inkscape and xorg-xcursorgen for building. + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Melawy/melawy-red-dark-cursors/.gitignore b/MELAWY/Design/Melawy/melawy-red-dark-cursors/.gitignore new file mode 100644 index 0000000..1cc36ac --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-dark-cursors/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-red-dark-cursors diff --git a/MELAWY/Design/Melawy/melawy-red-dark-cursors/00_make.sh b/MELAWY/Design/Melawy/melawy-red-dark-cursors/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-dark-cursors/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-red-dark-cursors/01_sign.sh b/MELAWY/Design/Melawy/melawy-red-dark-cursors/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-dark-cursors/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-red-dark-cursors/PKGBUILD b/MELAWY/Design/Melawy/melawy-red-dark-cursors/PKGBUILD new file mode 100644 index 0000000..28a00e1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-dark-cursors/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.5 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=() +optdepends=() +makedepends=("git") +options=("!strip") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +# } + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/usr/share/icons" + cp -r "$srcdir/$_gitname/$_gitname" "$pkgdir/usr/share/icons/${_gitname^}" +} diff --git a/MELAWY/Design/Melawy/melawy-red-dark-cursors/README.md b/MELAWY/Design/Melawy/melawy-red-dark-cursors/README.md new file mode 100644 index 0000000..9369903 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-dark-cursors/README.md @@ -0,0 +1,15 @@ +# melawy-red-dark-cursors +Red dark cursors theme for Melawy Linux + +Building the Bridge Icon set from the Inkscape SVG: + +Dependencies inkscape and xorg-xcursorgen for building. + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/.gitignore b/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/.gitignore new file mode 100644 index 0000000..37c913c --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-red-dark-default-cursors diff --git a/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/00_make.sh b/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/01_sign.sh b/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/PKGBUILD b/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/PKGBUILD new file mode 100644 index 0000000..5d8e6fb --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.3 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=() +optdepends=() +makedepends=("git") +options=("!strip") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +# } + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/usr/share/icons" + cp -r "$srcdir/$_gitname/$_gitname" "$pkgdir/usr/share/icons/${_gitname^}" +} diff --git a/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/README.md b/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/README.md new file mode 100644 index 0000000..d23df7c --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-dark-default-cursors/README.md @@ -0,0 +1,15 @@ +# melawy-red-dark-default-cursors +Red dark default cursors theme for Melawy Linux + +Building the Bridge Icon set from the Inkscape SVG: + +Dependencies inkscape and xorg-xcursorgen for building. + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Melawy/melawy-red-light-cursors/.gitignore b/MELAWY/Design/Melawy/melawy-red-light-cursors/.gitignore new file mode 100644 index 0000000..be11bb7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-light-cursors/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-red-light-cursors diff --git a/MELAWY/Design/Melawy/melawy-red-light-cursors/00_make.sh b/MELAWY/Design/Melawy/melawy-red-light-cursors/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-light-cursors/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-red-light-cursors/01_sign.sh b/MELAWY/Design/Melawy/melawy-red-light-cursors/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-light-cursors/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-red-light-cursors/PKGBUILD b/MELAWY/Design/Melawy/melawy-red-light-cursors/PKGBUILD new file mode 100644 index 0000000..28a00e1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-light-cursors/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.5 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=() +optdepends=() +makedepends=("git") +options=("!strip") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +# } + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/usr/share/icons" + cp -r "$srcdir/$_gitname/$_gitname" "$pkgdir/usr/share/icons/${_gitname^}" +} diff --git a/MELAWY/Design/Melawy/melawy-red-light-cursors/README.md b/MELAWY/Design/Melawy/melawy-red-light-cursors/README.md new file mode 100644 index 0000000..00c4c4c --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-light-cursors/README.md @@ -0,0 +1,15 @@ +# melawy-red-light-cursors +Red light cursors theme for Melawy Linux + +Building the Bridge Icon set from the Inkscape SVG: + +Dependencies inkscape and xorg-xcursorgen for building. + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Melawy/melawy-red-light-default-cursors/.gitignore b/MELAWY/Design/Melawy/melawy-red-light-default-cursors/.gitignore new file mode 100644 index 0000000..854fc60 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-light-default-cursors/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-red-light-default-cursors diff --git a/MELAWY/Design/Melawy/melawy-red-light-default-cursors/00_make.sh b/MELAWY/Design/Melawy/melawy-red-light-default-cursors/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-light-default-cursors/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-red-light-default-cursors/01_sign.sh b/MELAWY/Design/Melawy/melawy-red-light-default-cursors/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-light-default-cursors/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-red-light-default-cursors/PKGBUILD b/MELAWY/Design/Melawy/melawy-red-light-default-cursors/PKGBUILD new file mode 100644 index 0000000..5d8e6fb --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-light-default-cursors/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.3 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=() +optdepends=() +makedepends=("git") +options=("!strip") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +# } + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/usr/share/icons" + cp -r "$srcdir/$_gitname/$_gitname" "$pkgdir/usr/share/icons/${_gitname^}" +} diff --git a/MELAWY/Design/Melawy/melawy-red-light-default-cursors/README.md b/MELAWY/Design/Melawy/melawy-red-light-default-cursors/README.md new file mode 100644 index 0000000..3e757be --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-red-light-default-cursors/README.md @@ -0,0 +1,15 @@ +# melawy-red-light-default-cursors +Red light default cursors theme for Melawy Linux + +Building the Bridge Icon set from the Inkscape SVG: + +Dependencies inkscape and xorg-xcursorgen for building. + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/.gitignore b/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/.gitignore new file mode 100644 index 0000000..2f845d8 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-refind-theme-hard-install-fenek diff --git a/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/00_make.sh b/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/01_sign.sh b/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/PKGBUILD b/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/PKGBUILD new file mode 100644 index 0000000..321f924 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/PKGBUILD @@ -0,0 +1,16 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.0 +pkgrel=1 +pkgdesc="Specific refind theme hard install for Melawy Linux" +url="https://git.melawy.ru/Design" +arch=("any") +license=("AGPL3") +source=() +provides=("melawy-refind-theme-hard-install") +depends=("melawy-refind-menu-generator" "melawy-refind-theme") +conflicts=("melawy-refind-theme-hard-install") + +install=ins.install diff --git a/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/ins.install b/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/ins.install new file mode 100644 index 0000000..c95ddc8 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-refind-theme-hard-install/ins.install @@ -0,0 +1,135 @@ +post_install() { + THEME_NAME="melawy" + + if [ -f "/etc/refind-menu-generator/theme.conf" ]; then + echo "$THEME_NAME" > "/etc/refind-menu-generator/theme.conf" + fi + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + REFIND_CONF_PATH="${REFIND_DIR}/refind.conf" + + RESULT=$(grep "theme" $REFIND_CONF_PATH) + + if [[ "$?" = "0" ]]; then + CURRENT_THEME=$(echo $RESULT | cut -d"/" -f2) + if [[ "$?" = "0" ]]; then + sed -e "s/$CURRENT_THEME/$THEME_NAME/g" -i $REFIND_CONF_PATH + fi + else + if [[ -z "$(tail -n 1 -c 1 $REFIND_CONF_PATH)" ]];then + echo "include themes/$THEME_NAME/theme.conf" >> $REFIND_CONF_PATH + else + echo -e "\ninclude themes/$THEME_NAME/theme.conf" >> $REFIND_CONF_PATH + fi + fi + + cp -vf "${REFIND_DIR}/refind.conf" "${EFI_BOOT_DIR}/refind.conf" +} + +post_upgrade() { + post_install +} + +post_remove() { + THEME_NAME="melawy" + + if [ -f "/etc/refind-menu-generator/theme.conf" ]; then + echo "" > "/etc/refind-menu-generator/theme.conf" + fi + + echo "Removal of theme from EFI partition" + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + REFIND_CONF_PATH="${REFIND_DIR}/refind.conf" + sed -i "/$THEME_NAME/d" $REFIND_CONF_PATH + + cp -vf "${REFIND_DIR}/refind.conf" "${EFI_BOOT_DIR}/refind.conf" +} + +# Copied from https://raw.githubusercontent.com/jaltuna/refind-theme-nord/main/setup.sh +# Verify EFI System Partition +__has_esp__() { + __find_esp__ + + mount "$ESP" &>/dev/null + [[ -d "$ESP/EFI" ]] && return 0 || return 1 +} + +__find_esp__() { + local parttype + local fstype + local device + + while read -r device; do + read -r parttype fstype ESP <<<"$(lsblk -o "PARTTYPE,FSTYPE,MOUNTPOINT" "$device" 2>/dev/null | awk 'NR==2')" + + [[ "${parttype,,}" != "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" ]] && continue + [[ "${fstype,,}" != "vfat" ]] && continue + [[ -z $(findmnt -sn "$ESP") ]] && continue + + done <<<"$(fdisk -l 2>/dev/null | grep -i efi | cut -d " " -f 1)" + + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/efi" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/boot" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(bootctl --print-esp-path) + if [ -z "${ESP}" ]; then + exit 1 + fi + fi + fi + fi + + echo "Found ${ESP}" + readonly ESP +} diff --git a/MELAWY/Design/Melawy/melawy-refind-theme/.gitignore b/MELAWY/Design/Melawy/melawy-refind-theme/.gitignore new file mode 100644 index 0000000..cfc5c90 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-refind-theme/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-refind-theme-fenek diff --git a/MELAWY/Design/Melawy/melawy-refind-theme/00_make.sh b/MELAWY/Design/Melawy/melawy-refind-theme/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-refind-theme/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-refind-theme/01_sign.sh b/MELAWY/Design/Melawy/melawy-refind-theme/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-refind-theme/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-refind-theme/PKGBUILD b/MELAWY/Design/Melawy/melawy-refind-theme/PKGBUILD new file mode 100644 index 0000000..949642f --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-refind-theme/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.10 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("refind") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="melawy" +THEME_PATH="usr/share/refind/themes" + +install=ins.install + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir/$THEME_PATH/" +} diff --git a/MELAWY/Design/Melawy/melawy-refind-theme/README.md b/MELAWY/Design/Melawy/melawy-refind-theme/README.md new file mode 100644 index 0000000..67e9b87 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-refind-theme/README.md @@ -0,0 +1,11 @@ +# melawy-refind-theme +rEFInd bootloader theme + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Melawy/melawy-refind-theme/ins.install b/MELAWY/Design/Melawy/melawy-refind-theme/ins.install new file mode 100644 index 0000000..9348d89 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-refind-theme/ins.install @@ -0,0 +1,158 @@ +post_install() { + THEME_NAME="melawy" + local install_dir="/usr/share/refind/themes/$THEME_NAME" + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + if [ -f "${REFIND_DIR}/refind_x64.efi" ]; then + echo "Installing theme in ${REFIND_DIR}/themes" + cd ${install_dir} + + mkdir -p "${REFIND_DIR}/themes/$THEME_NAME" + mkdir -p "${EFI_BOOT_DIR}/themes/$THEME_NAME" + + cp -vrf "$install_dir/." "${REFIND_DIR}/themes/$THEME_NAME/." + cp -vrf "$install_dir/." "${EFI_BOOT_DIR}/themes/$THEME_NAME/." + + # Remove all from "${EFI_BOOT_DIR}" except "themes" + f_list=$(ls -1 "${EFI_BOOT_DIR}" | grep -v "themes") + + for i in ${f_list[@]} + do + rm -vr "${EFI_BOOT_DIR}/${i}" + done + + unset f_list + + # Copy all from "${REFIND_DIR}" to "${EFI_BOOT_DIR}" except "themes" + f_list=$(ls -1 "${REFIND_DIR}" | grep -v "themes") + + for i in ${f_list[@]} + do + if [ -f ${REFIND_DIR}/${i} ]; then + cp -vf "${REFIND_DIR}/${i}" "${EFI_BOOT_DIR}/${i}" + fi + + if [ -d ${REFIND_DIR}/${i} ]; then + cp -vrf "${REFIND_DIR}/${i}" "${EFI_BOOT_DIR}/${i}" + fi + done + + unset f_list + + mv -vf "${EFI_BOOT_DIR}/refind_x64.efi" "${EFI_BOOT_DIR}/bootx64.efi" + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + THEME_NAME="melawy" + + echo "Removal of theme from EFI partition" + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + if [[ -d "${REFIND_DIR}/themes/$THEME_NAME" ]]; then + rm -vr "${REFIND_DIR}/themes/$THEME_NAME" + echo "Theme uninstalled from ${REFIND_DIR}/themes/$THEME_NAME" + fi + + if [[ -d "${EFI_BOOT_DIR}/themes/$THEME_NAME" ]]; then + rm -vr "${EFI_BOOT_DIR}/themes/$THEME_NAME" + echo "Theme uninstalled from ${EFI_BOOT_DIR}/themes/$THEME_NAME" + fi + + REFIND_CONF_PATH="${REFIND_DIR}/refind.conf" + sed -i "/$THEME_NAME/d" $REFIND_CONF_PATH + + cp -vf "${REFIND_DIR}/refind.conf" "${EFI_BOOT_DIR}/refind.conf" +} + +# Copied from https://raw.githubusercontent.com/jaltuna/refind-theme-nord/main/setup.sh +# Verify EFI System Partition +__has_esp__() { + __find_esp__ + + mount "$ESP" &>/dev/null + [[ -d "$ESP/EFI" ]] && return 0 || return 1 +} + +__find_esp__() { + local parttype + local fstype + local device + + while read -r device; do + read -r parttype fstype ESP <<<"$(lsblk -o "PARTTYPE,FSTYPE,MOUNTPOINT" "$device" 2>/dev/null | awk 'NR==2')" + + [[ "${parttype,,}" != "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" ]] && continue + [[ "${fstype,,}" != "vfat" ]] && continue + [[ -z $(findmnt -sn "$ESP") ]] && continue + + done <<<"$(fdisk -l 2>/dev/null | grep -i efi | cut -d " " -f 1)" + + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/efi" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/boot" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(bootctl --print-esp-path) + if [ -z "${ESP}" ]; then + exit 1 + fi + fi + fi + fi + + echo "Found ${ESP}" + readonly ESP +} diff --git a/MELAWY/Design/Melawy/melawy-theme/.gitignore b/MELAWY/Design/Melawy/melawy-theme/.gitignore new file mode 100644 index 0000000..f459dac --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-theme/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-theme diff --git a/MELAWY/Design/Melawy/melawy-theme/00_make.sh b/MELAWY/Design/Melawy/melawy-theme/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-theme/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Melawy/melawy-theme/01_sign.sh b/MELAWY/Design/Melawy/melawy-theme/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-theme/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Melawy/melawy-theme/PKGBUILD b/MELAWY/Design/Melawy/melawy-theme/PKGBUILD new file mode 100644 index 0000000..153f781 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-theme/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.5 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=() +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + cp -vrf --no-dereference --preserve=links --no-preserve=mode "$srcdir/$_gitname/melawy-gtk-theme/usr" "$pkgdir/" + cp -vrf --no-dereference --preserve=links --no-preserve=mode "$srcdir/$_gitname/melawy-kde-theme/usr" "$pkgdir/" +} diff --git a/MELAWY/Design/Melawy/melawy-theme/README.md b/MELAWY/Design/Melawy/melawy-theme/README.md new file mode 100644 index 0000000..61d8c19 --- /dev/null +++ b/MELAWY/Design/Melawy/melawy-theme/README.md @@ -0,0 +1,11 @@ +# melawy-theme +KDE, GTK theme 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 diff --git a/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/.gitignore b/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/.gitignore new file mode 100644 index 0000000..4a9e4dc --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-kde-theme-nier-a2 diff --git a/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/00_make.sh b/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/01_sign.sh b/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/PKGBUILD b/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/PKGBUILD new file mode 100644 index 0000000..a36be5f --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.5 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("melawy-theme") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + cp -vrf --no-dereference --preserve=links --no-preserve=mode "$srcdir/$_gitname/usr" "$pkgdir/" +} diff --git a/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/README.md b/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/README.md new file mode 100644 index 0000000..f310ab3 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-kde-theme-nier-a2/README.md @@ -0,0 +1,11 @@ +# melawy-kde-theme-nier-a2 +KDE theme 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 diff --git a/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/.gitignore b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/.gitignore new file mode 100644 index 0000000..a2f09b6 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plymouth-theme-hard-install-nier-a2 diff --git a/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/00_make.sh b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/01_sign.sh b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/PKGBUILD b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/PKGBUILD new file mode 100644 index 0000000..6927a95 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/PKGBUILD @@ -0,0 +1,16 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.0 +pkgrel=1 +pkgdesc="Liveuser specific plymouth theme hard install Nier A2 for Melawy Linux" +url="https://git.melawy.ru/Design" +arch=("any") +license=("AGPL3") +source=() +provides=("melawy-plymouth-theme-hard-install") +depends=("melawy-plymouth-theme-nier-a2") +conflicts=("melawy-plymouth-theme-hard-install") + +install=ins.install diff --git a/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/ins.install b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/ins.install new file mode 100644 index 0000000..df3d24c --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-hard-install-nier-a2/ins.install @@ -0,0 +1,9 @@ +post_install() { + plymouth-set-default-theme --reset + plymouth-set-default-theme melawy-nier-a2 + plymouth-set-default-theme --rebuild-initrd melawy-nier-a2 +} + +post_upgrade() { + post_install +} diff --git a/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/.gitignore b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/.gitignore new file mode 100644 index 0000000..966c99f --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plymouth-theme-nier-a2 diff --git a/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/00_make.sh b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/01_sign.sh b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/PKGBUILD b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/PKGBUILD new file mode 100644 index 0000000..c2f6b56 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.13 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("plymouth") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="melawy-nier-a2" +THEME_PATH="/usr/share/plymouth/themes" + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir$THEME_PATH/" +} + +install=ins.install diff --git a/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/README.md b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/README.md new file mode 100644 index 0000000..6acb937 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/README.md @@ -0,0 +1,11 @@ +# melawy-plymouth-theme-nier-a2 +Plymouth theme for theme Nier A2 + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/ins.install b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/ins.install new file mode 100644 index 0000000..084771b --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-plymouth-theme-nier-a2/ins.install @@ -0,0 +1,9 @@ +post_install() { + if [ "$(grep 'Theme' /etc/plymouth/plymouthd.conf | cut -d'=' -f2)" == "melawy-nier-a2" ]; then + plymouth-set-default-theme -R + fi +} + +post_upgrade() { + post_install +} diff --git a/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/.gitignore b/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/.gitignore new file mode 100644 index 0000000..2f845d8 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-refind-theme-hard-install-fenek diff --git a/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/00_make.sh b/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/01_sign.sh b/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/PKGBUILD b/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/PKGBUILD new file mode 100644 index 0000000..756909f --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/PKGBUILD @@ -0,0 +1,16 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.0 +pkgrel=1 +pkgdesc="Specific refind theme hard install Nier A2 for Melawy Linux" +url="https://git.melawy.ru/Design" +arch=("any") +license=("AGPL3") +source=() +provides=("melawy-refind-theme-hard-install") +depends=("melawy-refind-menu-generator" "melawy-refind-theme-nier-a2") +conflicts=("melawy-refind-theme-hard-install") + +install=ins.install diff --git a/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/ins.install b/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/ins.install new file mode 100644 index 0000000..7a38e31 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-refind-theme-hard-install-nier-a2/ins.install @@ -0,0 +1,135 @@ +post_install() { + THEME_NAME="melawy-nier-a2" + + if [ -f "/etc/refind-menu-generator/theme.conf" ]; then + echo "$THEME_NAME" > "/etc/refind-menu-generator/theme.conf" + fi + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + REFIND_CONF_PATH="${REFIND_DIR}/refind.conf" + + RESULT=$(grep "theme" $REFIND_CONF_PATH) + + if [[ "$?" = "0" ]]; then + CURRENT_THEME=$(echo $RESULT | cut -d"/" -f2) + if [[ "$?" = "0" ]]; then + sed -e "s/$CURRENT_THEME/$THEME_NAME/g" -i $REFIND_CONF_PATH + fi + else + if [[ -z "$(tail -n 1 -c 1 $REFIND_CONF_PATH)" ]];then + echo "include themes/$THEME_NAME/theme.conf" >> $REFIND_CONF_PATH + else + echo -e "\ninclude themes/$THEME_NAME/theme.conf" >> $REFIND_CONF_PATH + fi + fi + + cp -vf "${REFIND_DIR}/refind.conf" "${EFI_BOOT_DIR}/refind.conf" +} + +post_upgrade() { + post_install +} + +post_remove() { + THEME_NAME="melawy-nier-a2" + + if [ -f "/etc/refind-menu-generator/theme.conf" ]; then + echo "" > "/etc/refind-menu-generator/theme.conf" + fi + + echo "Removal of theme from EFI partition" + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + REFIND_CONF_PATH="${REFIND_DIR}/refind.conf" + sed -i "/$THEME_NAME/d" $REFIND_CONF_PATH + + cp -vf "${REFIND_DIR}/refind.conf" "${EFI_BOOT_DIR}/refind.conf" +} + +# Copied from https://raw.githubusercontent.com/jaltuna/refind-theme-nord/main/setup.sh +# Verify EFI System Partition +__has_esp__() { + __find_esp__ + + mount "$ESP" &>/dev/null + [[ -d "$ESP/EFI" ]] && return 0 || return 1 +} + +__find_esp__() { + local parttype + local fstype + local device + + while read -r device; do + read -r parttype fstype ESP <<<"$(lsblk -o "PARTTYPE,FSTYPE,MOUNTPOINT" "$device" 2>/dev/null | awk 'NR==2')" + + [[ "${parttype,,}" != "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" ]] && continue + [[ "${fstype,,}" != "vfat" ]] && continue + [[ -z $(findmnt -sn "$ESP") ]] && continue + + done <<<"$(fdisk -l 2>/dev/null | grep -i efi | cut -d " " -f 1)" + + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/efi" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/boot" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(bootctl --print-esp-path) + if [ -z "${ESP}" ]; then + exit 1 + fi + fi + fi + fi + + echo "Found ${ESP}" + readonly ESP +} diff --git a/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/.gitignore b/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/.gitignore new file mode 100644 index 0000000..73d18f9 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-refind-theme-nier-a2 diff --git a/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/00_make.sh b/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/01_sign.sh b/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/PKGBUILD b/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/PKGBUILD new file mode 100644 index 0000000..637f171 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.10 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("refind") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="melawy-nier-a2" +THEME_PATH="usr/share/refind/themes" + +install=ins.install + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir/$THEME_PATH/" +} diff --git a/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/README.md b/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/README.md new file mode 100644 index 0000000..cc21643 --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/README.md @@ -0,0 +1,11 @@ +# melawy-refind-theme-nier-a2 +rEFInd bootloader theme Nier A2 + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/ins.install b/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/ins.install new file mode 100644 index 0000000..a33734c --- /dev/null +++ b/MELAWY/Design/Nier-A2/melawy-refind-theme-nier-a2/ins.install @@ -0,0 +1,158 @@ +post_install() { + THEME_NAME="melawy-nier-a2" + local install_dir="/usr/share/refind/themes/$THEME_NAME" + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + if [ -f "${REFIND_DIR}/refind_x64.efi" ]; then + echo "Installing theme in ${REFIND_DIR}/themes" + cd ${install_dir} + + mkdir -p "${REFIND_DIR}/themes/$THEME_NAME" + mkdir -p "${EFI_BOOT_DIR}/themes/$THEME_NAME" + + cp -vrf "$install_dir/." "${REFIND_DIR}/themes/$THEME_NAME/." + cp -vrf "$install_dir/." "${EFI_BOOT_DIR}/themes/$THEME_NAME/." + + # Remove all from "${EFI_BOOT_DIR}" except "themes" + f_list=$(ls -1 "${EFI_BOOT_DIR}" | grep -v "themes") + + for i in ${f_list[@]} + do + rm -vr "${EFI_BOOT_DIR}/${i}" + done + + unset f_list + + # Copy all from "${REFIND_DIR}" to "${EFI_BOOT_DIR}" except "themes" + f_list=$(ls -1 "${REFIND_DIR}" | grep -v "themes") + + for i in ${f_list[@]} + do + if [ -f ${REFIND_DIR}/${i} ]; then + cp -vf "${REFIND_DIR}/${i}" "${EFI_BOOT_DIR}/${i}" + fi + + if [ -d ${REFIND_DIR}/${i} ]; then + cp -vrf "${REFIND_DIR}/${i}" "${EFI_BOOT_DIR}/${i}" + fi + done + + unset f_list + + mv -vf "${EFI_BOOT_DIR}/refind_x64.efi" "${EFI_BOOT_DIR}/bootx64.efi" + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + THEME_NAME="melawy-nier-a2" + + echo "Removal of theme from EFI partition" + + echo "Searching rEFInd installation in EFI partition..." + if ! __has_esp__; then + echo "EFI partition not found" >&2 + exit 1 + fi + + REFIND_DIR=$(find "$ESP" -type d -iname refind) + if ! [[ -d "${REFIND_DIR}" ]]; then + echo "rEFInd not installed in $ESP" >&2 + exit 1 + fi + echo "Found rEFInd in ${REFIND_DIR}" + + EFI_BOOT_DIR=$(find "$ESP" -type d -iname boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname Boot) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + EFI_BOOT_DIR=$(find "$ESP" -type d -iname BOOT) + if ! [[ -d "${EFI_BOOT_DIR}" ]]; then + mkdir -p "$(dirname ${REFIND_DIR})/boot" + EFI_BOOT_DIR="$(dirname ${REFIND_DIR})/boot" + fi + fi + fi + + if [[ -d "${REFIND_DIR}/themes/$THEME_NAME" ]]; then + rm -vr "${REFIND_DIR}/themes/$THEME_NAME" + echo "Theme uninstalled from ${REFIND_DIR}/themes/$THEME_NAME" + fi + + if [[ -d "${EFI_BOOT_DIR}/themes/$THEME_NAME" ]]; then + rm -vr "${EFI_BOOT_DIR}/themes/$THEME_NAME" + echo "Theme uninstalled from ${EFI_BOOT_DIR}/themes/$THEME_NAME" + fi + + REFIND_CONF_PATH="${REFIND_DIR}/refind.conf" + sed -i "/$THEME_NAME/d" $REFIND_CONF_PATH + + cp -vf "${REFIND_DIR}/refind.conf" "${EFI_BOOT_DIR}/refind.conf" +} + +# Copied from https://raw.githubusercontent.com/jaltuna/refind-theme-nord/main/setup.sh +# Verify EFI System Partition +__has_esp__() { + __find_esp__ + + mount "$ESP" &>/dev/null + [[ -d "$ESP/EFI" ]] && return 0 || return 1 +} + +__find_esp__() { + local parttype + local fstype + local device + + while read -r device; do + read -r parttype fstype ESP <<<"$(lsblk -o "PARTTYPE,FSTYPE,MOUNTPOINT" "$device" 2>/dev/null | awk 'NR==2')" + + [[ "${parttype,,}" != "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" ]] && continue + [[ "${fstype,,}" != "vfat" ]] && continue + [[ -z $(findmnt -sn "$ESP") ]] && continue + + done <<<"$(fdisk -l 2>/dev/null | grep -i efi | cut -d " " -f 1)" + + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/efi" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(grep -i "/boot" /etc/fstab | awk '{print $2}') + if [ -z "${ESP}" ]; then + ESP=$(bootctl --print-esp-path) + if [ -z "${ESP}" ]; then + exit 1 + fi + fi + fi + fi + + echo "Found ${ESP}" + readonly ESP +} diff --git a/MELAWY/Design/Win11/melawy-kde-theme-win11/.gitignore b/MELAWY/Design/Win11/melawy-kde-theme-win11/.gitignore new file mode 100644 index 0000000..369a647 --- /dev/null +++ b/MELAWY/Design/Win11/melawy-kde-theme-win11/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-kde-theme-win11 diff --git a/MELAWY/Design/Win11/melawy-kde-theme-win11/00_make.sh b/MELAWY/Design/Win11/melawy-kde-theme-win11/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Win11/melawy-kde-theme-win11/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Win11/melawy-kde-theme-win11/01_sign.sh b/MELAWY/Design/Win11/melawy-kde-theme-win11/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Win11/melawy-kde-theme-win11/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Win11/melawy-kde-theme-win11/PKGBUILD b/MELAWY/Design/Win11/melawy-kde-theme-win11/PKGBUILD new file mode 100644 index 0000000..0a0e9fd --- /dev/null +++ b/MELAWY/Design/Win11/melawy-kde-theme-win11/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.6 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("melawy-theme") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + cp -vrf --no-dereference --preserve=links --no-preserve=mode "$srcdir/$_gitname/usr" "$pkgdir/" +} diff --git a/MELAWY/Design/Win11/melawy-kde-theme-win11/README.md b/MELAWY/Design/Win11/melawy-kde-theme-win11/README.md new file mode 100644 index 0000000..9cc62ba --- /dev/null +++ b/MELAWY/Design/Win11/melawy-kde-theme-win11/README.md @@ -0,0 +1,11 @@ +# melawy-kde-theme-win11 +KDE theme 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 diff --git a/MELAWY/Design/Win11/melawy-kde-theme-win12/.gitignore b/MELAWY/Design/Win11/melawy-kde-theme-win12/.gitignore new file mode 100644 index 0000000..369a647 --- /dev/null +++ b/MELAWY/Design/Win11/melawy-kde-theme-win12/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-kde-theme-win11 diff --git a/MELAWY/Design/Win11/melawy-kde-theme-win12/00_make.sh b/MELAWY/Design/Win11/melawy-kde-theme-win12/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Win11/melawy-kde-theme-win12/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Win11/melawy-kde-theme-win12/01_sign.sh b/MELAWY/Design/Win11/melawy-kde-theme-win12/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Win11/melawy-kde-theme-win12/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Win11/melawy-kde-theme-win12/PKGBUILD b/MELAWY/Design/Win11/melawy-kde-theme-win12/PKGBUILD new file mode 100644 index 0000000..0a0e9fd --- /dev/null +++ b/MELAWY/Design/Win11/melawy-kde-theme-win12/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.6 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("melawy-theme") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + cp -vrf --no-dereference --preserve=links --no-preserve=mode "$srcdir/$_gitname/usr" "$pkgdir/" +} diff --git a/MELAWY/Design/Win11/melawy-kde-theme-win12/README.md b/MELAWY/Design/Win11/melawy-kde-theme-win12/README.md new file mode 100644 index 0000000..1b1cc14 --- /dev/null +++ b/MELAWY/Design/Win11/melawy-kde-theme-win12/README.md @@ -0,0 +1,11 @@ +# melawy-kde-theme-win12 +KDE theme 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 diff --git a/MELAWY/Design/Win11/melawy-win11-icon-theme/.gitignore b/MELAWY/Design/Win11/melawy-win11-icon-theme/.gitignore new file mode 100644 index 0000000..9954dfb --- /dev/null +++ b/MELAWY/Design/Win11/melawy-win11-icon-theme/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-win11-icon-theme diff --git a/MELAWY/Design/Win11/melawy-win11-icon-theme/00_make.sh b/MELAWY/Design/Win11/melawy-win11-icon-theme/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Design/Win11/melawy-win11-icon-theme/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Design/Win11/melawy-win11-icon-theme/01_sign.sh b/MELAWY/Design/Win11/melawy-win11-icon-theme/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Design/Win11/melawy-win11-icon-theme/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Design/Win11/melawy-win11-icon-theme/PKGBUILD b/MELAWY/Design/Win11/melawy-win11-icon-theme/PKGBUILD new file mode 100644 index 0000000..dd778f9 --- /dev/null +++ b/MELAWY/Design/Win11/melawy-win11-icon-theme/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname" "melawy-win11-icon-theme-special" "melawy-win11-icon-theme-white") +pkgver=1.122 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Design/$_gitname" +arch=("any") +license=("AGPL3") +depends=("gtk-update-icon-cache") +optdepends=() +makedepends=("git") +options=(!strip !emptydirs) +backup=() +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package_melawy-win11-icon-theme() { + provides=("${pkgname}") + conflicts=("${pkgname}") + + install -dm755 "${pkgdir}/usr/share/icons" + "${srcdir}/${_gitname}/install.sh" -a -d "${pkgdir}/usr/share/icons" +} + +package_melawy-win11-icon-theme-special() { + provides=("melawy-win11-icon-theme-special") + conflicts=("melawy-win11-icon-theme-special") + + install -dm755 "${pkgdir}/usr/share/icons" + "${srcdir}/${_gitname}/install.sh" -special -d "${pkgdir}/usr/share/icons" +} + +package_melawy-win11-icon-theme-white() { + provides=("melawy-win11-icon-theme-white") + conflicts=("melawy-win11-icon-theme-white") + + install -dm755 "${pkgdir}/usr/share/icons" + "${srcdir}/${_gitname}/install.sh" --white -d "${pkgdir}/usr/share/icons" +} diff --git a/MELAWY/Design/Win11/melawy-win11-icon-theme/README.md b/MELAWY/Design/Win11/melawy-win11-icon-theme/README.md new file mode 100644 index 0000000..77eba81 --- /dev/null +++ b/MELAWY/Design/Win11/melawy-win11-icon-theme/README.md @@ -0,0 +1,33 @@ +# melawy-win11-icon-theme +Icon theme 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 + + +## Win11 Icon Theme +A colorful design icon theme for all linux desktops! + +## Install + +Usage: `./install.sh` **[OPTIONS...]** **[COLOR VARIANTS...]** + +| OPTIONS: | | +|:----------|:------------------------------------------------------------------------------| +| -a | Install all color versions | +| -d | Specify theme destination directory (**Default:** _$HOME/.local/share/icons_) | +| -n | Specify theme name (**Default:** _Tela_) | +| -h | Show this help | + +## view +![view](View-1.png?raw=true) +![view](View-2.png?raw=true) +![view](View-3.png?raw=true) +![view](View-4.png?raw=true) + diff --git a/MELAWY/Design/Win11OS-kde/.gitignore b/MELAWY/Design/Win11OS-kde/.gitignore new file mode 100644 index 0000000..51656ae --- /dev/null +++ b/MELAWY/Design/Win11OS-kde/.gitignore @@ -0,0 +1,5 @@ +* + +!.SRCINFO +!PKGBUILD +!.gitignore diff --git a/MELAWY/Design/Win11OS-kde/PKGBUILD b/MELAWY/Design/Win11OS-kde/PKGBUILD new file mode 100644 index 0000000..bdaf641 --- /dev/null +++ b/MELAWY/Design/Win11OS-kde/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Yamada Hayao + +pkgname=win11os-kde-git +_pkgname=win11os-kde +_gitname=Win11OS-kde +pkgver=r48.b5daaa3 +pkgrel=1 +pkgdesc="Win11OS kde is a clean theme for KDE Plasma desktop" +arch=('any') +url='https://github.com/yeyushengfan258/Win11OS-kde' +license=('GPL') +depends=() +optdepends=() +source=("git+${url}.git") +md5sums=('SKIP') +conflicts=('win11os-kde') + +pkgver() { + cd "${_gitname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + install -dm755 "${pkgdir}/usr/share/Kvantum/" + install -dm755 "${pkgdir}/usr/share/aurorae/themes/" + install -dm755 "${pkgdir}/usr/share/color-schemes/" + install -dm755 "${pkgdir}/usr/share/plasma/desktoptheme/" + install -dm755 "${pkgdir}/usr/share/plasma/layout-templates" + install -dm755 "${pkgdir}/usr/share/plasma/look-and-feel/" + install -dm755 "${pkgdir}/usr/share/wallpapers/" + + find "${srcdir}/${_gitname}" -type f -exec chmod 644 {} \; + + cp -r "${srcdir}/${_gitname}/Kvantum/"* "${pkgdir}/usr/share/Kvantum/" + cp -r "${srcdir}/${_gitname}/aurorae/"* "${pkgdir}/usr/share/aurorae/themes/" + cp -r "${srcdir}/${_gitname}/color-schemes/"*.colors "${pkgdir}/usr/share/color-schemes/" + cp -r "${srcdir}/${_gitname}/plasma/desktoptheme/"* "${pkgdir}/usr/share/plasma/desktoptheme/" + cp -r "${srcdir}/${_gitname}/plasma/look-and-feel/"* "${pkgdir}/usr/share/plasma/look-and-feel/" + cp -r "${srcdir}/${_gitname}/wallpaper/"* "${pkgdir}/usr/share/wallpapers/" +} diff --git a/MELAWY/Design/Win12OS-kde/.gitignore b/MELAWY/Design/Win12OS-kde/.gitignore new file mode 100644 index 0000000..51656ae --- /dev/null +++ b/MELAWY/Design/Win12OS-kde/.gitignore @@ -0,0 +1,5 @@ +* + +!.SRCINFO +!PKGBUILD +!.gitignore diff --git a/MELAWY/Design/Win12OS-kde/PKGBUILD b/MELAWY/Design/Win12OS-kde/PKGBUILD new file mode 100644 index 0000000..4c4338a --- /dev/null +++ b/MELAWY/Design/Win12OS-kde/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Yamada Hayao + +pkgname=win12os-kde-git +_pkgname=win12os-kde +_gitname=Win12OS-kde +pkgver=r3.9951565 +pkgrel=1 +pkgdesc="Win12OS kde is a materia Design theme for KDE Plasma desktop" +arch=('any') +url='https://github.com/yeyushengfan258/Win12OS-kde' +license=('GPL') +depends=() +optdepends=() +source=("git+${url}.git") +md5sums=('SKIP') +conflicts=('win12os-kde') + +pkgver() { + cd "${_gitname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + install -dm755 "${pkgdir}/usr/share/Kvantum/" + install -dm755 "${pkgdir}/usr/share/aurorae/themes/" + install -dm755 "${pkgdir}/usr/share/color-schemes/" + install -dm755 "${pkgdir}/usr/share/plasma/desktoptheme/" + install -dm755 "${pkgdir}/usr/share/plasma/layout-templates" + install -dm755 "${pkgdir}/usr/share/plasma/look-and-feel/" + install -dm755 "${pkgdir}/usr/share/wallpapers/" + + find "${srcdir}/${_gitname}" -type f -exec chmod 644 {} \; + + cp -r "${srcdir}/${_gitname}/Kvantum/"* "${pkgdir}/usr/share/Kvantum/" + cp -r "${srcdir}/${_gitname}/aurorae/"* "${pkgdir}/usr/share/aurorae/themes/" + cp -r "${srcdir}/${_gitname}/color-schemes/"*.colors "${pkgdir}/usr/share/color-schemes/" + cp -r "${srcdir}/${_gitname}/plasma/desktoptheme/"* "${pkgdir}/usr/share/plasma/desktoptheme/" + cp -r "${srcdir}/${_gitname}/plasma/look-and-feel/"* "${pkgdir}/usr/share/plasma/look-and-feel/" + cp -r "${srcdir}/${_gitname}/wallpaper/"* "${pkgdir}/usr/share/wallpapers/" +} diff --git a/MELAWY/Design/clean.sh b/MELAWY/Design/clean.sh new file mode 100755 index 0000000..72f53ab --- /dev/null +++ b/MELAWY/Design/clean.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Design/make.sh b/MELAWY/Design/make.sh new file mode 100755 index 0000000..fbb1b33 --- /dev/null +++ b/MELAWY/Design/make.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f | sort) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + pkg_exist=$(find "$full_path" -type f -newermt "$(date '+%Y-%m-%d 00:00')" -name "*.pkg.tar.xz") + if [ "$pkg_exist" == "" ]; then + make_file=$(find . -mindepth 1 -maxdepth 1 -name "*make*\.sh" -type f) + if [ -f "$make_file" ]; then + echo "bash $make_file" + bash "$make_file" + else + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + unset make_file + + pkg_file=$(find . -mindepth 1 -maxdepth 1 -name "*.pkg.tar.*" -type f) + sig_file="${pkg_file}.sig" + + if [ ! -f "$sig_file" ]; then + for i in *.pkg.tar.xz + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Design/move_to_repo.sh b/MELAWY/Design/move_to_repo.sh new file mode 100755 index 0000000..fcd3a8f --- /dev/null +++ b/MELAWY/Design/move_to_repo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst.sig" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -delete + + +echo "Ready" +sleep 5 + +process=$(ps x | grep konsole | grep $0 | awk '{print $1}') +if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') +fi diff --git a/MELAWY/Design/pwd.txt b/MELAWY/Design/pwd.txt new file mode 100644 index 0000000..36f2795 --- /dev/null +++ b/MELAWY/Design/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD/MELAWY/Design \ No newline at end of file diff --git a/MELAWY/Installer/calamares/.gitignore b/MELAWY/Installer/calamares/.gitignore new file mode 100644 index 0000000..7a309b9 --- /dev/null +++ b/MELAWY/Installer/calamares/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-calamares-qt6-3.3.1 diff --git a/MELAWY/Installer/calamares/00_make.sh b/MELAWY/Installer/calamares/00_make.sh new file mode 100755 index 0000000..fd0b74f --- /dev/null +++ b/MELAWY/Installer/calamares/00_make.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +if [ "$?" -ne 0 ]; then + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force +fi + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Installer/calamares/01_sign.sh b/MELAWY/Installer/calamares/01_sign.sh new file mode 100755 index 0000000..2ce514d --- /dev/null +++ b/MELAWY/Installer/calamares/01_sign.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Installer/calamares/PKGBUILD b/MELAWY/Installer/calamares/PKGBUILD new file mode 100644 index 0000000..29b45ce --- /dev/null +++ b/MELAWY/Installer/calamares/PKGBUILD @@ -0,0 +1,119 @@ +# Maintainer : Valeria Fadeeva +# Calamares installer QT6 KF6 configured for Melawy Linux + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +release_name=$pkgname +pkgver=3.3.0.11045 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://github.com/calamares/calamares" +license=('LGPL') +provides=("calamares") +conflicts=('calamares') +options=('!strip' '!emptydirs' 'debug' 'staticlibs') +sha256sums=('SKIP') +source=("git+$url.git#branch=calamares") + +depends=( +'boost-libs' +'ckbcomp' +'cryptsetup' +'dmidecode' +'doxygen' +'gptfdisk' +'hwinfo' +'kconfig5' +'kcoreaddons5' +'kdbusaddons5' +'ki18n5' +'kpackage5' +'kparts5' +'kpmcore' +'kservice5' +'kwidgetsaddons5' +'libatasmart' +'libpwquality' +'networkmanager' +'parted' +'plasma-framework5' +'polkit-qt5' +'python' +'qt5-declarative' +'qt5-location' +'qt5-quickcontrols' +'qt5-quickcontrols2' +'qt5-svg' +'qt5-tools' +'qt5-virtualkeyboard' +'qt5-webengine' +'qt5-xmlpatterns' +'rsync' +'solid5' +'squashfs-tools' +'udisks2' +'upower' +'yaml-cpp' +) + +makedepends=( +'boost' +'clang' +'cmake' +'extra-cmake-modules' +'gawk' +'git' +'kdbusaddons5' +'kpmcore' +'ninja' +'python-jsonschema' +'python-pyaml' +'python-unidecode' +'qt5-tools' +) + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "3.3.0.%s" "$(git rev-list --count HEAD)" +} + +prepare() { + # Update branding.desc with the proper values + replace_command=' + { + gsub(/\${version}/,version); + gsub(/\${release_name}/,release); + print + } + ' +# awk -i inplace -v version="$(pkgver)" -v release="${release_name}" "$replace_command" "${srcdir}/$_gitname/src/branding/melawy/branding.desc" +} + +build() { + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -B build -S "${srcdir}/$_gitname" \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DSKIP_MODULES="dracut dracutlukscfg \ + dummycpp dummyprocess dummypython dummypythonqt \ + finishedq initcpio interactiveterminal initramfs initramfscfg keyboardq license localeq notesqml oemid \ + openrcdmcryptcfg plasmalnf services-openrc \ + summaryq tracking usersq webview welcomeq" + + export DESTDIR="$srcdir/build" + cmake --build build --parallel $_cpuCount +} + +package() { + DESTDIR="${pkgdir}" cmake --build "${DESTDIR}" --target install + +# install -dm 750 "${pkgdir}/etc/polkit-1/rules.d" +# install -Dm644 "${srcdir}/$_gitname/49-nopasswd-calamares.rules" "${pkgdir}/etc/polkit-1/rules.d/49-nopasswd-calamares.rules" +# +# install -dm 755 "${pkgdir}/usr/bin" +# install -Dm755 "${srcdir}/$_gitname/calamares_polkit" "${pkgdir}/usr/bin/calamares_polkit" +} diff --git a/MELAWY/Installer/calamares/PKGBUILD_6 b/MELAWY/Installer/calamares/PKGBUILD_6 new file mode 100644 index 0000000..a0b69b9 --- /dev/null +++ b/MELAWY/Installer/calamares/PKGBUILD_6 @@ -0,0 +1,119 @@ +# Maintainer : Valeria Fadeeva +# Calamares installer QT6 KF6 configured for Melawy Linux + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +release_name=$pkgname +pkgver=3.3.0.11011 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Melawy-Linux/$_gitname" +license=('LGPL') +provides=("calamares") +conflicts=('calamares') +options=('!strip' '!emptydirs' 'debug' 'staticlibs') +sha256sums=('SKIP') +source=("git+https://git.melawy.ru/Melawy-Linux/$_gitname.git#branch=calamares") + +depends=( +'boost-libs' +'ckbcomp' +'cryptsetup' +'dmidecode' +'doxygen' +'gptfdisk' +'hwinfo' +'kconfig' +'kcoreaddons' +'kdbusaddons' +'ki18n' +'kpackage' +'kparts' +'kpmcore' +'kservice' +'kwidgetsaddons' +'libatasmart' +'libpwquality' +'networkmanager' +'parted' +'plasma-framework' +'polkit-qt6' +'python' +'qt6-5compat' +'qt6-declarative' +'qt6-location' +'qt6-svg' +'qt6-tools' +'qt6-virtualkeyboard' +'qt6-webengine' +'qt5-xmlpatterns' +'rsync' +'solid' +'squashfs-tools' +'udisks2' +'upower' +'yaml-cpp' +'melawy-calamares-config' +) + +makedepends=( +'boost' +'clang' +'cmake' +'extra-cmake-modules' +'gawk' +'git' +'kdbusaddons' +'kpmcore' +'ninja' +'python-jsonschema' +'python-pyaml' +'python-unidecode' +'qt6-tools' +) + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "3.3.0.%s" "$(git rev-list --count HEAD)" +} + +prepare() { + # Update branding.desc with the proper values + replace_command=' + { + gsub(/\${version}/,version); + gsub(/\${release_name}/,release); + print + } + ' + awk -i inplace -v version="$(pkgver)" -v release="${release_name}" "$replace_command" "${srcdir}/$_gitname/src/branding/melawy/branding.desc" +} + +build() { + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -B build -S "${srcdir}/$_gitname" \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DSKIP_MODULES="dracut dracutlukscfg \ + dummycpp dummyprocess dummypython dummypythonqt \ + finishedq initcpio interactiveterminal initramfs initramfscfg keyboardq license localeq notesqml oemid \ + openrcdmcryptcfg plasmalnf services-openrc \ + summaryq tracking usersq webview welcomeq" + + export DESTDIR="$srcdir/build" + cmake --build build --parallel $_cpuCount +} + +package() { + DESTDIR="${pkgdir}" cmake --build "${DESTDIR}" --target install + + install -dm 750 "${pkgdir}/etc/polkit-1/rules.d" + install -Dm644 "${srcdir}/$_gitname/49-nopasswd-calamares.rules" "${pkgdir}/etc/polkit-1/rules.d/49-nopasswd-calamares.rules" + + install -dm 755 "${pkgdir}/usr/bin" + install -Dm755 "${srcdir}/$_gitname/calamares_polkit" "${pkgdir}/usr/bin/calamares_polkit" +} diff --git a/MELAWY/Installer/calamares/PKGBUILD_with_configs b/MELAWY/Installer/calamares/PKGBUILD_with_configs new file mode 100644 index 0000000..2a2217f --- /dev/null +++ b/MELAWY/Installer/calamares/PKGBUILD_with_configs @@ -0,0 +1,130 @@ +# Maintainer : Valeria Fadeeva +# Calamares installer QT6 KF6 configured for Melawy Linux + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +release_name=$pkgname +pkgver=3.3.0.10917 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Melawy-Linux/$_gitname" +license=('LGPL') +provides=("calamares") +conflicts=('calamares') +options=('!strip' '!emptydirs' 'debug' 'staticlibs') +sha256sums=('SKIP') +source=("git+https://git.melawy.ru/Melawy-Linux/$_gitname.git#branch=calamares") + +depends=( +'boost-libs' +'ckbcomp' +'cryptsetup' +'dmidecode' +'doxygen' +'gptfdisk' +'hwinfo' +'kconfig5' +'kcoreaddons5' +'kdbusaddons5' +'ki18n5' +'kpackage5' +'kparts5' +'kpmcore' +'kservice5' +'kwidgetsaddons5' +'libatasmart' +'libpwquality' +'networkmanager' +'parted' +'plasma-framework5' +'polkit-qt5' +'python' +'qt5-declarative' +'qt5-location' +'qt5-quickcontrols' +'qt5-quickcontrols2' +'qt5-svg' +'qt5-tools' +'qt5-virtualkeyboard' +'qt5-webengine' +'qt5-xmlpatterns' +'rsync' +'solid5' +'squashfs-tools' +'udisks2' +'upower' +'yaml-cpp' +'melawy-calamares-config' +) + +makedepends=( +'boost' +'clang' +'cmake' +'extra-cmake-modules' +'gawk' +'git' +'kdbusaddons5' +'kpmcore' +'ninja' +'python-jsonschema' +'python-pyaml' +'python-unidecode' +'qt5-tools' +) + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "3.3.0.%s" "$(git rev-list --count HEAD)" +} + +prepare() { + # Update branding.desc with the proper values + replace_command=' + { + gsub(/\${version}/,version); + gsub(/\${release_name}/,release); + print + } + ' + awk -i inplace -v version="$(pkgver)" -v release="${release_name}" "$replace_command" "${srcdir}/$_gitname/src/branding/melawy/branding.desc" +} + +build() { + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -B build -S "${srcdir}/$_gitname" \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DSKIP_MODULES="bootldr bootloader license notesqml oemid preservefiles partitionq" + + export DESTDIR="$srcdir/build" + cmake --build build --parallel $_cpuCount +} + +package() { + DESTDIR="${pkgdir}" cmake --build "${DESTDIR}" --target install + + install -dm 755 "${pkgdir}/etc/calamares" + cp -f ${srcdir}/$_gitname/settings_offline.conf "$pkgdir/etc/calamares/settings_offline.conf" + cp -f ${srcdir}/$_gitname/settings_online.conf "$pkgdir/etc/calamares/settings_online.conf" + cp -f ${srcdir}/$_gitname/settings_online.conf "$pkgdir/etc/calamares/settings.conf" + + cp -rf ${srcdir}/$_gitname/src/scripts "$pkgdir/etc/calamares" + cp -rf ${srcdir}/$_gitname/src/images "$pkgdir/etc/calamares" + cp -rf ${srcdir}/$_gitname/src/files "$pkgdir/etc/calamares" + + install -dm 755 "${pkgdir}/etc/calamares/modules" + cp -rf ${srcdir}/$_gitname/src/modules/*/*.conf "$pkgdir/etc/calamares/modules" + + cp -f "${srcdir}/$_gitname/src/modules/netinstall/netinstall.yaml" "$pkgdir/etc/calamares/modules/netinstall.yaml" + + install -dm 750 "${pkgdir}/etc/polkit-1/rules.d" + install -Dm644 "${srcdir}/$_gitname/49-nopasswd-calamares.rules" "${pkgdir}/etc/polkit-1/rules.d/49-nopasswd-calamares.rules" + + install -dm 755 "${pkgdir}/usr/bin" + install -Dm755 "${srcdir}/$_gitname/calamares_polkit" "${pkgdir}/usr/bin/calamares_polkit" +} diff --git a/MELAWY/Installer/calamares/README.md b/MELAWY/Installer/calamares/README.md new file mode 100644 index 0000000..b3f029e --- /dev/null +++ b/MELAWY/Installer/calamares/README.md @@ -0,0 +1,11 @@ +# calamares +Calamares installer for Melawy Linux - Development version + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Installer/clean.sh b/MELAWY/Installer/clean.sh new file mode 100755 index 0000000..72f53ab --- /dev/null +++ b/MELAWY/Installer/clean.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Installer/make.sh b/MELAWY/Installer/make.sh new file mode 100755 index 0000000..fbb1b33 --- /dev/null +++ b/MELAWY/Installer/make.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f | sort) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + pkg_exist=$(find "$full_path" -type f -newermt "$(date '+%Y-%m-%d 00:00')" -name "*.pkg.tar.xz") + if [ "$pkg_exist" == "" ]; then + make_file=$(find . -mindepth 1 -maxdepth 1 -name "*make*\.sh" -type f) + if [ -f "$make_file" ]; then + echo "bash $make_file" + bash "$make_file" + else + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + unset make_file + + pkg_file=$(find . -mindepth 1 -maxdepth 1 -name "*.pkg.tar.*" -type f) + sig_file="${pkg_file}.sig" + + if [ ! -f "$sig_file" ]; then + for i in *.pkg.tar.xz + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/.gitignore b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/.gitignore new file mode 100644 index 0000000..7a309b9 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-calamares-qt6-3.3.1 diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/00_make.sh b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/00_make.sh new file mode 100755 index 0000000..fd0b74f --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/00_make.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +if [ "$?" -ne 0 ]; then + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force +fi + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/01_sign.sh b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/PKGBUILD b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/PKGBUILD new file mode 100644 index 0000000..806d7f8 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer : Valeria Fadeeva +# Calamares installer (fork from EndeavourOS) configured for Melawy Linux + +_gitname="melawy-calamares-qt6-3.3.1-stable" +pkgname="$(basename $(pwd))" +release_name=$pkgname +pkgver=3.3.0.11024 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Installer/$_gitname" +license=('LGPL') +provides=('calamares-config') +conflicts=('calamares-config' 'calamares-configs') +options=('!strip' '!emptydirs') +sha256sums=('SKIP') +source=("git+$url.git#branch=calamares") + +depends=() + +makedepends=('git') + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "3.3.0.%s" "$(git rev-list --count HEAD)" +} + +prepare() { + # Update branding.desc with the proper values + replace_command=' + { + gsub(/\${version}/,version); + gsub(/\${release_name}/,release); + print + } + ' + awk -i inplace -v version="$(pkgver)" -v release="${release_name}" "$replace_command" "${srcdir}/$_gitname/src/branding/melawy/branding.desc" +} + + +package() { + install -dm 755 "${pkgdir}/etc/calamares" + + install -dm 755 "${pkgdir}/etc/calamares/branding" + cp -rf ${srcdir}/$_gitname/src/branding/melawy "$pkgdir/etc/calamares/branding" + + cp -f ${srcdir}/$_gitname/settings_offline.conf "$pkgdir/etc/calamares/settings_offline.conf" + cp -f ${srcdir}/$_gitname/settings_online.conf "$pkgdir/etc/calamares/settings_online.conf" + cp -f ${srcdir}/$_gitname/settings_online.conf "$pkgdir/etc/calamares/settings.conf" + + cp -rf ${srcdir}/$_gitname/src/scripts "$pkgdir/etc/calamares" + cp -rf ${srcdir}/$_gitname/src/images "$pkgdir/etc/calamares" + cp -rf ${srcdir}/$_gitname/src/files "$pkgdir/etc/calamares" + + install -dm 755 "${pkgdir}/etc/calamares/modules" + cp -rf ${srcdir}/$_gitname/src/modules/*/*.conf "$pkgdir/etc/calamares/modules" + + cp -f "${srcdir}/$_gitname/src/modules/netinstall/netinstall.yaml" "$pkgdir/etc/calamares/modules/netinstall.yaml" +} diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/README.md b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/README.md new file mode 100644 index 0000000..ef11674 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/README.md @@ -0,0 +1,11 @@ +# calamares +Calamares installer configs for Melawy Linux - Development version + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/FETCH_HEAD b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/FETCH_HEAD new file mode 100644 index 0000000..a81b0a6 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/FETCH_HEAD @@ -0,0 +1 @@ +0f53d7d4c7cafd55cbd96cb7a38aa7aa8eb43722 not-for-merge branch 'calamares' of https://git.melawy.ru/Installer/melawy-calamares-qt6-3.3.1-stable diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/HEAD b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/HEAD new file mode 100644 index 0000000..015d909 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/HEAD @@ -0,0 +1 @@ +ref: refs/heads/calamares diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/config b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/config new file mode 100644 index 0000000..cca2117 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/config @@ -0,0 +1,8 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true +[remote "origin"] + url = https://git.melawy.ru/Installer/melawy-calamares-qt6-3.3.1-stable.git + fetch = +refs/*:refs/* + mirror = true diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/description b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/applypatch-msg.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/commit-msg.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/fsmonitor-watchman.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/fsmonitor-watchman.sample new file mode 100755 index 0000000..23e856f --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/fsmonitor-watchman.sample @@ -0,0 +1,174 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use IPC::Open2; + +# An example hook script to integrate Watchman +# (https://facebook.github.io/watchman/) with git to speed up detecting +# new and modified files. +# +# The hook is passed a version (currently 2) and last update token +# formatted as a string and outputs to stdout a new update token and +# all files that have been modified since the update token. Paths must +# be relative to the root of the working tree and separated by a single NUL. +# +# To enable this hook, rename this file to "query-watchman" and set +# 'git config core.fsmonitor .git/hooks/query-watchman' +# +my ($version, $last_update_token) = @ARGV; + +# Uncomment for debugging +# print STDERR "$0 $version $last_update_token\n"; + +# Check the hook interface version +if ($version ne 2) { + die "Unsupported query-fsmonitor hook version '$version'.\n" . + "Falling back to scanning...\n"; +} + +my $git_work_tree = get_working_dir(); + +my $retry = 1; + +my $json_pkg; +eval { + require JSON::XS; + $json_pkg = "JSON::XS"; + 1; +} or do { + require JSON::PP; + $json_pkg = "JSON::PP"; +}; + +launch_watchman(); + +sub launch_watchman { + my $o = watchman_query(); + if (is_work_tree_watched($o)) { + output_result($o->{clock}, @{$o->{files}}); + } +} + +sub output_result { + my ($clockid, @files) = @_; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # binmode $fh, ":utf8"; + # print $fh "$clockid\n@files\n"; + # close $fh; + + binmode STDOUT, ":utf8"; + print $clockid; + print "\0"; + local $, = "\0"; + print @files; +} + +sub watchman_clock { + my $response = qx/watchman clock "$git_work_tree"/; + die "Failed to get clock id on '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + + return $json_pkg->new->utf8->decode($response); +} + +sub watchman_query { + my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') + or die "open2() failed: $!\n" . + "Falling back to scanning...\n"; + + # In the query expression below we're asking for names of files that + # changed since $last_update_token but not from the .git folder. + # + # To accomplish this, we're using the "since" generator to use the + # recency index to select candidate nodes and "fields" to limit the + # output to file names only. Then we're using the "expression" term to + # further constrain the results. + my $last_update_line = ""; + if (substr($last_update_token, 0, 1) eq "c") { + $last_update_token = "\"$last_update_token\""; + $last_update_line = qq[\n"since": $last_update_token,]; + } + my $query = <<" END"; + ["query", "$git_work_tree", {$last_update_line + "fields": ["name"], + "expression": ["not", ["dirname", ".git"]] + }] + END + + # Uncomment for debugging the watchman query + # open (my $fh, ">", ".git/watchman-query.json"); + # print $fh $query; + # close $fh; + + print CHLD_IN $query; + close CHLD_IN; + my $response = do {local $/; }; + + # Uncomment for debugging the watch response + # open ($fh, ">", ".git/watchman-response.json"); + # print $fh $response; + # close $fh; + + die "Watchman: command returned no output.\n" . + "Falling back to scanning...\n" if $response eq ""; + die "Watchman: command returned invalid output: $response\n" . + "Falling back to scanning...\n" unless $response =~ /^\{/; + + return $json_pkg->new->utf8->decode($response); +} + +sub is_work_tree_watched { + my ($output) = @_; + my $error = $output->{error}; + if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) { + $retry--; + my $response = qx/watchman watch "$git_work_tree"/; + die "Failed to make watchman watch '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + $output = $json_pkg->new->utf8->decode($response); + $error = $output->{error}; + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # close $fh; + + # Watchman will always return all files on the first query so + # return the fast "everything is dirty" flag to git and do the + # Watchman query just to get it over with now so we won't pay + # the cost in git to look up each individual file. + my $o = watchman_clock(); + $error = $output->{error}; + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + output_result($o->{clock}, ("/")); + $last_update_token = $o->{clock}; + + eval { launch_watchman() }; + return 0; + } + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + return 1; +} + +sub get_working_dir { + my $working_dir; + if ($^O =~ 'msys' || $^O =~ 'cygwin') { + $working_dir = Win32::GetCwd(); + $working_dir =~ tr/\\/\//; + } else { + require Cwd; + $working_dir = Cwd::cwd(); + } + + return $working_dir; +} diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/post-update.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-applypatch.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-commit.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-merge-commit.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-push.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-push.sample new file mode 100755 index 0000000..4ce688d --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +zero=$(git hash-object --stdin &2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-rebase.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-receive.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/prepare-commit-msg.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/push-to-checkout.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/push-to-checkout.sample new file mode 100755 index 0000000..af5a0c0 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/push-to-checkout.sample @@ -0,0 +1,78 @@ +#!/bin/sh + +# An example hook script to update a checked-out tree on a git push. +# +# This hook is invoked by git-receive-pack(1) when it reacts to git +# push and updates reference(s) in its repository, and when the push +# tries to update the branch that is currently checked out and the +# receive.denyCurrentBranch configuration variable is set to +# updateInstead. +# +# By default, such a push is refused if the working tree and the index +# of the remote repository has any difference from the currently +# checked out commit; when both the working tree and the index match +# the current commit, they are updated to match the newly pushed tip +# of the branch. This hook is to be used to override the default +# behaviour; however the code below reimplements the default behaviour +# as a starting point for convenient modification. +# +# The hook receives the commit with which the tip of the current +# branch is going to be updated: +commit=$1 + +# It can exit with a non-zero status to refuse the push (when it does +# so, it must not modify the index or the working tree). +die () { + echo >&2 "$*" + exit 1 +} + +# Or it can make any necessary changes to the working tree and to the +# index to bring them to the desired state when the tip of the current +# branch is updated to the new commit, and exit with a zero status. +# +# For example, the hook can simply run git read-tree -u -m HEAD "$1" +# in order to emulate git fetch that is run in the reverse direction +# with git push, as the two-tree form of git read-tree -u -m is +# essentially the same as git switch or git checkout that switches +# branches while keeping the local changes in the working tree that do +# not interfere with the difference between the branches. + +# The below is a more-or-less exact translation to shell of the C code +# for the default behaviour for git's push-to-checkout hook defined in +# the push_to_deploy() function in builtin/receive-pack.c. +# +# Note that the hook will be executed from the repository directory, +# not from the working tree, so if you want to perform operations on +# the working tree, you will have to adapt your code accordingly, e.g. +# by adding "cd .." or using relative paths. + +if ! git update-index -q --ignore-submodules --refresh +then + die "Up-to-date check failed" +fi + +if ! git diff-files --quiet --ignore-submodules -- +then + die "Working directory has unstaged changes" +fi + +# This is a rough translation of: +# +# head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX +if git cat-file -e HEAD 2>/dev/null +then + head=HEAD +else + head=$(git hash-object -t tree --stdin &2 + exit 1 +} + +unset GIT_DIR GIT_WORK_TREE +cd "$worktree" && + +if grep -q "^diff --git " "$1" +then + validate_patch "$1" +else + validate_cover_letter "$1" +fi && + +if test "$GIT_SENDEMAIL_FILE_COUNTER" = "$GIT_SENDEMAIL_FILE_TOTAL" +then + git config --unset-all sendemail.validateWorktree && + trap 'git worktree remove -ff "$worktree"' EXIT && + validate_series +fi diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/update.sample b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/update.sample new file mode 100755 index 0000000..c4d426b --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero=$(git hash-object --stdin &2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/info/exclude b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/objects/0f/53d7d4c7cafd55cbd96cb7a38aa7aa8eb43722 b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/objects/0f/53d7d4c7cafd55cbd96cb7a38aa7aa8eb43722 new file mode 100644 index 0000000..827d18d --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/objects/0f/53d7d4c7cafd55cbd96cb7a38aa7aa8eb43722 @@ -0,0 +1,3 @@ +xM +0`9EBӀ+oIfƖ{~ ={25m=Zcyhݘz Zg/NzAt9d ٲ#[p`Xѷ4KH߉E6җ. +Msr7}@mzLMiO \ No newline at end of file diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/objects/20/083ed24e773f9f790ef2d228d274c1d9de67ad b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/objects/20/083ed24e773f9f790ef2d228d274c1d9de67ad new file mode 100644 index 0000000..c908150 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1-stable/melawy-calamares-qt6-3.3.1-stable/objects/20/083ed24e773f9f790ef2d228d274c1d9de67ad @@ -0,0 +1 @@ +xA1Fa9EBSRD\ nGWޗa Zpj+yf*9x&B7v} .jFѐVWBEG\N7x_ +# Calamares installer (fork from EndeavourOS) configured for Melawy Linux + +_gitname="melawy-calamares-qt6-3.3.1" +pkgname="$(basename $(pwd))" +release_name=$pkgname +pkgver=3.3.0.11046 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Installer/$_gitname" +license=('LGPL') +provides=('calamares-config') +conflicts=('calamares-config' 'calamares-configs') +options=('!strip' '!emptydirs') +sha256sums=('SKIP') +source=("git+$url.git#branch=calamares") + +depends=() + +makedepends=('git') + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "3.3.0.%s" "$(git rev-list --count HEAD)" +} + +prepare() { + # Update branding.desc with the proper values + replace_command=' + { + gsub(/\${version}/,version); + gsub(/\${release_name}/,release); + print + } + ' + awk -i inplace -v version="$(pkgver)" -v release="${release_name}" "$replace_command" "${srcdir}/$_gitname/src/branding/melawy/branding.desc" +} + + +package() { + install -dm 755 "${pkgdir}/etc/calamares" + + install -dm 755 "${pkgdir}/etc/calamares/branding" + cp -rf ${srcdir}/$_gitname/src/branding/melawy "$pkgdir/etc/calamares/branding" + + cp -f ${srcdir}/$_gitname/settings_offline.conf "$pkgdir/etc/calamares/settings_offline.conf" + cp -f ${srcdir}/$_gitname/settings_online.conf "$pkgdir/etc/calamares/settings_online.conf" + cp -f ${srcdir}/$_gitname/settings_online.conf "$pkgdir/etc/calamares/settings.conf" + + cp -rf ${srcdir}/$_gitname/src/scripts "$pkgdir/etc/calamares" + cp -rf ${srcdir}/$_gitname/src/images "$pkgdir/etc/calamares" + cp -rf ${srcdir}/$_gitname/src/files "$pkgdir/etc/calamares" + + install -dm 755 "${pkgdir}/etc/calamares/modules" + cp -rf ${srcdir}/$_gitname/src/modules/*/*.conf "$pkgdir/etc/calamares/modules" + + cp -f "${srcdir}/$_gitname/src/modules/netinstall/netinstall.yaml" "$pkgdir/etc/calamares/modules/netinstall.yaml" +} diff --git a/MELAWY/Installer/melawy-calamares-config-3.3.1/README.md b/MELAWY/Installer/melawy-calamares-config-3.3.1/README.md new file mode 100644 index 0000000..ef11674 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-config-3.3.1/README.md @@ -0,0 +1,11 @@ +# calamares +Calamares installer configs for Melawy Linux - Development version + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/.gitignore b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/.gitignore new file mode 100644 index 0000000..7a309b9 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-calamares-qt6-3.3.1 diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/00_make.sh b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/00_make.sh new file mode 100755 index 0000000..fd0b74f --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/00_make.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +if [ "$?" -ne 0 ]; then + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force +fi + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/01_sign.sh b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/01_sign.sh new file mode 100755 index 0000000..2ce514d --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/01_sign.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/PKGBUILD b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/PKGBUILD new file mode 100644 index 0000000..260f515 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/PKGBUILD @@ -0,0 +1,120 @@ +# Maintainer : Valeria Fadeeva +# Calamares installer QT6 KF6 configured for Melawy Linux + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +release_name=$pkgname +pkgver=3.3.0.11022 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Installer/$_gitname" +license=('LGPL') +provides=("calamares") +conflicts=('calamares') +options=('!strip' '!emptydirs' 'debug' 'staticlibs') +sha256sums=('SKIP') +source=("git+$url.git#branch=calamares") + +depends=( +'boost-libs' +'ckbcomp' +'cryptsetup' +'dmidecode' +'doxygen' +'gptfdisk' +'hwinfo' +'kconfig5' +'kcoreaddons5' +'kdbusaddons5' +'ki18n5' +'kpackage5' +'kparts5' +'kpmcore' +'kservice5' +'kwidgetsaddons5' +'libatasmart' +'libpwquality' +'networkmanager' +'parted' +'plasma-framework5' +'polkit-qt5' +'python' +'qt5-declarative' +'qt5-location' +'qt5-quickcontrols' +'qt5-quickcontrols2' +'qt5-svg' +'qt5-tools' +'qt5-virtualkeyboard' +'qt5-webengine' +'qt5-xmlpatterns' +'rsync' +'solid5' +'squashfs-tools' +'udisks2' +'upower' +'yaml-cpp' +'melawy-calamares-config-3.3.1-stable' +) + +makedepends=( +'boost' +'clang' +'cmake' +'extra-cmake-modules' +'gawk' +'git' +'kdbusaddons5' +'kpmcore' +'ninja' +'python-jsonschema' +'python-pyaml' +'python-unidecode' +'qt5-tools' +) + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "3.3.0.%s" "$(git rev-list --count HEAD)" +} + +prepare() { + # Update branding.desc with the proper values + replace_command=' + { + gsub(/\${version}/,version); + gsub(/\${release_name}/,release); + print + } + ' + awk -i inplace -v version="$(pkgver)" -v release="${release_name}" "$replace_command" "${srcdir}/$_gitname/src/branding/melawy/branding.desc" +} + +build() { + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -B build -S "${srcdir}/$_gitname" \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DSKIP_MODULES="dracut dracutlukscfg \ + dummycpp dummyprocess dummypython dummypythonqt \ + finishedq initcpio interactiveterminal initramfs initramfscfg keyboardq license localeq notesqml oemid \ + openrcdmcryptcfg plasmalnf services-openrc \ + summaryq tracking usersq webview welcomeq" + + export DESTDIR="$srcdir/build" + cmake --build build --parallel $_cpuCount +} + +package() { + DESTDIR="${pkgdir}" cmake --build "${DESTDIR}" --target install + + install -dm 750 "${pkgdir}/etc/polkit-1/rules.d" + install -Dm644 "${srcdir}/$_gitname/49-nopasswd-calamares.rules" "${pkgdir}/etc/polkit-1/rules.d/49-nopasswd-calamares.rules" + + install -dm 755 "${pkgdir}/usr/bin" + install -Dm755 "${srcdir}/$_gitname/calamares_polkit" "${pkgdir}/usr/bin/calamares_polkit" +} diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/PKGBUILD_6 b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/PKGBUILD_6 new file mode 100644 index 0000000..a0b69b9 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/PKGBUILD_6 @@ -0,0 +1,119 @@ +# Maintainer : Valeria Fadeeva +# Calamares installer QT6 KF6 configured for Melawy Linux + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +release_name=$pkgname +pkgver=3.3.0.11011 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Melawy-Linux/$_gitname" +license=('LGPL') +provides=("calamares") +conflicts=('calamares') +options=('!strip' '!emptydirs' 'debug' 'staticlibs') +sha256sums=('SKIP') +source=("git+https://git.melawy.ru/Melawy-Linux/$_gitname.git#branch=calamares") + +depends=( +'boost-libs' +'ckbcomp' +'cryptsetup' +'dmidecode' +'doxygen' +'gptfdisk' +'hwinfo' +'kconfig' +'kcoreaddons' +'kdbusaddons' +'ki18n' +'kpackage' +'kparts' +'kpmcore' +'kservice' +'kwidgetsaddons' +'libatasmart' +'libpwquality' +'networkmanager' +'parted' +'plasma-framework' +'polkit-qt6' +'python' +'qt6-5compat' +'qt6-declarative' +'qt6-location' +'qt6-svg' +'qt6-tools' +'qt6-virtualkeyboard' +'qt6-webengine' +'qt5-xmlpatterns' +'rsync' +'solid' +'squashfs-tools' +'udisks2' +'upower' +'yaml-cpp' +'melawy-calamares-config' +) + +makedepends=( +'boost' +'clang' +'cmake' +'extra-cmake-modules' +'gawk' +'git' +'kdbusaddons' +'kpmcore' +'ninja' +'python-jsonschema' +'python-pyaml' +'python-unidecode' +'qt6-tools' +) + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "3.3.0.%s" "$(git rev-list --count HEAD)" +} + +prepare() { + # Update branding.desc with the proper values + replace_command=' + { + gsub(/\${version}/,version); + gsub(/\${release_name}/,release); + print + } + ' + awk -i inplace -v version="$(pkgver)" -v release="${release_name}" "$replace_command" "${srcdir}/$_gitname/src/branding/melawy/branding.desc" +} + +build() { + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -B build -S "${srcdir}/$_gitname" \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DSKIP_MODULES="dracut dracutlukscfg \ + dummycpp dummyprocess dummypython dummypythonqt \ + finishedq initcpio interactiveterminal initramfs initramfscfg keyboardq license localeq notesqml oemid \ + openrcdmcryptcfg plasmalnf services-openrc \ + summaryq tracking usersq webview welcomeq" + + export DESTDIR="$srcdir/build" + cmake --build build --parallel $_cpuCount +} + +package() { + DESTDIR="${pkgdir}" cmake --build "${DESTDIR}" --target install + + install -dm 750 "${pkgdir}/etc/polkit-1/rules.d" + install -Dm644 "${srcdir}/$_gitname/49-nopasswd-calamares.rules" "${pkgdir}/etc/polkit-1/rules.d/49-nopasswd-calamares.rules" + + install -dm 755 "${pkgdir}/usr/bin" + install -Dm755 "${srcdir}/$_gitname/calamares_polkit" "${pkgdir}/usr/bin/calamares_polkit" +} diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/PKGBUILD_with_configs b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/PKGBUILD_with_configs new file mode 100644 index 0000000..2a2217f --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/PKGBUILD_with_configs @@ -0,0 +1,130 @@ +# Maintainer : Valeria Fadeeva +# Calamares installer QT6 KF6 configured for Melawy Linux + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +release_name=$pkgname +pkgver=3.3.0.10917 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Melawy-Linux/$_gitname" +license=('LGPL') +provides=("calamares") +conflicts=('calamares') +options=('!strip' '!emptydirs' 'debug' 'staticlibs') +sha256sums=('SKIP') +source=("git+https://git.melawy.ru/Melawy-Linux/$_gitname.git#branch=calamares") + +depends=( +'boost-libs' +'ckbcomp' +'cryptsetup' +'dmidecode' +'doxygen' +'gptfdisk' +'hwinfo' +'kconfig5' +'kcoreaddons5' +'kdbusaddons5' +'ki18n5' +'kpackage5' +'kparts5' +'kpmcore' +'kservice5' +'kwidgetsaddons5' +'libatasmart' +'libpwquality' +'networkmanager' +'parted' +'plasma-framework5' +'polkit-qt5' +'python' +'qt5-declarative' +'qt5-location' +'qt5-quickcontrols' +'qt5-quickcontrols2' +'qt5-svg' +'qt5-tools' +'qt5-virtualkeyboard' +'qt5-webengine' +'qt5-xmlpatterns' +'rsync' +'solid5' +'squashfs-tools' +'udisks2' +'upower' +'yaml-cpp' +'melawy-calamares-config' +) + +makedepends=( +'boost' +'clang' +'cmake' +'extra-cmake-modules' +'gawk' +'git' +'kdbusaddons5' +'kpmcore' +'ninja' +'python-jsonschema' +'python-pyaml' +'python-unidecode' +'qt5-tools' +) + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "3.3.0.%s" "$(git rev-list --count HEAD)" +} + +prepare() { + # Update branding.desc with the proper values + replace_command=' + { + gsub(/\${version}/,version); + gsub(/\${release_name}/,release); + print + } + ' + awk -i inplace -v version="$(pkgver)" -v release="${release_name}" "$replace_command" "${srcdir}/$_gitname/src/branding/melawy/branding.desc" +} + +build() { + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -B build -S "${srcdir}/$_gitname" \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DSKIP_MODULES="bootldr bootloader license notesqml oemid preservefiles partitionq" + + export DESTDIR="$srcdir/build" + cmake --build build --parallel $_cpuCount +} + +package() { + DESTDIR="${pkgdir}" cmake --build "${DESTDIR}" --target install + + install -dm 755 "${pkgdir}/etc/calamares" + cp -f ${srcdir}/$_gitname/settings_offline.conf "$pkgdir/etc/calamares/settings_offline.conf" + cp -f ${srcdir}/$_gitname/settings_online.conf "$pkgdir/etc/calamares/settings_online.conf" + cp -f ${srcdir}/$_gitname/settings_online.conf "$pkgdir/etc/calamares/settings.conf" + + cp -rf ${srcdir}/$_gitname/src/scripts "$pkgdir/etc/calamares" + cp -rf ${srcdir}/$_gitname/src/images "$pkgdir/etc/calamares" + cp -rf ${srcdir}/$_gitname/src/files "$pkgdir/etc/calamares" + + install -dm 755 "${pkgdir}/etc/calamares/modules" + cp -rf ${srcdir}/$_gitname/src/modules/*/*.conf "$pkgdir/etc/calamares/modules" + + cp -f "${srcdir}/$_gitname/src/modules/netinstall/netinstall.yaml" "$pkgdir/etc/calamares/modules/netinstall.yaml" + + install -dm 750 "${pkgdir}/etc/polkit-1/rules.d" + install -Dm644 "${srcdir}/$_gitname/49-nopasswd-calamares.rules" "${pkgdir}/etc/polkit-1/rules.d/49-nopasswd-calamares.rules" + + install -dm 755 "${pkgdir}/usr/bin" + install -Dm755 "${srcdir}/$_gitname/calamares_polkit" "${pkgdir}/usr/bin/calamares_polkit" +} diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/README.md b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/README.md new file mode 100644 index 0000000..b3f029e --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1-stable/README.md @@ -0,0 +1,11 @@ +# calamares +Calamares installer for Melawy Linux - Development version + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1/.gitignore b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/.gitignore new file mode 100644 index 0000000..7a309b9 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-calamares-qt6-3.3.1 diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1/00_make.sh b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/00_make.sh new file mode 100755 index 0000000..fd0b74f --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/00_make.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +if [ "$?" -ne 0 ]; then + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force +fi + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1/01_sign.sh b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/01_sign.sh new file mode 100755 index 0000000..2ce514d --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/01_sign.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1/02_install.sh b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/02_install.sh new file mode 100755 index 0000000..5b2e5dd --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/02_install.sh @@ -0,0 +1,6 @@ +#!/bin/bash + + +sudo pacman -U $(ls -1 . | grep '\.pkg\.tar\.xz$' | tail -n 1) + +echo "Ready" diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1/PKGBUILD b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/PKGBUILD new file mode 100644 index 0000000..d793136 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/PKGBUILD @@ -0,0 +1,120 @@ +# Maintainer : Valeria Fadeeva +# Calamares installer QT6 KF6 configured for Melawy Linux + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +release_name=$pkgname +pkgver=3.3.0.11046 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Installer/$_gitname" +license=('LGPL') +provides=("calamares") +conflicts=('calamares') +options=('!strip' '!emptydirs' 'debug' 'staticlibs') +sha256sums=('SKIP') +source=("git+$url.git#branch=calamares") + +depends=( +'boost-libs' +'ckbcomp' +'cryptsetup' +'dmidecode' +'doxygen' +'gptfdisk' +'hwinfo' +'kconfig5' +'kcoreaddons5' +'kdbusaddons5' +'ki18n5' +'kpackage5' +'kparts5' +'kpmcore' +'kservice5' +'kwidgetsaddons5' +'libatasmart' +'libpwquality' +'networkmanager' +'parted' +'plasma-framework5' +'polkit-qt5' +'python' +'qt5-declarative' +'qt5-location' +'qt5-quickcontrols' +'qt5-quickcontrols2' +'qt5-svg' +'qt5-tools' +'qt5-virtualkeyboard' +'qt5-webengine' +'qt5-xmlpatterns' +'rsync' +'solid5' +'squashfs-tools' +'udisks2' +'upower' +'yaml-cpp' +'melawy-calamares-config-3.3.1-stable' +) + +makedepends=( +'boost' +'clang' +'cmake' +'extra-cmake-modules' +'gawk' +'git' +'kdbusaddons5' +'kpmcore' +'ninja' +'python-jsonschema' +'python-pyaml' +'python-unidecode' +'qt5-tools' +) + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "3.3.0.%s" "$(git rev-list --count HEAD)" +} + +prepare() { + # Update branding.desc with the proper values + replace_command=' + { + gsub(/\${version}/,version); + gsub(/\${release_name}/,release); + print + } + ' + awk -i inplace -v version="$(pkgver)" -v release="${release_name}" "$replace_command" "${srcdir}/$_gitname/src/branding/melawy/branding.desc" +} + +build() { + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -B build -S "${srcdir}/$_gitname" \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DSKIP_MODULES="dracut dracutlukscfg \ + dummycpp dummyprocess dummypython dummypythonqt \ + finishedq initcpio interactiveterminal initramfs initramfscfg keyboardq license localeq notesqml oemid \ + openrcdmcryptcfg plasmalnf services-openrc \ + summaryq tracking usersq webview welcomeq" + + export DESTDIR="$srcdir/build" + cmake --build build --parallel $_cpuCount +} + +package() { + DESTDIR="${pkgdir}" cmake --build "${DESTDIR}" --target install + + install -dm 750 "${pkgdir}/etc/polkit-1/rules.d" + install -Dm644 "${srcdir}/$_gitname/49-nopasswd-calamares.rules" "${pkgdir}/etc/polkit-1/rules.d/49-nopasswd-calamares.rules" + + install -dm 755 "${pkgdir}/usr/bin" + install -Dm755 "${srcdir}/$_gitname/calamares_polkit" "${pkgdir}/usr/bin/calamares_polkit" +} diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1/PKGBUILD_6 b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/PKGBUILD_6 new file mode 100644 index 0000000..a0b69b9 --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/PKGBUILD_6 @@ -0,0 +1,119 @@ +# Maintainer : Valeria Fadeeva +# Calamares installer QT6 KF6 configured for Melawy Linux + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +release_name=$pkgname +pkgver=3.3.0.11011 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Melawy-Linux/$_gitname" +license=('LGPL') +provides=("calamares") +conflicts=('calamares') +options=('!strip' '!emptydirs' 'debug' 'staticlibs') +sha256sums=('SKIP') +source=("git+https://git.melawy.ru/Melawy-Linux/$_gitname.git#branch=calamares") + +depends=( +'boost-libs' +'ckbcomp' +'cryptsetup' +'dmidecode' +'doxygen' +'gptfdisk' +'hwinfo' +'kconfig' +'kcoreaddons' +'kdbusaddons' +'ki18n' +'kpackage' +'kparts' +'kpmcore' +'kservice' +'kwidgetsaddons' +'libatasmart' +'libpwquality' +'networkmanager' +'parted' +'plasma-framework' +'polkit-qt6' +'python' +'qt6-5compat' +'qt6-declarative' +'qt6-location' +'qt6-svg' +'qt6-tools' +'qt6-virtualkeyboard' +'qt6-webengine' +'qt5-xmlpatterns' +'rsync' +'solid' +'squashfs-tools' +'udisks2' +'upower' +'yaml-cpp' +'melawy-calamares-config' +) + +makedepends=( +'boost' +'clang' +'cmake' +'extra-cmake-modules' +'gawk' +'git' +'kdbusaddons' +'kpmcore' +'ninja' +'python-jsonschema' +'python-pyaml' +'python-unidecode' +'qt6-tools' +) + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "3.3.0.%s" "$(git rev-list --count HEAD)" +} + +prepare() { + # Update branding.desc with the proper values + replace_command=' + { + gsub(/\${version}/,version); + gsub(/\${release_name}/,release); + print + } + ' + awk -i inplace -v version="$(pkgver)" -v release="${release_name}" "$replace_command" "${srcdir}/$_gitname/src/branding/melawy/branding.desc" +} + +build() { + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -B build -S "${srcdir}/$_gitname" \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DSKIP_MODULES="dracut dracutlukscfg \ + dummycpp dummyprocess dummypython dummypythonqt \ + finishedq initcpio interactiveterminal initramfs initramfscfg keyboardq license localeq notesqml oemid \ + openrcdmcryptcfg plasmalnf services-openrc \ + summaryq tracking usersq webview welcomeq" + + export DESTDIR="$srcdir/build" + cmake --build build --parallel $_cpuCount +} + +package() { + DESTDIR="${pkgdir}" cmake --build "${DESTDIR}" --target install + + install -dm 750 "${pkgdir}/etc/polkit-1/rules.d" + install -Dm644 "${srcdir}/$_gitname/49-nopasswd-calamares.rules" "${pkgdir}/etc/polkit-1/rules.d/49-nopasswd-calamares.rules" + + install -dm 755 "${pkgdir}/usr/bin" + install -Dm755 "${srcdir}/$_gitname/calamares_polkit" "${pkgdir}/usr/bin/calamares_polkit" +} diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1/PKGBUILD_with_configs b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/PKGBUILD_with_configs new file mode 100644 index 0000000..2a2217f --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/PKGBUILD_with_configs @@ -0,0 +1,130 @@ +# Maintainer : Valeria Fadeeva +# Calamares installer QT6 KF6 configured for Melawy Linux + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +release_name=$pkgname +pkgver=3.3.0.10917 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Melawy-Linux/$_gitname" +license=('LGPL') +provides=("calamares") +conflicts=('calamares') +options=('!strip' '!emptydirs' 'debug' 'staticlibs') +sha256sums=('SKIP') +source=("git+https://git.melawy.ru/Melawy-Linux/$_gitname.git#branch=calamares") + +depends=( +'boost-libs' +'ckbcomp' +'cryptsetup' +'dmidecode' +'doxygen' +'gptfdisk' +'hwinfo' +'kconfig5' +'kcoreaddons5' +'kdbusaddons5' +'ki18n5' +'kpackage5' +'kparts5' +'kpmcore' +'kservice5' +'kwidgetsaddons5' +'libatasmart' +'libpwquality' +'networkmanager' +'parted' +'plasma-framework5' +'polkit-qt5' +'python' +'qt5-declarative' +'qt5-location' +'qt5-quickcontrols' +'qt5-quickcontrols2' +'qt5-svg' +'qt5-tools' +'qt5-virtualkeyboard' +'qt5-webengine' +'qt5-xmlpatterns' +'rsync' +'solid5' +'squashfs-tools' +'udisks2' +'upower' +'yaml-cpp' +'melawy-calamares-config' +) + +makedepends=( +'boost' +'clang' +'cmake' +'extra-cmake-modules' +'gawk' +'git' +'kdbusaddons5' +'kpmcore' +'ninja' +'python-jsonschema' +'python-pyaml' +'python-unidecode' +'qt5-tools' +) + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "3.3.0.%s" "$(git rev-list --count HEAD)" +} + +prepare() { + # Update branding.desc with the proper values + replace_command=' + { + gsub(/\${version}/,version); + gsub(/\${release_name}/,release); + print + } + ' + awk -i inplace -v version="$(pkgver)" -v release="${release_name}" "$replace_command" "${srcdir}/$_gitname/src/branding/melawy/branding.desc" +} + +build() { + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -B build -S "${srcdir}/$_gitname" \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DSKIP_MODULES="bootldr bootloader license notesqml oemid preservefiles partitionq" + + export DESTDIR="$srcdir/build" + cmake --build build --parallel $_cpuCount +} + +package() { + DESTDIR="${pkgdir}" cmake --build "${DESTDIR}" --target install + + install -dm 755 "${pkgdir}/etc/calamares" + cp -f ${srcdir}/$_gitname/settings_offline.conf "$pkgdir/etc/calamares/settings_offline.conf" + cp -f ${srcdir}/$_gitname/settings_online.conf "$pkgdir/etc/calamares/settings_online.conf" + cp -f ${srcdir}/$_gitname/settings_online.conf "$pkgdir/etc/calamares/settings.conf" + + cp -rf ${srcdir}/$_gitname/src/scripts "$pkgdir/etc/calamares" + cp -rf ${srcdir}/$_gitname/src/images "$pkgdir/etc/calamares" + cp -rf ${srcdir}/$_gitname/src/files "$pkgdir/etc/calamares" + + install -dm 755 "${pkgdir}/etc/calamares/modules" + cp -rf ${srcdir}/$_gitname/src/modules/*/*.conf "$pkgdir/etc/calamares/modules" + + cp -f "${srcdir}/$_gitname/src/modules/netinstall/netinstall.yaml" "$pkgdir/etc/calamares/modules/netinstall.yaml" + + install -dm 750 "${pkgdir}/etc/polkit-1/rules.d" + install -Dm644 "${srcdir}/$_gitname/49-nopasswd-calamares.rules" "${pkgdir}/etc/polkit-1/rules.d/49-nopasswd-calamares.rules" + + install -dm 755 "${pkgdir}/usr/bin" + install -Dm755 "${srcdir}/$_gitname/calamares_polkit" "${pkgdir}/usr/bin/calamares_polkit" +} diff --git a/MELAWY/Installer/melawy-calamares-qt6-3.3.1/README.md b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/README.md new file mode 100644 index 0000000..b3f029e --- /dev/null +++ b/MELAWY/Installer/melawy-calamares-qt6-3.3.1/README.md @@ -0,0 +1,11 @@ +# calamares +Calamares installer for Melawy Linux - Development version + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Installer/melawy-welcome/.gitignore b/MELAWY/Installer/melawy-welcome/.gitignore new file mode 100644 index 0000000..5897e3c --- /dev/null +++ b/MELAWY/Installer/melawy-welcome/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-welcome diff --git a/MELAWY/Installer/melawy-welcome/00_make.sh b/MELAWY/Installer/melawy-welcome/00_make.sh new file mode 100755 index 0000000..30b8975 --- /dev/null +++ b/MELAWY/Installer/melawy-welcome/00_make.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "melawy" | beep -f 200 -l 250 -d 100 -r 1 -n -s +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Installer/melawy-welcome/01_sign.sh b/MELAWY/Installer/melawy-welcome/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Installer/melawy-welcome/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Installer/melawy-welcome/PKGBUILD b/MELAWY/Installer/melawy-welcome/PKGBUILD new file mode 100644 index 0000000..972283c --- /dev/null +++ b/MELAWY/Installer/melawy-welcome/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=0.10.1.208 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('x86_64') +url="https://git.melawy.ru/Installer/$_gitname" +groups=('melawy') + +license=('GPL3') + +makedepends=('meson' 'git' 'mold' 'rustup' 'clang') + +depends=('gtk3' 'glib2' 'appstream-glib') + +provides=("$_gitname") +conflicts=("$_gitname") + +options=(strip) +source=("git+$url.git") + +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_gitname}/" + printf "0.10.1.%s" "$(git rev-list --count HEAD)" +} + +build() { + cd "${srcdir}/${_gitname}/" + + if ! rustc --version | grep nightly >/dev/null 2>&1; then + echo "Installing nightly compiler…" + rustup toolchain install nightly + rustup default nightly + fi + + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + export RUSTFLAGS="-Cembed-bitcode -C opt-level=3 -Ccodegen-units=1 -Clinker=clang -C link-arg=-flto -Clink-arg=-fuse-ld=/usr/bin/mold" + meson setup --buildtype=release --prefix=/usr build + + meson compile -C build --jobs $_cpuCount +} + +package() { + cd "${srcdir}/${_gitname}"/build + + export RUSTFLAGS="-Cembed-bitcode -C opt-level=3 -Ccodegen-units=1 -Clinker=clang -C link-arg=-flto -Clink-arg=-fuse-ld=/usr/bin/mold" + DESTDIR="${pkgdir}" meson install + + install -Dvm644 ../${_gitname}.desktop \ + "$pkgdir/etc/skel/.config/autostart/${_gitname}.desktop" +} + +# vim:set sw=2 sts=2 et: diff --git a/MELAWY/Installer/melawy-welcome/README.md b/MELAWY/Installer/melawy-welcome/README.md new file mode 100644 index 0000000..57f9664 --- /dev/null +++ b/MELAWY/Installer/melawy-welcome/README.md @@ -0,0 +1,11 @@ +# melawy-welcome +Welcome screen 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 diff --git a/MELAWY/Installer/move_to_repo.sh b/MELAWY/Installer/move_to_repo.sh new file mode 100755 index 0000000..fcd3a8f --- /dev/null +++ b/MELAWY/Installer/move_to_repo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst.sig" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -delete + + +echo "Ready" +sleep 5 + +process=$(ps x | grep konsole | grep $0 | awk '{print $1}') +if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') +fi diff --git a/MELAWY/Installer/pwd.txt b/MELAWY/Installer/pwd.txt new file mode 100644 index 0000000..6a55bb9 --- /dev/null +++ b/MELAWY/Installer/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD/MELAWY/Installer \ No newline at end of file diff --git a/MELAWY/Melawy/clean.sh b/MELAWY/Melawy/clean.sh new file mode 100755 index 0000000..72f53ab --- /dev/null +++ b/MELAWY/Melawy/clean.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Melawy/make.sh b/MELAWY/Melawy/make.sh new file mode 100755 index 0000000..fbb1b33 --- /dev/null +++ b/MELAWY/Melawy/make.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f | sort) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + pkg_exist=$(find "$full_path" -type f -newermt "$(date '+%Y-%m-%d 00:00')" -name "*.pkg.tar.xz") + if [ "$pkg_exist" == "" ]; then + make_file=$(find . -mindepth 1 -maxdepth 1 -name "*make*\.sh" -type f) + if [ -f "$make_file" ]; then + echo "bash $make_file" + bash "$make_file" + else + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + unset make_file + + pkg_file=$(find . -mindepth 1 -maxdepth 1 -name "*.pkg.tar.*" -type f) + sig_file="${pkg_file}.sig" + + if [ ! -f "$sig_file" ]; then + for i in *.pkg.tar.xz + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Melawy/melawy-branding/.gitignore b/MELAWY/Melawy/melawy-branding/.gitignore new file mode 100644 index 0000000..a2a07cf --- /dev/null +++ b/MELAWY/Melawy/melawy-branding/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-branding diff --git a/MELAWY/Melawy/melawy-branding/00_make.sh b/MELAWY/Melawy/melawy-branding/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Melawy/melawy-branding/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Melawy/melawy-branding/01_sign.sh b/MELAWY/Melawy/melawy-branding/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Melawy/melawy-branding/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Melawy/melawy-branding/PKGBUILD b/MELAWY/Melawy/melawy-branding/PKGBUILD new file mode 100644 index 0000000..756210a --- /dev/null +++ b/MELAWY/Melawy/melawy-branding/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.8 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Core/$_gitname" +arch=("any") +license=("AGPL3") +depends=() +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/etc" "$pkgdir/" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/usr" "$pkgdir/" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/var" "$pkgdir/" +} diff --git a/MELAWY/Melawy/melawy-branding/README.md b/MELAWY/Melawy/melawy-branding/README.md new file mode 100644 index 0000000..bb774d3 --- /dev/null +++ b/MELAWY/Melawy/melawy-branding/README.md @@ -0,0 +1,11 @@ +# melawy-branding +Logo, logo in KDE Infocenter (About), liveuser avatar, lsb-release, os-release + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Melawy/melawy-check-reboot-required/.gitignore b/MELAWY/Melawy/melawy-check-reboot-required/.gitignore new file mode 100644 index 0000000..fe380c5 --- /dev/null +++ b/MELAWY/Melawy/melawy-check-reboot-required/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-check-reboot-required diff --git a/MELAWY/Melawy/melawy-check-reboot-required/00_make.sh b/MELAWY/Melawy/melawy-check-reboot-required/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Melawy/melawy-check-reboot-required/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Melawy/melawy-check-reboot-required/01_sign.sh b/MELAWY/Melawy/melawy-check-reboot-required/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Melawy/melawy-check-reboot-required/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Melawy/melawy-check-reboot-required/PKGBUILD b/MELAWY/Melawy/melawy-check-reboot-required/PKGBUILD new file mode 100644 index 0000000..958d2fd --- /dev/null +++ b/MELAWY/Melawy/melawy-check-reboot-required/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.2 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Core/$_gitname" +arch=("any") +license=("AGPL3") +depends=() +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/usr" "$pkgdir/" +} diff --git a/MELAWY/Melawy/melawy-check-reboot-required/README.md b/MELAWY/Melawy/melawy-check-reboot-required/README.md new file mode 100644 index 0000000..c74ec24 --- /dev/null +++ b/MELAWY/Melawy/melawy-check-reboot-required/README.md @@ -0,0 +1,11 @@ +# melawy-check-reboot-required +Check reboot required after install or upgrade packages + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Melawy/melawy-dracut-initramfs/.gitignore b/MELAWY/Melawy/melawy-dracut-initramfs/.gitignore new file mode 100644 index 0000000..a319620 --- /dev/null +++ b/MELAWY/Melawy/melawy-dracut-initramfs/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-dracut-initramfs diff --git a/MELAWY/Melawy/melawy-dracut-initramfs/00_make.sh b/MELAWY/Melawy/melawy-dracut-initramfs/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Melawy/melawy-dracut-initramfs/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Melawy/melawy-dracut-initramfs/01_sign.sh b/MELAWY/Melawy/melawy-dracut-initramfs/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Melawy/melawy-dracut-initramfs/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Melawy/melawy-dracut-initramfs/PKGBUILD b/MELAWY/Melawy/melawy-dracut-initramfs/PKGBUILD new file mode 100644 index 0000000..37967b0 --- /dev/null +++ b/MELAWY/Melawy/melawy-dracut-initramfs/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.22 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Core/$_gitname" +arch=("any") +license=("AGPL3") +depends=("dracut" "systemd" "refind" "python" "util-linux" "python-pefile") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { +# install -Dm644 "${srcdir}/$_gitname/10-dracut-initramfs-pre-install.hook" "${pkgdir}/usr/share/libalpm/hooks/10-dracut-initramfs-pre-install.hook" +# install -Dm644 "${srcdir}/$_gitname/60-dracut-initramfs-remove.hook" "${pkgdir}/usr/share/libalpm/hooks/60-dracut-initramfs-remove.hook" +# install -Dm644 "${srcdir}/$_gitname/90-dracut-initramfs-install.hook" "${pkgdir}/usr/share/libalpm/hooks/90-dracut-initramfs-install.hook" +# install -Dm755 "${srcdir}/$_gitname/dracut-initramfs" "${pkgdir}/usr/bin/dracut-initramfs" + + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/usr" "$pkgdir/" +} diff --git a/MELAWY/Melawy/melawy-dracut-initramfs/README.md b/MELAWY/Melawy/melawy-dracut-initramfs/README.md new file mode 100644 index 0000000..9b9e98f --- /dev/null +++ b/MELAWY/Melawy/melawy-dracut-initramfs/README.md @@ -0,0 +1,22 @@ +# melawy-dracut-initramfs +Integration layer for dracut for Arch Linux. Placing kernels to /ESP_PATH/EFI/Linux + +``` +ls -1 /efi/EFI/Linux +``` +``` +... +initramfs-linux-xanmod-anbox-fallback.img +initramfs-linux-xanmod-anbox.img +... +vmlinuz-linux-xanmod-anbox +``` + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Melawy/melawy-dracut-ukify/.gitignore b/MELAWY/Melawy/melawy-dracut-ukify/.gitignore new file mode 100644 index 0000000..999ec1d --- /dev/null +++ b/MELAWY/Melawy/melawy-dracut-ukify/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-dracut-ukify diff --git a/MELAWY/Melawy/melawy-dracut-ukify/00_make.sh b/MELAWY/Melawy/melawy-dracut-ukify/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Melawy/melawy-dracut-ukify/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Melawy/melawy-dracut-ukify/01_sign.sh b/MELAWY/Melawy/melawy-dracut-ukify/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Melawy/melawy-dracut-ukify/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Melawy/melawy-dracut-ukify/PKGBUILD b/MELAWY/Melawy/melawy-dracut-ukify/PKGBUILD new file mode 100644 index 0000000..cb8d72d --- /dev/null +++ b/MELAWY/Melawy/melawy-dracut-ukify/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.26 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Core/$_gitname" +arch=("any") +license=("AGPL3") +depends=("dracut" "systemd" "systemd-ukify" "refind" "python" "util-linux" "python-pefile") +optdepends=("sbsigntools: secureboot support") +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { +# install -Dm644 "${srcdir}/$_gitname/10-dracut-ukify-pre-install.hook" "${pkgdir}/usr/share/libalpm/hooks/10-dracut-ukify-pre-install.hook" +# install -Dm644 "${srcdir}/$_gitname/60-dracut-ukify-remove.hook" "${pkgdir}/usr/share/libalpm/hooks/60-dracut-ukify-remove.hook" +# install -Dm644 "${srcdir}/$_gitname/90-dracut-ukify-install.hook" "${pkgdir}/usr/share/libalpm/hooks/90-dracut-ukify-install.hook" +# install -Dm755 "${srcdir}/$_gitname/dracut-ukify" "${pkgdir}/usr/bin/dracut-ukify" + + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/usr" "$pkgdir/" +} diff --git a/MELAWY/Melawy/melawy-dracut-ukify/README.md b/MELAWY/Melawy/melawy-dracut-ukify/README.md new file mode 100644 index 0000000..2c6b13c --- /dev/null +++ b/MELAWY/Melawy/melawy-dracut-ukify/README.md @@ -0,0 +1,21 @@ +# melawy-dracut-ukify +Integration layer for dracut and systemd's ukify tool for Arch Linux. Placing kernels to /ESP_PATH/EFI/Linux + +``` +ls -1 /efi/EFI/Linux +``` +``` +... +linux-xanmod-anbox.efi +linux-xanmod-anbox-fallback.efi +... +``` + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Melawy/melawy-etc-skel-kvantum/.gitignore b/MELAWY/Melawy/melawy-etc-skel-kvantum/.gitignore new file mode 100644 index 0000000..5f77ee1 --- /dev/null +++ b/MELAWY/Melawy/melawy-etc-skel-kvantum/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-etc-skel-kvantum diff --git a/MELAWY/Melawy/melawy-etc-skel-kvantum/00_make.sh b/MELAWY/Melawy/melawy-etc-skel-kvantum/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Melawy/melawy-etc-skel-kvantum/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Melawy/melawy-etc-skel-kvantum/01_sign.sh b/MELAWY/Melawy/melawy-etc-skel-kvantum/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Melawy/melawy-etc-skel-kvantum/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Melawy/melawy-etc-skel-kvantum/PKGBUILD b/MELAWY/Melawy/melawy-etc-skel-kvantum/PKGBUILD new file mode 100644 index 0000000..6adf2d4 --- /dev/null +++ b/MELAWY/Melawy/melawy-etc-skel-kvantum/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.24 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=("any") +url="https://git.melawy.ru/Core/$_gitname" +license=("AGPL3") + +depends=("bash") + +makedepends=("git") + +optdepends=() + +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +options=(!strip !emptydirs) +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=("BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8") + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +install=ins.install + +package() { + # Clone file structure + install -d "${pkgdir}/usr/share/skel/" + cp -rT --no-preserve=ownership "${srcdir}/${_gitname}/skel/" "${pkgdir}/usr/share/skel/" + + # Find all scripts + readarray -d "" scripts < <(find "${pkgdir}/usr/share/skel" -type f \( -iname "*.sh" -o -iname "*.bash" \) -print0) + + # Make scripts executable + for script in "${scripts[@]}"; + do + [[ -f ${script} ]] && chmod +x "${script}" + done +} diff --git a/MELAWY/Melawy/melawy-etc-skel-kvantum/README.md b/MELAWY/Melawy/melawy-etc-skel-kvantum/README.md new file mode 100644 index 0000000..251512f --- /dev/null +++ b/MELAWY/Melawy/melawy-etc-skel-kvantum/README.md @@ -0,0 +1,11 @@ +# ets skel +etc skel 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 diff --git a/MELAWY/Melawy/melawy-etc-skel-kvantum/ins.install b/MELAWY/Melawy/melawy-etc-skel-kvantum/ins.install new file mode 100644 index 0000000..90ff68a --- /dev/null +++ b/MELAWY/Melawy/melawy-etc-skel-kvantum/ins.install @@ -0,0 +1,7 @@ +post_upgrade() { + cp -rT --no-preserve=ownership "/usr/share/skel/" "/etc/skel/" +} + +post_install() { + post_upgrade +} diff --git a/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/.gitignore b/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/.gitignore new file mode 100644 index 0000000..7d166d8 --- /dev/null +++ b/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-etc-skel-std-powerman-kvantum diff --git a/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/00_make.sh b/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/01_sign.sh b/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/PKGBUILD b/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/PKGBUILD new file mode 100644 index 0000000..6adf2d4 --- /dev/null +++ b/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.24 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=("any") +url="https://git.melawy.ru/Core/$_gitname" +license=("AGPL3") + +depends=("bash") + +makedepends=("git") + +optdepends=() + +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +options=(!strip !emptydirs) +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=("BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8") + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +install=ins.install + +package() { + # Clone file structure + install -d "${pkgdir}/usr/share/skel/" + cp -rT --no-preserve=ownership "${srcdir}/${_gitname}/skel/" "${pkgdir}/usr/share/skel/" + + # Find all scripts + readarray -d "" scripts < <(find "${pkgdir}/usr/share/skel" -type f \( -iname "*.sh" -o -iname "*.bash" \) -print0) + + # Make scripts executable + for script in "${scripts[@]}"; + do + [[ -f ${script} ]] && chmod +x "${script}" + done +} diff --git a/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/README.md b/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/README.md new file mode 100644 index 0000000..251512f --- /dev/null +++ b/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/README.md @@ -0,0 +1,11 @@ +# ets skel +etc skel 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 diff --git a/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/ins.install b/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/ins.install new file mode 100644 index 0000000..90ff68a --- /dev/null +++ b/MELAWY/Melawy/melawy-etc-skel-std-powerman-kvantum/ins.install @@ -0,0 +1,7 @@ +post_upgrade() { + cp -rT --no-preserve=ownership "/usr/share/skel/" "/etc/skel/" +} + +post_install() { + post_upgrade +} diff --git a/MELAWY/Melawy/melawy-linux-keyring/.gitignore b/MELAWY/Melawy/melawy-linux-keyring/.gitignore new file mode 100644 index 0000000..7597265 --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-keyring/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-linux-keyring diff --git a/MELAWY/Melawy/melawy-linux-keyring/00_make.sh b/MELAWY/Melawy/melawy-linux-keyring/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-keyring/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Melawy/melawy-linux-keyring/01_sign.sh b/MELAWY/Melawy/melawy-linux-keyring/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-keyring/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Melawy/melawy-linux-keyring/PKGBUILD b/MELAWY/Melawy/melawy-linux-keyring/PKGBUILD new file mode 100644 index 0000000..19d97c5 --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-keyring/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.4 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Core/$_gitname" +license=('AGPL') +depends=("pacman" "gnupg") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +install=ins.install + +package() { + install -dm755 "${pkgdir}/usr/share/pacman/keyrings/" + install -m644 "${srcdir}/$_gitname/${pkgname}.gpg" "${pkgdir}/usr/share/pacman/keyrings/melawy-linux.gpg" +} diff --git a/MELAWY/Melawy/melawy-linux-keyring/README.md b/MELAWY/Melawy/melawy-linux-keyring/README.md new file mode 100644 index 0000000..60de175 --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-keyring/README.md @@ -0,0 +1,11 @@ +# melawy-linux-keyring +Melawy Linux GnuPG keyring + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Melawy/melawy-linux-keyring/ins.install b/MELAWY/Melawy/melawy-linux-keyring/ins.install new file mode 100644 index 0000000..d7af51b --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-keyring/ins.install @@ -0,0 +1,11 @@ +post_install() { + pacman-key --init + pacman-key --add /usr/share/pacman/keyrings/melawy-linux.gpg + pacman-key --lsign-key BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 + pacman-key --lsign-key B175815513971572FE7B1557CEC07AC8FF64DA4B + pacman-key --populate +} + +post_upgrade() { + post_install +} diff --git a/MELAWY/Melawy/melawy-linux-keyring/old_ins.install b/MELAWY/Melawy/melawy-linux-keyring/old_ins.install new file mode 100644 index 0000000..fd09ea2 --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-keyring/old_ins.install @@ -0,0 +1,12 @@ +post_upgrade() { + if usr/bin/pacman-key -l >/dev/null 2>&1; then + usr/bin/pacman-key --populate melawy-linux + usr/bin/pacman-key --updatedb + fi +} + +post_install() { + if [ -x usr/bin/pacman-key ]; then + post_upgrade + fi +} diff --git a/MELAWY/Melawy/melawy-linux-mirrorlist/.gitignore b/MELAWY/Melawy/melawy-linux-mirrorlist/.gitignore new file mode 100644 index 0000000..5d2220c --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-mirrorlist/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-linux-mirrorlist diff --git a/MELAWY/Melawy/melawy-linux-mirrorlist/00_make.sh b/MELAWY/Melawy/melawy-linux-mirrorlist/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-mirrorlist/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Melawy/melawy-linux-mirrorlist/01_sign.sh b/MELAWY/Melawy/melawy-linux-mirrorlist/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-mirrorlist/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Melawy/melawy-linux-mirrorlist/LICENSE b/MELAWY/Melawy/melawy-linux-mirrorlist/LICENSE new file mode 100644 index 0000000..0ad25db --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-mirrorlist/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/MELAWY/Melawy/melawy-linux-mirrorlist/PKGBUILD b/MELAWY/Melawy/melawy-linux-mirrorlist/PKGBUILD new file mode 100644 index 0000000..af5495c --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-mirrorlist/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.4 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Core/$_gitname" +license=('AGPL') +depends=("pacman") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +backup=("etc/pacman.d/melawy-linux-mirrorlist") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -dm755 "$pkgdir/etc/pacman.d/" + install -m644 "${srcdir}/$_gitname/${pkgname}" "$pkgdir/etc/pacman.d/melawy-linux-mirrorlist" +} diff --git a/MELAWY/Melawy/melawy-linux-mirrorlist/README.md b/MELAWY/Melawy/melawy-linux-mirrorlist/README.md new file mode 100644 index 0000000..ba46e1b --- /dev/null +++ b/MELAWY/Melawy/melawy-linux-mirrorlist/README.md @@ -0,0 +1,11 @@ +# melawy-pamac-helper +Start pamac after pacman -Sy + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Melawy/melawy-refind-menu-generator/.gitignore b/MELAWY/Melawy/melawy-refind-menu-generator/.gitignore new file mode 100644 index 0000000..50836ae --- /dev/null +++ b/MELAWY/Melawy/melawy-refind-menu-generator/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-refind-menu-generator diff --git a/MELAWY/Melawy/melawy-refind-menu-generator/00_make.sh b/MELAWY/Melawy/melawy-refind-menu-generator/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Melawy/melawy-refind-menu-generator/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Melawy/melawy-refind-menu-generator/01_sign.sh b/MELAWY/Melawy/melawy-refind-menu-generator/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Melawy/melawy-refind-menu-generator/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Melawy/melawy-refind-menu-generator/PKGBUILD b/MELAWY/Melawy/melawy-refind-menu-generator/PKGBUILD new file mode 100644 index 0000000..531d519 --- /dev/null +++ b/MELAWY/Melawy/melawy-refind-menu-generator/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.35 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Core/$_gitname" +arch=("any") +license=("AGPL3") +depends=("refind") +optdepends=("melawy-dracut-ukify" "melawy-dracut-initramfs") +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +backup=("etc/refind-menu-generator/theme.conf" "etc/refind-menu-generator/menu-template.conf") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/etc" "$pkgdir/" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/usr" "$pkgdir/" +} diff --git a/MELAWY/Melawy/melawy-refind-menu-generator/README.md b/MELAWY/Melawy/melawy-refind-menu-generator/README.md new file mode 100644 index 0000000..fe96689 --- /dev/null +++ b/MELAWY/Melawy/melawy-refind-menu-generator/README.md @@ -0,0 +1,82 @@ +# melawy-refind-menu-generator +Menu generator for rEFInd loader for kernels in /ESP_PATH/EFI/Linux for Arch Linux + +``` +cat /efi/EFI/refind/manual.conf +``` +``` +menuentry "EFI Arch Linux (linux-xanmod-anbox)" { + icon /EFI/refind/themes/lera-sugar/icons/os_arch.png + ostype Linux + graphics on + + loader /EFI/Linux/linux-xanmod-anbox.efi + + submenuentry "EFI Arch Linux (linux-xanmod-anbox) fallback" { + loader /EFI/Linux/linux-xanmod-anbox-fallback.efi + } + + submenuentry "Terminal" { + add_options "systemd.unit=multi-user.target" + } + + submenuentry "Arch Linux (linux-xanmod-anbox)" { + loader /EFI/Linux/vmlinuz-linux-xanmod-anbox + initrd /EFI/Linux/initramfs-linux-xanmod-anbox.img + options "root=UUID=24f2a700-319b-41f2-853f-c5711cd4081d rw rootflags=subvol=@ quiet splash bgrt_disable nvidia-drm.modeset=1 nvme_load=YES apparmor=1 security=apparmor loglevel=3 systemd.unified_cgroup_hierarchy=0 fsck.mode=force fsck.repair=yes add_efi_memmap initrd=EFI\Linux\intel-ucode.img initrd=EFI\Linux\amd-ucode.img" + } + + submenuentry "Arch Linux (linux-xanmod-anbox) fallback" { + loader /EFI/Linux/vmlinuz-linux-xanmod-anbox + initrd /EFI/Linux/initramfs-linux-xanmod-anbox-fallback.img + options "root=UUID=24f2a700-319b-41f2-853f-c5711cd4081d rw rootflags=subvol=@ quiet splash bgrt_disable nvidia-drm.modeset=1 nvme_load=YES apparmor=1 security=apparmor loglevel=3 systemd.unified_cgroup_hierarchy=0 fsck.mode=force fsck.repair=yes add_efi_memmap initrd=EFI\Linux\intel-ucode.img initrd=EFI\Linux\amd-ucode.img" + } +} + +menuentry "rEFInd HARD" { + icon /EFI/refind/themes/lera-sugar/icons/os_systemd-boot.png + ostype Linux + graphics on + loader /EFI/refind_hard/refind_x64.efi +} + +menuentry "Windows 11" { + icon /EFI/refind/themes/lera-sugar/icons/os_win11.png + ostype Windows + loader /EFI/ms11/Boot/bootmgfw.efi +} + +menuentry "Memtest86+ from EFI" { + icon /EFI/refind/themes/lera-sugar/icons/tool_memtest.png + loader /EFI/memtest/bootx64.efi +} + +menuentry "GRUB" { + icon /EFI/refind/themes/lera-sugar/icons/os_systemd-boot.png + ostype Linux + graphics on + loader /EFI/boot/grubx64.efi + + disabled +} + +menuentry "Systemd Boot" { + icon /EFI/refind/themes/lera-sugar/icons/os_systemd-boot.png + ostype Linux + graphics on + loader /EFI/systemd/systemd-bootx64.efi + + disabled +} + +default_selection "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 diff --git a/MELAWY/Melawy/melawy-skel-liveuser/.gitignore b/MELAWY/Melawy/melawy-skel-liveuser/.gitignore new file mode 100644 index 0000000..5f6b02b --- /dev/null +++ b/MELAWY/Melawy/melawy-skel-liveuser/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-skel-liveuser diff --git a/MELAWY/Melawy/melawy-skel-liveuser/00_make.sh b/MELAWY/Melawy/melawy-skel-liveuser/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Melawy/melawy-skel-liveuser/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Melawy/melawy-skel-liveuser/01_sign.sh b/MELAWY/Melawy/melawy-skel-liveuser/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Melawy/melawy-skel-liveuser/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Melawy/melawy-skel-liveuser/PKGBUILD b/MELAWY/Melawy/melawy-skel-liveuser/PKGBUILD new file mode 100644 index 0000000..ca8f0ed --- /dev/null +++ b/MELAWY/Melawy/melawy-skel-liveuser/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.36 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=("any") +url="https://git.melawy.ru/Core/$_gitname" +license=("AGPL3") + +depends=("bash") + +makedepends=("git") + +optdepends=() + +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +options=() +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=("BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8" "B175815513971572FE7B1557CEC07AC8FF64DA4B") + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +install=ins.install + +package() { + # Clone file structure + install -d "${pkgdir}/usr/share/skel-liveuser/" + cp -rT --no-preserve=ownership "${srcdir}/${_gitname}/liveuser/" "${pkgdir}/usr/share/skel-liveuser/" + + # Find all scripts + readarray -d "" scripts < <(find "${pkgdir}/usr/share/skel-liveuser" -type f \( -iname "*.sh" -o -iname "*.bash" \) -print0) + + # Make scripts executable + for script in "${scripts[@]}"; + do + [[ -f ${script} ]] && chmod +x "${script}" + done +} diff --git a/MELAWY/Melawy/melawy-skel-liveuser/README.md b/MELAWY/Melawy/melawy-skel-liveuser/README.md new file mode 100644 index 0000000..f004f4b --- /dev/null +++ b/MELAWY/Melawy/melawy-skel-liveuser/README.md @@ -0,0 +1,11 @@ +# skel-liveuser +Liveuser specific skel setup 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 diff --git a/MELAWY/Melawy/melawy-skel-liveuser/ins.install b/MELAWY/Melawy/melawy-skel-liveuser/ins.install new file mode 100644 index 0000000..a48e8b3 --- /dev/null +++ b/MELAWY/Melawy/melawy-skel-liveuser/ins.install @@ -0,0 +1,11 @@ +post_upgrade() { + if [ ! -d /home/liveuser ]; then + mkdir -p /home/liveuser + fi + cp -vrT --no-preserve=ownership "/usr/share/skel-liveuser/" "/home/liveuser/" + chown -Rh liveuser:users /home/liveuser +} + +post_install() { + post_upgrade +} diff --git a/MELAWY/Melawy/melawy-skel-root/.gitignore b/MELAWY/Melawy/melawy-skel-root/.gitignore new file mode 100644 index 0000000..9fbd810 --- /dev/null +++ b/MELAWY/Melawy/melawy-skel-root/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-skel-root diff --git a/MELAWY/Melawy/melawy-skel-root/00_make.sh b/MELAWY/Melawy/melawy-skel-root/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Melawy/melawy-skel-root/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Melawy/melawy-skel-root/01_sign.sh b/MELAWY/Melawy/melawy-skel-root/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Melawy/melawy-skel-root/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Melawy/melawy-skel-root/PKGBUILD b/MELAWY/Melawy/melawy-skel-root/PKGBUILD new file mode 100644 index 0000000..afcb924 --- /dev/null +++ b/MELAWY/Melawy/melawy-skel-root/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.31 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=("any") +url="https://git.melawy.ru/Core/$_gitname" +license=("AGPL3") + +depends=("bash") + +makedepends=("git") + +optdepends=() + +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +options=() +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=("BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8") + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +install=ins.install + +package() { + # Clone file structure + install -d "${pkgdir}/usr/share/skel-root/" + cp -rT --no-preserve=ownership "${srcdir}/${_gitname}/root/" "${pkgdir}/usr/share/skel-root/" + + # Find all scripts + readarray -d "" scripts < <(find "${pkgdir}/usr/share/skel-root" -type f \( -iname "*.sh" -o -iname "*.bash" \) -print0) + + # Make scripts executable + for script in "${scripts[@]}"; + do + [[ -f ${script} ]] && chmod +x "${script}" + done +} diff --git a/MELAWY/Melawy/melawy-skel-root/README.md b/MELAWY/Melawy/melawy-skel-root/README.md new file mode 100644 index 0000000..baaec9a --- /dev/null +++ b/MELAWY/Melawy/melawy-skel-root/README.md @@ -0,0 +1,11 @@ +# skel-root +Root specific skel setup 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 diff --git a/MELAWY/Melawy/melawy-skel-root/ins.install b/MELAWY/Melawy/melawy-skel-root/ins.install new file mode 100644 index 0000000..894afaf --- /dev/null +++ b/MELAWY/Melawy/melawy-skel-root/ins.install @@ -0,0 +1,11 @@ +post_upgrade() { + if [ ! -d /root ]; then + mkdir -p /root + fi + cp -vrT --no-preserve=ownership "/usr/share/skel-root/" "/root/" + chown -Rh 0:0 /root +} + +post_install() { + post_upgrade +} diff --git a/MELAWY/Melawy/move_to_repo.sh b/MELAWY/Melawy/move_to_repo.sh new file mode 100755 index 0000000..fcd3a8f --- /dev/null +++ b/MELAWY/Melawy/move_to_repo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst.sig" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -delete + + +echo "Ready" +sleep 5 + +process=$(ps x | grep konsole | grep $0 | awk '{print $1}') +if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') +fi diff --git a/MELAWY/Melawy/pwd.txt b/MELAWY/Melawy/pwd.txt new file mode 100644 index 0000000..3153c29 --- /dev/null +++ b/MELAWY/Melawy/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD/MELAWY/Melawy \ No newline at end of file diff --git a/MELAWY/Menu/clean.sh b/MELAWY/Menu/clean.sh new file mode 100755 index 0000000..72f53ab --- /dev/null +++ b/MELAWY/Menu/clean.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Menu/make.sh b/MELAWY/Menu/make.sh new file mode 100755 index 0000000..fbb1b33 --- /dev/null +++ b/MELAWY/Menu/make.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f | sort) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + pkg_exist=$(find "$full_path" -type f -newermt "$(date '+%Y-%m-%d 00:00')" -name "*.pkg.tar.xz") + if [ "$pkg_exist" == "" ]; then + make_file=$(find . -mindepth 1 -maxdepth 1 -name "*make*\.sh" -type f) + if [ -f "$make_file" ]; then + echo "bash $make_file" + bash "$make_file" + else + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + unset make_file + + pkg_file=$(find . -mindepth 1 -maxdepth 1 -name "*.pkg.tar.*" -type f) + sig_file="${pkg_file}.sig" + + if [ ! -f "$sig_file" ]; then + for i in *.pkg.tar.xz + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/.gitignore b/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/.gitignore new file mode 100644 index 0000000..e777ae5 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plasma-plasmoid-DittoMenu diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/00_make.sh b/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/01_sign.sh b/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/PKGBUILD b/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/PKGBUILD new file mode 100644 index 0000000..4120abf --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.9 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Menu/$_gitname" +arch=("any") +license=("AGPL3") +depends=("plasma-desktop") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="com.github.adhec.DittoMenu" +THEME_PATH="usr/share/plasma/plasmoids" + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir/$THEME_PATH/" +} diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/README.md b/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/README.md new file mode 100644 index 0000000..f2311a5 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-DittoMenu/README.md @@ -0,0 +1,11 @@ +# melawy-plasma-plasmoid-DittoMenu +DittoMenu plasmoid + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/.gitignore b/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/.gitignore new file mode 100644 index 0000000..df71cda --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plasma-plasmoid-Menu11 diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/00_make.sh b/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/01_sign.sh b/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/PKGBUILD b/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/PKGBUILD new file mode 100644 index 0000000..7280585 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.11 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Menu/$_gitname" +arch=("any") +license=("AGPL3") +depends=("plasma-desktop") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="com.github.adhec.Menu11" +THEME_PATH="usr/share/plasma/plasmoids" + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir/$THEME_PATH/" +} diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/README.md b/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/README.md new file mode 100644 index 0000000..38446e3 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-Menu11/README.md @@ -0,0 +1,11 @@ +# melawy-plasma-plasmoid-Menu11 +Menu11 plasmoid + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/.gitignore b/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/.gitignore new file mode 100644 index 0000000..0addf77 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plasma-plasmoid-OnzeMenuKDE diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/00_make.sh b/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/01_sign.sh b/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/PKGBUILD b/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/PKGBUILD new file mode 100644 index 0000000..1683249 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.7 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Menu/$_gitname" +arch=("any") +license=("AGPL3") +depends=("plasma-desktop") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="com.github.adhec.OnzeMenuKDE" +THEME_PATH="usr/share/plasma/plasmoids" + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir/$THEME_PATH/" +} diff --git a/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/README.md b/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/README.md new file mode 100644 index 0000000..50d1b12 --- /dev/null +++ b/MELAWY/Menu/melawy-plasma-plasmoid-OnzeMenuKDE/README.md @@ -0,0 +1,11 @@ +# melawy-plasma-plasmoid-OnzeMenuKDE +OnzeMenuKDE plasmoid + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Menu/move_to_repo.sh b/MELAWY/Menu/move_to_repo.sh new file mode 100755 index 0000000..fcd3a8f --- /dev/null +++ b/MELAWY/Menu/move_to_repo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst.sig" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -delete + + +echo "Ready" +sleep 5 + +process=$(ps x | grep konsole | grep $0 | awk '{print $1}') +if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') +fi diff --git a/MELAWY/Menu/pwd.txt b/MELAWY/Menu/pwd.txt new file mode 100644 index 0000000..a5ecc52 --- /dev/null +++ b/MELAWY/Menu/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD/MELAWY/Menu \ No newline at end of file diff --git a/MELAWY/Plasmoids/clean.sh b/MELAWY/Plasmoids/clean.sh new file mode 100755 index 0000000..72f53ab --- /dev/null +++ b/MELAWY/Plasmoids/clean.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Plasmoids/make.sh b/MELAWY/Plasmoids/make.sh new file mode 100755 index 0000000..fbb1b33 --- /dev/null +++ b/MELAWY/Plasmoids/make.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f | sort) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + pkg_exist=$(find "$full_path" -type f -newermt "$(date '+%Y-%m-%d 00:00')" -name "*.pkg.tar.xz") + if [ "$pkg_exist" == "" ]; then + make_file=$(find . -mindepth 1 -maxdepth 1 -name "*make*\.sh" -type f) + if [ -f "$make_file" ]; then + echo "bash $make_file" + bash "$make_file" + else + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + unset make_file + + pkg_file=$(find . -mindepth 1 -maxdepth 1 -name "*.pkg.tar.*" -type f) + sig_file="${pkg_file}.sig" + + if [ ! -f "$sig_file" ]; then + for i in *.pkg.tar.xz + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/.gitignore b/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/.gitignore new file mode 100644 index 0000000..7f5dcdd --- /dev/null +++ b/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plasma-plasmoid-presentwindows diff --git a/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/00_make.sh b/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/01_sign.sh b/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/PKGBUILD b/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/PKGBUILD new file mode 100644 index 0000000..5e986fc --- /dev/null +++ b/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.2 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Plasmoids/$_gitname" +arch=("any") +license=("AGPL3") +depends=("plasma-desktop") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="com.github.zren.presentwindows" +THEME_PATH="usr/share/plasma/plasmoids" + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir/$THEME_PATH/" +} diff --git a/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/README.md b/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/README.md new file mode 100644 index 0000000..f04673d --- /dev/null +++ b/MELAWY/Plasmoids/melawy-plasma-plasmoid-presentwindows/README.md @@ -0,0 +1,11 @@ +# melawy-plasma-plasmoid-presentwindows +Show desktop mosaic plasmoid + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/.gitignore b/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/.gitignore new file mode 100644 index 0000000..e858ce4 --- /dev/null +++ b/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plasma-plasmoid-win7showdesktop diff --git a/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/00_make.sh b/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/01_sign.sh b/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/PKGBUILD b/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/PKGBUILD new file mode 100644 index 0000000..f1c979a --- /dev/null +++ b/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.1 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Plasmoids/$_gitname" +arch=("any") +license=("AGPL3") +depends=("plasma-desktop") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="com.github.zren.win7showdesktop" +THEME_PATH="usr/share/plasma/plasmoids" + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir/$THEME_PATH/" +} diff --git a/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/README.md b/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/README.md new file mode 100644 index 0000000..c5c7885 --- /dev/null +++ b/MELAWY/Plasmoids/melawy-plasma-plasmoid-win7showdesktop/README.md @@ -0,0 +1,11 @@ +# melawy-plasma-plasmoid-win7showdesktop +Show desktop plasmoid + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Plasmoids/move_to_repo.sh b/MELAWY/Plasmoids/move_to_repo.sh new file mode 100755 index 0000000..fcd3a8f --- /dev/null +++ b/MELAWY/Plasmoids/move_to_repo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst.sig" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -delete + + +echo "Ready" +sleep 5 + +process=$(ps x | grep konsole | grep $0 | awk '{print $1}') +if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') +fi diff --git a/MELAWY/Plasmoids/pwd.txt b/MELAWY/Plasmoids/pwd.txt new file mode 100644 index 0000000..04c050a --- /dev/null +++ b/MELAWY/Plasmoids/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD/MELAWY/Plasmoids \ No newline at end of file diff --git a/MELAWY/Updater/clean.sh b/MELAWY/Updater/clean.sh new file mode 100755 index 0000000..72f53ab --- /dev/null +++ b/MELAWY/Updater/clean.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Updater/make.sh b/MELAWY/Updater/make.sh new file mode 100755 index 0000000..fbb1b33 --- /dev/null +++ b/MELAWY/Updater/make.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f | sort) + +for i in ${dir_list[@]} +do + path="$(dirname $i)" + full_path="$CWD/$path" + + echo "$full_path" + cd "$full_path" + + git_dir="$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d)" + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + + pkg_exist=$(find "$full_path" -type f -newermt "$(date '+%Y-%m-%d 00:00')" -name "*.pkg.tar.xz") + if [ "$pkg_exist" == "" ]; then + make_file=$(find . -mindepth 1 -maxdepth 1 -name "*make*\.sh" -type f) + if [ -f "$make_file" ]; then + echo "bash $make_file" + bash "$make_file" + else + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + unset make_file + + pkg_file=$(find . -mindepth 1 -maxdepth 1 -name "*.pkg.tar.*" -type f) + sig_file="${pkg_file}.sig" + + if [ ! -f "$sig_file" ]; then + for i in *.pkg.tar.xz + do + if [ -f "${i}" ]; then + if [ -f "$i.sig" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + fi + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + fi + + if [ -n "$git_dir" ] && [ -d "$git_dir" ]; then + echo "rm -rf $git_dir" + rm -rf "$git_dir" + fi + + if [ -d "$full_path/src" ]; then + rm -rf "$full_path/src" + fi + + if [ -d "$full_path/pkg" ]; then + rm -rf "$full_path/pkg" + fi + fi + + cd "$CWD" +done + +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/MELAWY/Updater/melawy-arch-linux-updater/.gitignore b/MELAWY/Updater/melawy-arch-linux-updater/.gitignore new file mode 100644 index 0000000..af598a8 --- /dev/null +++ b/MELAWY/Updater/melawy-arch-linux-updater/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-arch-linux-updater diff --git a/MELAWY/Updater/melawy-arch-linux-updater/00_make.sh b/MELAWY/Updater/melawy-arch-linux-updater/00_make.sh new file mode 100755 index 0000000..7e7134b --- /dev/null +++ b/MELAWY/Updater/melawy-arch-linux-updater/00_make.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +status=$? + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + + process=$(ps x | grep konsole | grep $0 | awk '{print $1}') + if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') + fi +fi diff --git a/MELAWY/Updater/melawy-arch-linux-updater/01_sign.sh b/MELAWY/Updater/melawy-arch-linux-updater/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Updater/melawy-arch-linux-updater/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Updater/melawy-arch-linux-updater/PKGBUILD b/MELAWY/Updater/melawy-arch-linux-updater/PKGBUILD new file mode 100644 index 0000000..5c1c741 --- /dev/null +++ b/MELAWY/Updater/melawy-arch-linux-updater/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.20 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Updater/$_gitname" +license=('AGPL') +depends=("pacman" "gnupg") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +build() { + cd "$_gitname" + cargo build --release +} + +package() { + install -dm755 "${pkgdir}/etc/arch-linux-updater/" + install -m644 "${srcdir}/$_gitname/.env" "${pkgdir}/etc/arch-linux-updater/" + + install -dm755 "${pkgdir}/usr/bin/" + install -m755 "${srcdir}/$_gitname/target/release/arch-linux-updater" "${pkgdir}/usr/bin/" + + install -dm755 "${pkgdir}/usr/share/arch-linux-updater/" + cp -rf "${srcdir}/$_gitname/assets" "${pkgdir}/usr/share/arch-linux-updater/" + + install -dm750 "${pkgdir}/etc/sudoers.d/" + install -m644 "${srcdir}/$_gitname/melawy-arch-linux-updater" "${pkgdir}/etc/sudoers.d/" +} diff --git a/MELAWY/Updater/melawy-arch-linux-updater/README.md b/MELAWY/Updater/melawy-arch-linux-updater/README.md new file mode 100644 index 0000000..765c998 --- /dev/null +++ b/MELAWY/Updater/melawy-arch-linux-updater/README.md @@ -0,0 +1,11 @@ +# melawy-arch-linux-updater +Arch linux updater 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 diff --git a/MELAWY/Updater/melawy-pamac-helper/.gitignore b/MELAWY/Updater/melawy-pamac-helper/.gitignore new file mode 100644 index 0000000..5d2220c --- /dev/null +++ b/MELAWY/Updater/melawy-pamac-helper/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-linux-mirrorlist diff --git a/MELAWY/Updater/melawy-pamac-helper/00_make.sh b/MELAWY/Updater/melawy-pamac-helper/00_make.sh new file mode 100755 index 0000000..7e7134b --- /dev/null +++ b/MELAWY/Updater/melawy-pamac-helper/00_make.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +status=$? + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + + process=$(ps x | grep konsole | grep $0 | awk '{print $1}') + if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') + fi +fi diff --git a/MELAWY/Updater/melawy-pamac-helper/01_sign.sh b/MELAWY/Updater/melawy-pamac-helper/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Updater/melawy-pamac-helper/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Updater/melawy-pamac-helper/LICENSE b/MELAWY/Updater/melawy-pamac-helper/LICENSE new file mode 100644 index 0000000..0ad25db --- /dev/null +++ b/MELAWY/Updater/melawy-pamac-helper/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/MELAWY/Updater/melawy-pamac-helper/PKGBUILD b/MELAWY/Updater/melawy-pamac-helper/PKGBUILD new file mode 100644 index 0000000..d28f121 --- /dev/null +++ b/MELAWY/Updater/melawy-pamac-helper/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.5 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Updater/$_gitname" +license=('AGPL') +depends=("pacman" "pamac") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/usr/bin/" + install -d "$pkgdir/usr/share/applications/" + + install -Dm755 "${srcdir}/$_gitname/pamac-helper" "$pkgdir/usr/bin/" + install -Dm644 "${srcdir}/$_gitname/pamac.desktop" "$pkgdir/usr/share/applications/" +} diff --git a/MELAWY/Updater/melawy-pamac-helper/README.md b/MELAWY/Updater/melawy-pamac-helper/README.md new file mode 100644 index 0000000..ba46e1b --- /dev/null +++ b/MELAWY/Updater/melawy-pamac-helper/README.md @@ -0,0 +1,11 @@ +# melawy-pamac-helper +Start pamac after pacman -Sy + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/.gitignore b/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/.gitignore new file mode 100644 index 0000000..4ef2027 --- /dev/null +++ b/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-plasma-plasmoid-archupdate diff --git a/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/00_make.sh b/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/00_make.sh new file mode 100755 index 0000000..7e7134b --- /dev/null +++ b/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/00_make.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +status=$? + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + + process=$(ps x | grep konsole | grep $0 | awk '{print $1}') + if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') + fi +fi diff --git a/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/01_sign.sh b/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/01_sign.sh new file mode 100755 index 0000000..77055f1 --- /dev/null +++ b/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done diff --git a/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/PKGBUILD b/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/PKGBUILD new file mode 100644 index 0000000..77e32e3 --- /dev/null +++ b/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.19 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://git.melawy.ru/Updater/$_gitname" +arch=("any") +license=("AGPL3") +depends=("plasma-desktop") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +THEME_NAME="com.github.Melawy.ArchUpdate" +THEME_PATH="/usr/share/plasma/plasmoids" + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir$THEME_PATH/" +} diff --git a/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/README.md b/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/README.md new file mode 100644 index 0000000..f5cc733 --- /dev/null +++ b/MELAWY/Updater/melawy-plasma-plasmoid-archupdate/README.md @@ -0,0 +1,11 @@ +# melawy-plasma-plasmoid-archupdate +Arch update plasmoid + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/MELAWY/Updater/move_to_repo.sh b/MELAWY/Updater/move_to_repo.sh new file mode 100755 index 0000000..fcd3a8f --- /dev/null +++ b/MELAWY/Updater/move_to_repo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.zst.sig" -delete +find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -delete + + +echo "Ready" +sleep 5 + +process=$(ps x | grep konsole | grep $0 | awk '{print $1}') +if [ $(( "$process" + 0 )) -ne 0 ]; then + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') +fi diff --git a/MELAWY/Updater/pwd.txt b/MELAWY/Updater/pwd.txt new file mode 100644 index 0000000..e8ade47 --- /dev/null +++ b/MELAWY/Updater/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD/MELAWY/Updater \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..6ce8bab --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# PKGBUILD +PKGBUILD files from 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 diff --git a/cleanup.sh b/cleanup.sh new file mode 100755 index 0000000..cb4c124 --- /dev/null +++ b/cleanup.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +mv .git/config config + +rm -rf .git + +git init -b main + +mv config .git/config + +git add --all . + +git commit -m "cleanup" + +git push origin main --force + +echo "################################################################" +echo "################### cleanup Done ######################" +echo "################################################################" diff --git a/find.sh b/find.sh new file mode 100755 index 0000000..a237ea0 --- /dev/null +++ b/find.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +for i in $(find . -name "PKGBUILD"); do grep "git.melawy.ru" $i; done + +echo "Ready" diff --git a/push.sh b/push.sh new file mode 100755 index 0000000..cb2e419 --- /dev/null +++ b/push.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +git add . && git commit -m "Update" && git push + +notify-send -a "$(basename $(pwd)): Push" -t 10000 "Update finished" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready"