This commit is contained in:
Valeria Fadeeva 2024-07-19 22:36:59 +05:00
commit 154f9b19ed
2521 changed files with 20370 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.tar.*

@ -0,0 +1 @@
Subproject commit dde051317da5c546ccdf1129678a4e9e7aa731a2

@ -0,0 +1 @@
Subproject commit c48470c5fb34030494ebd5d2f4e4b7c59dfab032

@ -0,0 +1 @@
Subproject commit c195a6c5301d77975ba49e8aaab377396e34aeaf

@ -0,0 +1 @@
Subproject commit 1baf4ba3f9518309e0f80643bd364a91cc363ce4

@ -0,0 +1 @@
Subproject commit 969b23dbcba472a15adc0fb32deadec38f679ebc

@ -0,0 +1 @@
Subproject commit b0731223695d0826639834ca36f36e761000a674

42
3PARTY/3party/clean.sh Executable file
View File

@ -0,0 +1,42 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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
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

14
3PARTY/3party/copy_to_repo.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec cp -v {} $REPO \;
find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec cp -v {} $REPO \;
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

@ -0,0 +1 @@
Subproject commit 0792c7d6226795517e29009ea0624fc7598ae21b

1
3PARTY/3party/ftl-sdk Submodule

@ -0,0 +1 @@
Subproject commit 646a23cd362bbd050a0f5632db2c94faee7e3f88

26
3PARTY/3party/git_pull.sh Executable file
View File

@ -0,0 +1,26 @@
#!/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}"
if [ -d ".git" ]; then
git pull
fi
cd "${CWD}"
echo ""
done
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

@ -0,0 +1 @@
Subproject commit 26decb613887afe9c86d46f3a81bb6826e705362

@ -0,0 +1 @@
Subproject commit eaecf69494ad6c97afcfa6b8f4ed2726c76a7dea

@ -0,0 +1 @@
Subproject commit d70fad31c18929f3f48ba545ac274701461f68e3

@ -0,0 +1 @@
Subproject commit 2fbbf81b8849e7eedd23a04057cd4f8331c17c66

112
3PARTY/3party/make.sh Executable file
View File

@ -0,0 +1,112 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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 --config /etc/makepkg-gcc.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-gcc-without-lto.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-clang.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-clang-without-lto.conf
if [ "$?" -ne 0 ]; then
echo "all fail" > fail
else
echo "makepkg-clang-without-lto.conf" > success
fi
else
echo "makepkg-clang.conf" > success
fi
else
echo "makepkg-gcc-without-lto.conf" > success
fi
else
echo "makepkg-gcc.conf" > success
fi
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"

@ -0,0 +1 @@
Subproject commit a508abb1e6c6cc16d4d23bd3108bdb064dc7c740

20
3PARTY/3party/move_to_repo.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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

@ -0,0 +1 @@
Subproject commit 9bfcd37bf18de08171360ad6f69373b7b4b63aec

@ -0,0 +1 @@
Subproject commit 4aca478a27f82ef359f1ffe5ff1448c0bdd29212

@ -0,0 +1 @@
Subproject commit 52bf736ed2632303e44af97edb8c0b7e1b88fca4

@ -0,0 +1 @@
Subproject commit 4ea06139a643cbdd4f6d924c4353da376842ace7

@ -0,0 +1 @@
Subproject commit a04201d28847d7effab68c69d1f4e323d72537c7

1
3PARTY/3party/pwd.txt Normal file
View File

@ -0,0 +1 @@
/data/github/active/Melawy/PKGBUILD/3PARTY/3party

@ -0,0 +1 @@
Subproject commit d1c4cc3366706e1e28b9a056d368d65c34534759

@ -0,0 +1 @@
Subproject commit 4c097fb1f54651c43ab9c920d559bde517968404

1
3PARTY/3party/repo.txt Normal file
View File

@ -0,0 +1 @@
/data/github/active/Melawy/REPO/melawy-3party/x86_64/

@ -0,0 +1 @@
Subproject commit 12af7bc65342fabb321f5b2924e57ff2e73aa948

@ -0,0 +1 @@
Subproject commit 8b77fb59be9de1660c9b296f30d7beeb067421c6

@ -0,0 +1 @@
Subproject commit 972bff9c5d20edd76d8d8ef9fa612aa57611b4b3

@ -0,0 +1 @@
Subproject commit 2e3ddce252989ffacdcc1dae846e9a745cb05db1

73
3PARTY/3party/sign.sh Executable file
View File

@ -0,0 +1,73 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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
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

1
3PARTY/3party/ss-face Submodule

@ -0,0 +1 @@
Subproject commit 72f92b9113b8286d63c5b82ff8c05a9f194eb245

@ -0,0 +1 @@
Subproject commit 9a9678a76b13fa7743f1e97e6689a288143bd7b1

@ -0,0 +1 @@
Subproject commit a345d8008a7354aeb31be19325ab61053b6b6a04

@ -0,0 +1 @@
Subproject commit 4b3621d776c7090b7d42ff53e1aa0170e16477e5

@ -0,0 +1 @@
Subproject commit eeb57a536572c45efb02a53ed48046e9d2445210

@ -0,0 +1 @@
Subproject commit db2211323f5c4c2af89f9033cd651909d9fac75c

@ -0,0 +1 @@
Subproject commit 3451a7e5c315ec85d1f3d04c6577cd976bae748a

View File

@ -0,0 +1,3 @@
python-flatbencode
python-torf
torf-cli

@ -0,0 +1 @@
Subproject commit 45bb220cd9579cd18e7f23251e6c287e995a9f40

@ -0,0 +1 @@
Subproject commit df087438f846de950ba59177bca2f03061901f4d

@ -0,0 +1 @@
Subproject commit 246b311f61916e24337415eccf1a256d9da6341a

67
3PARTY/One_per_month/make.sh Executable file
View File

@ -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"

View File

@ -0,0 +1,20 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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

View File

@ -0,0 +1 @@
/data/github/active/Melawy/PKGBUILD/3PARTY/One_per_month

View File

@ -0,0 +1 @@
/data/github/active/Melawy/REPO/melawy-3party/x86_64/

@ -0,0 +1 @@
Subproject commit e6565e36a41710bca8fb536f041d274cf4ce2d94

@ -0,0 +1 @@
Subproject commit 41edc14c995eb499caa8c224052ab832fa596946

@ -0,0 +1 @@
Subproject commit 12efbdc4f9372c92fe39b9d56f6a5c88ddd31872

@ -0,0 +1 @@
Subproject commit a89b3266d20cc438851e8c6503f2222ad0cf0d45

@ -0,0 +1 @@
Subproject commit 340cbfd00a43a65b74f3dd84d63414f2422daf4f

@ -0,0 +1 @@
Subproject commit f5cded95f49f90f19e383c3af945821398b4087c

@ -0,0 +1 @@
Subproject commit 3412d49f1563015a99e8e4e3c9e6f13e1a054365

@ -0,0 +1 @@
Subproject commit ff70c1eba00130b0aecac74e9b46d26cbb05a652

@ -0,0 +1 @@
Subproject commit dea74fb5b2a9850c8a35dad830b149575ade6daa

42
3PARTY/catppuccin/clean.sh Executable file
View File

@ -0,0 +1,42 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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
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

View File

@ -0,0 +1,14 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec cp -v {} $REPO \;
find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec cp -v {} $REPO \;
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

26
3PARTY/catppuccin/git_pull.sh Executable file
View File

@ -0,0 +1,26 @@
#!/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}"
if [ -d ".git" ]; then
git pull
fi
cd "${CWD}"
echo ""
done
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

@ -0,0 +1 @@
Subproject commit 62aa64569cd681ebdf67d47c5ecd1501ace13f99

112
3PARTY/catppuccin/make.sh Executable file
View File

@ -0,0 +1,112 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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 --config /etc/makepkg-gcc.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-gcc-without-lto.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-clang.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-clang-without-lto.conf
if [ "$?" -ne 0 ]; then
echo "all fail" > fail
else
echo "makepkg-clang-without-lto.conf" > success
fi
else
echo "makepkg-clang.conf" > success
fi
else
echo "makepkg-gcc-without-lto.conf" > success
fi
else
echo "makepkg-gcc.conf" > success
fi
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"

View File

@ -0,0 +1,20 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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

@ -0,0 +1 @@
Subproject commit 50c577f7aa554dfdad963b4b52e2b796915721f5

@ -0,0 +1 @@
Subproject commit 8941169305e87e154cdde88e278ec3db2f75ec1b

@ -0,0 +1 @@
Subproject commit 0e9d8b94c03c11fae0a063ec547d0e147e815470

View File

@ -0,0 +1 @@
/data/github/active/Melawy/PKGBUILD/3PARTY/catppuccin

@ -0,0 +1 @@
Subproject commit da7c2914ba0df24a64d2bc5d5b2dff875f8a3ed1

View File

@ -0,0 +1 @@
/data/github/active/Melawy/REPO/melawy-3party/x86_64/

@ -0,0 +1 @@
Subproject commit 5e2907b53fc5af3b1a945ea8cff920be8cc2ee76

73
3PARTY/catppuccin/sign.sh Executable file
View File

@ -0,0 +1,73 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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
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

42
3PARTY/obs/clean.sh Executable file
View File

@ -0,0 +1,42 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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
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

14
3PARTY/obs/copy_to_repo.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz" -exec cp -v {} $REPO \;
find . -mindepth 1 -maxdepth 3 -type f -name "*.pkg.tar.xz.sig" -exec cp -v {} $REPO \;
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

1
3PARTY/obs/deps0/asio Submodule

@ -0,0 +1 @@
Subproject commit 81d7dc7d6bfef0cdd38288f01e0f35d5a9f5bbb7

42
3PARTY/obs/deps0/clean.sh Executable file
View File

@ -0,0 +1,42 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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
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

26
3PARTY/obs/deps0/git_pull.sh Executable file
View File

@ -0,0 +1,26 @@
#!/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}"
if [ -d ".git" ]; then
git pull
fi
cd "${CWD}"
echo ""
done
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

112
3PARTY/obs/deps0/make.sh Executable file
View File

@ -0,0 +1,112 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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 --config /etc/makepkg-gcc.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-gcc-without-lto.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-clang.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-clang-without-lto.conf
if [ "$?" -ne 0 ]; then
echo "all fail" > fail
else
echo "makepkg-clang-without-lto.conf" > success
fi
else
echo "makepkg-clang.conf" > success
fi
else
echo "makepkg-gcc-without-lto.conf" > success
fi
else
echo "makepkg-gcc.conf" > success
fi
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"

View File

@ -0,0 +1,20 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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

1
3PARTY/obs/deps0/pwd.txt Normal file
View File

@ -0,0 +1 @@
/data/github/active/Melawy/PKGBUILD/3PARTY/obs/deps0

View File

@ -0,0 +1 @@
/data/github/active/Melawy/REPO/melawy-3party/x86_64/

73
3PARTY/obs/deps0/sign.sh Executable file
View File

@ -0,0 +1,73 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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
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

@ -0,0 +1 @@
Subproject commit bcc951f3f42645f3ecd8fcb08dc6b1110f838822

@ -0,0 +1 @@
Subproject commit 8a32fc3767ce171e732213424ea2791faf6a58f4

@ -0,0 +1 @@
Subproject commit 49cf0aa57b8ead631ea5bcabdf4da0e27b984487

42
3PARTY/obs/deps1/clean.sh Executable file
View File

@ -0,0 +1,42 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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
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

26
3PARTY/obs/deps1/git_pull.sh Executable file
View File

@ -0,0 +1,26 @@
#!/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}"
if [ -d ".git" ]; then
git pull
fi
cd "${CWD}"
echo ""
done
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

@ -0,0 +1 @@
Subproject commit 2f5d5bc0196ba2dc8793f350a264fb2b29dfa104

112
3PARTY/obs/deps1/make.sh Executable file
View File

@ -0,0 +1,112 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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 --config /etc/makepkg-gcc.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-gcc-without-lto.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-clang.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-clang-without-lto.conf
if [ "$?" -ne 0 ]; then
echo "all fail" > fail
else
echo "makepkg-clang-without-lto.conf" > success
fi
else
echo "makepkg-clang.conf" > success
fi
else
echo "makepkg-gcc-without-lto.conf" > success
fi
else
echo "makepkg-gcc.conf" > success
fi
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"

View File

@ -0,0 +1,20 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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

1
3PARTY/obs/deps1/pwd.txt Normal file
View File

@ -0,0 +1 @@
/data/github/active/Melawy/PKGBUILD/3PARTY/obs/deps1

View File

@ -0,0 +1 @@
/data/github/active/Melawy/REPO/melawy-3party/x86_64/

73
3PARTY/obs/deps1/sign.sh Executable file
View File

@ -0,0 +1,73 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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
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

42
3PARTY/obs/deps2/clean.sh Executable file
View File

@ -0,0 +1,42 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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
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

26
3PARTY/obs/deps2/git_pull.sh Executable file
View File

@ -0,0 +1,26 @@
#!/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}"
if [ -d ".git" ]; then
git pull
fi
cd "${CWD}"
echo ""
done
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

@ -0,0 +1 @@
Subproject commit 6f11adfee052c1eb7c5c800291418819cc7a2f1c

@ -0,0 +1 @@
Subproject commit ef09234cea3670bff419c38c7ed820e716ab20ef

@ -0,0 +1 @@
Subproject commit 3635567d7174a1ce8f2e407242bd36a9592175e0

112
3PARTY/obs/deps2/make.sh Executable file
View File

@ -0,0 +1,112 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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 --config /etc/makepkg-gcc.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-gcc-without-lto.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-clang.conf
if [ "$?" -ne 0 ]; then
makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force --config /etc/makepkg-clang-without-lto.conf
if [ "$?" -ne 0 ]; then
echo "all fail" > fail
else
echo "makepkg-clang-without-lto.conf" > success
fi
else
echo "makepkg-clang.conf" > success
fi
else
echo "makepkg-gcc-without-lto.conf" > success
fi
else
echo "makepkg-gcc.conf" > success
fi
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"

View File

@ -0,0 +1,20 @@
#!/bin/bash
REPO="$(cat repo.txt | tr -d '[:blank:]' | tr -d '[:space:]')"
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

1
3PARTY/obs/deps2/pwd.txt Normal file
View File

@ -0,0 +1 @@
/data/github/active/Melawy/PKGBUILD/3PARTY/obs/deps2

Some files were not shown because too many files have changed in this diff Show More