Compare commits
No commits in common. "583f01c43ee3d01822d09a68585b16a6a5be5155" and "aee7b37124b46cbe60499ab7937feda3cfa07c0b" have entirely different histories.
583f01c43e
...
aee7b37124
|
|
@ -1,27 +0,0 @@
|
|||
# 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
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
#!/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
|
||||
kill $(ps x | grep konsole | grep $0 | awk '{print $1}')
|
||||
fi
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
#!/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}')
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
# Maintainer: Vladislav Nepogodin <nepogodin.vlad@gmail.com>
|
||||
|
||||
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:
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
# Maintainer: Vladislav Nepogodin <nepogodin.vlad@gmail.com>
|
||||
|
||||
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:
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
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)
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
507e852a0e3f1f0e971998b07dfc434ab5903fab 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
|
||||
|
|
@ -1 +0,0 @@
|
|||
ref: refs/heads/develop
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = true
|
||||
[remote "origin"]
|
||||
url = https://github.com/cachyos/kernel-manager.git
|
||||
fetch = +refs/*:refs/*
|
||||
mirror = true
|
||||
|
|
@ -1 +0,0 @@
|
|||
Unnamed repository; edit this file 'description' to name the repository.
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#!/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+"$@"}
|
||||
:
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
#!/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
|
||||
}
|
||||
|
|
@ -1,174 +0,0 @@
|
|||
#!/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 $/; <CHLD_OUT>};
|
||||
|
||||
# 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;
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#!/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
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#!/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+"$@"}
|
||||
:
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
#!/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 --
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
#!/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"
|
||||
:
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
#!/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:
|
||||
#
|
||||
# <local ref> <local oid> <remote ref> <remote oid>
|
||||
#
|
||||
# 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 </dev/null | tr '[0-9a-f]' '0')
|
||||
|
||||
while read local_ref local_oid remote_ref remote_oid
|
||||
do
|
||||
if test "$local_oid" = "$zero"
|
||||
then
|
||||
# Handle delete
|
||||
:
|
||||
else
|
||||
if test "$remote_oid" = "$zero"
|
||||
then
|
||||
# New branch, examine all commits
|
||||
range="$local_oid"
|
||||
else
|
||||
# Update to existing branch, examine new commits
|
||||
range="$remote_oid..$local_oid"
|
||||
fi
|
||||
|
||||
# Check for WIP commit
|
||||
commit=$(git rev-list -n 1 --grep '^WIP' "$range")
|
||||
if test -n "$commit"
|
||||
then
|
||||
echo >&2 "Found WIP commit in $local_ref, not pushing"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
|
@ -1,169 +0,0 @@
|
|||
#!/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
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
#!/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
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
#!/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
|
||||
|
|
@ -1,78 +0,0 @@
|
|||
#!/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 </dev/null)
|
||||
fi
|
||||
|
||||
if ! git diff-index --quiet --cached --ignore-submodules $head --
|
||||
then
|
||||
die "Working directory has staged changes"
|
||||
fi
|
||||
|
||||
if ! git read-tree -u -m "$commit"
|
||||
then
|
||||
die "Could not update working tree to new HEAD"
|
||||
fi
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# An example hook script to validate a patch (and/or patch series) before
|
||||
# sending it via email.
|
||||
#
|
||||
# The hook should exit with non-zero status after issuing an appropriate
|
||||
# message if it wants to prevent the email(s) from being sent.
|
||||
#
|
||||
# To enable this hook, rename this file to "sendemail-validate".
|
||||
#
|
||||
# By default, it will only check that the patch(es) can be applied on top of
|
||||
# the default upstream branch without conflicts in a secondary worktree. After
|
||||
# validation (successful or not) of the last patch of a series, the worktree
|
||||
# will be deleted.
|
||||
#
|
||||
# The following config variables can be set to change the default remote and
|
||||
# remote ref that are used to apply the patches against:
|
||||
#
|
||||
# sendemail.validateRemote (default: origin)
|
||||
# sendemail.validateRemoteRef (default: HEAD)
|
||||
#
|
||||
# Replace the TODO placeholders with appropriate checks according to your
|
||||
# needs.
|
||||
|
||||
validate_cover_letter () {
|
||||
file="$1"
|
||||
# TODO: Replace with appropriate checks (e.g. spell checking).
|
||||
true
|
||||
}
|
||||
|
||||
validate_patch () {
|
||||
file="$1"
|
||||
# Ensure that the patch applies without conflicts.
|
||||
git am -3 "$file" || return
|
||||
# TODO: Replace with appropriate checks for this patch
|
||||
# (e.g. checkpatch.pl).
|
||||
true
|
||||
}
|
||||
|
||||
validate_series () {
|
||||
# TODO: Replace with appropriate checks for the whole series
|
||||
# (e.g. quick build, coding style checks, etc.).
|
||||
true
|
||||
}
|
||||
|
||||
# main -------------------------------------------------------------------------
|
||||
|
||||
if test "$GIT_SENDEMAIL_FILE_COUNTER" = 1
|
||||
then
|
||||
remote=$(git config --default origin --get sendemail.validateRemote) &&
|
||||
ref=$(git config --default HEAD --get sendemail.validateRemoteRef) &&
|
||||
worktree=$(mktemp --tmpdir -d sendemail-validate.XXXXXXX) &&
|
||||
git worktree add -fd --checkout "$worktree" "refs/remotes/$remote/$ref" &&
|
||||
git config --replace-all sendemail.validateWorktree "$worktree"
|
||||
else
|
||||
worktree=$(git config --get sendemail.validateWorktree)
|
||||
fi || {
|
||||
echo "sendemail-validate: error: failed to prepare worktree" >&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
|
||||
|
|
@ -1,128 +0,0 @@
|
|||
#!/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 <ref> <oldrev> <newrev>)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
|
||||
echo "usage: $0 <ref> <oldrev> <newrev>" >&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 </dev/null | tr '[0-9a-f]' '0')
|
||||
if [ "$newrev" = "$zero" ]; then
|
||||
newrev_type=delete
|
||||
else
|
||||
newrev_type=$(git cat-file -t $newrev)
|
||||
fi
|
||||
|
||||
case "$refname","$newrev_type" in
|
||||
refs/tags/*,commit)
|
||||
# un-annotated tag
|
||||
short_refname=${refname##refs/tags/}
|
||||
if [ "$allowunannotated" != "true" ]; then
|
||||
echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&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
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
# 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]
|
||||
# *~
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,40 +0,0 @@
|
|||
# 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
|
||||
|
|
@ -1,191 +0,0 @@
|
|||
#!/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="John Doe <john@doe.com>"
|
||||
#-- Specify a key to use for package signing
|
||||
#GPGKEY=""
|
||||
|
||||
#########################################################################
|
||||
# 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=()
|
||||
|
|
@ -1,191 +0,0 @@
|
|||
#!/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="John Doe <john@doe.com>"
|
||||
#-- Specify a key to use for package signing
|
||||
#GPGKEY=""
|
||||
|
||||
#########################################################################
|
||||
# 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=()
|
||||
|
|
@ -1,172 +0,0 @@
|
|||
#!/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 <valeria@fadeeva.me>"
|
||||
#-- 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=()
|
||||
|
|
@ -1,172 +0,0 @@
|
|||
#!/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 <valeria@fadeeva.me>"
|
||||
#-- 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=()
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
# 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
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
#!/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
|
||||
|
||||
notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')"
|
||||
|
||||
echo "Ready"
|
||||
sleep 5
|
||||
kill $(ps x | grep konsole | grep $0 | awk '{print $1}')
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
#!/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}')
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
# Maintainer: Vladislav Nepogodin <nepogodin.vlad@gmail.com>
|
||||
|
||||
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:
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
#!/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
|
||||
|
||||
notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')"
|
||||
|
||||
echo "Ready"
|
||||
sleep 5
|
||||
kill $(ps x | grep konsole | grep $0 | awk '{print $1}')
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
#!/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}')
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
# Maintainer: Vladislav Nepogodin <nepogodin.vlad@gmail.com>
|
||||
|
||||
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:
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
#!/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"
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit af654bdb09a8243ddd2aff65bf926ba60e5b3224
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
#!/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}')
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 34b32c5a1417beaf2ee8a7a4034e55ba154e88ee
|
||||
|
|
@ -1,89 +0,0 @@
|
|||
#!/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"
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 91134fe49348e750953669af8440ad25c70d86c6
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#!/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 "*.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 "*.sig" -delete
|
||||
|
||||
echo "Ready"
|
||||
sleep 5
|
||||
kill $(ps x | grep konsole | grep $0 | awk '{print $1}')
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 38c29aaaf85cecdcfd222f2cea8345435371db51
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit d1c4cc3366706e1e28b9a056d368d65c34534759
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit a08473d3ee2a9a4fe0ac45dab6b78c4afafb6a55
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit e153426ccb8206f4a65373b11dd40ed3a7bba41e
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit aab250f513ab024d4d535a34959f37b425a212dc
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 6d395e789bf1c1f95189f737277c8e36864c76e1
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit e6565e36a41710bca8fb536f041d274cf4ce2d94
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 41edc14c995eb499caa8c224052ab832fa596946
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 12efbdc4f9372c92fe39b9d56f6a5c88ddd31872
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit a89b3266d20cc438851e8c6503f2222ad0cf0d45
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 7a2851d70445038a7259db8609080a97bf798b0d
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 358b8851759603ac465e3ed90c2f8d0f7c0021aa
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 0c765bdc1981d1ff755a9bada990712978afdd1b
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit b7e5b95e533462701516ea592ec86da099f7f349
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit dea74fb5b2a9850c8a35dad830b149575ade6daa
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
#!/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"
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
#!/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}')
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 62aa64569cd681ebdf67d47c5ecd1501ace13f99
|
||||
|
|
@ -1,89 +0,0 @@
|
|||
#!/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"
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#!/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 "*.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 "*.sig" -delete
|
||||
|
||||
echo "Ready"
|
||||
sleep 5
|
||||
kill $(ps x | grep konsole | grep $0 | awk '{print $1}')
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 50c577f7aa554dfdad963b4b52e2b796915721f5
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 8941169305e87e154cdde88e278ec3db2f75ec1b
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 0e9d8b94c03c11fae0a063ec547d0e147e815470
|
||||
|
|
@ -1 +0,0 @@
|
|||
/data/github/active/Melawy/PKGBUILD/3PARTY/catppuccin
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit da7c2914ba0df24a64d2bc5d5b2dff875f8a3ed1
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit e51c063eafe5a39ef09bc653133089968e10ef90
|
||||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 7ddb8fff4e44dca7605aa8e097b485ba1c2924e6
|
||||
|
|
@ -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
|
||||
git pull
|
||||
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
|
||||
|
||||
package_file=$(ls -1 | grep -v "pkg.tar.zst.sig" | grep "pkg.tar.zst")
|
||||
if [ -f "$CWD/$package_dir/$package_file" ]; then
|
||||
mv -v $CWD/$package_dir/$package_file $REPO/
|
||||
fi
|
||||
|
||||
package_file=$(ls -1 | grep -v "pkg.tar.xz.sig" | grep "pkg.tar.xz")
|
||||
if [ -f "$CWD/$package_dir/$package_file" ]; then
|
||||
mv -v $CWD/$package_dir/$package_file $REPO/
|
||||
fi
|
||||
|
||||
package_file=$(ls -1 | grep "pkg.tar.xz.sig")
|
||||
if [ -f "$CWD/$package_dir/$package_file" ]; then
|
||||
|
||||
mv -v $CWD/$package_dir/$package_file $REPO/
|
||||
fi
|
||||
|
||||
package_file=$(ls -1 | grep "pkg.tar.zst.sig")
|
||||
if [ -f "$CWD/$package_dir/$package_file" ]; then
|
||||
|
||||
mv -v $CWD/$package_dir/$package_file $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 999999999 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')"
|
||||
|
||||
echo "Ready"
|
||||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit f60f713623f2eef26b4b9728e1c25e3ba140b8aa
|
||||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 3064f8e3f2e27aef895e39abbf5f6069ba80b836
|
||||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 8eadde526582e6d939722a5c7e85bc5fef1d3c78
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue