update 6.18.7

This commit is contained in:
2026-01-26 15:57:35 +01:00
parent ad7aba1ede
commit cb210b9947
8 changed files with 15453 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
# copied from Jan Alexander Steffens (heftig) <heftig@archlinux.org> # copied from Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgbase=linux-tom pkgbase=linux-tom
pkgver=6.18.5.arch1 pkgver=6.18.7.arch1
pkgrel=1 pkgrel=1
pkgdesc='Linux' pkgdesc='Linux'
url='https://github.com/archlinux/linux' url='https://github.com/archlinux/linux'
@@ -67,7 +67,8 @@ b2sums=('SKIP'
export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_HOST=archlinux
export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" # export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
export KBUILD_BUILD_TIMESTAMP='' # Force empty to allow cache hits
prepare() { prepare() {
cd $_srcname cd $_srcname

12285
config-6.18.7 Normal file

File diff suppressed because it is too large Load Diff

3053
config-6.18.7.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
6.18.7.arch1-1

View File

@@ -0,0 +1 @@
6.18.7.arch1-1

View File

@@ -0,0 +1 @@
6.18.7.arch1-1

67
update Executable file
View File

@@ -0,0 +1,67 @@
#!/bin/bash
# Abbrechen bei Fehlern
set -e
# --- KONFIGURATION ---
GIT_REPO_PATH="./git-repo"
TARGETS=("linux-tom" "linux-tom-headers" "linux-tom-docs")
# 1. Pakete bauen
# -s: Abhängigkeiten, -f: Überschreiben, -c: Aufräumen
echo "Starte Build-Prozess..."
makepkg -sfc --noconfirm
# 2. Version extrahieren
VERSION=$(grep '^pkgver=' PKGBUILD | cut -d= -f2)
REL=$(grep '^pkgrel=' PKGBUILD | cut -d= -f2)
FULL_VER_PATTERN="${VERSION}-${REL}"
# 3. Git-Verzeichnis vorbereiten
mkdir -p "$GIT_REPO_PATH"
echo "Aktualisiere Dateien in $GIT_REPO_PATH..."
FILES_TO_INSTALL=()
for name in "${TARGETS[@]}"; do
found_file=$(ls ${name}-${FULL_VER_PATTERN}-*.pkg.tar.zst 2>/dev/null | head -n 1)
if [ -f "$found_file" ]; then
DEST_FILE="$GIT_REPO_PATH/${name}.pkg.tar.zst"
cp "$found_file" "$DEST_FILE"
echo "${VERSION}-${REL}" > "$GIT_REPO_PATH/${name}.version"
FILES_TO_INSTALL+=("$DEST_FILE")
fi
done
# 4. Installation der neuen Pakete
if [ ${#FILES_TO_INSTALL[@]} -gt 0 ]; then
echo "Installiere Pakete lokal..."
sudo pacman -U --noconfirm "${FILES_TO_INSTALL[@]}"
else
echo "Fehler: Keine Pakete zum Installieren gefunden!"
exit 1
fi
# 5. Git-Upload (Commit & Push)
cd "$GIT_REPO_PATH"
if [ -d ".git" ]; then
# Vor dem Push die neuesten Änderungen vom Server holen
git pull --rebase
git add *.pkg.tar.zst *.version
# Prüfen, ob es Änderungen zum Committen gibt
if ! git diff-index --quiet HEAD; then
echo "Commit und Push der neuen Version $VERSION-$REL..."
git commit -m "Kernel Update: $VERSION-$REL"
git push
echo "Erfolgreich auf den Server hochgeladen."
else
echo "Keine Änderungen vorhanden, Push nicht notwendig."
fi
else
echo "Warnung: Kein Git-Repository in $GIT_REPO_PATH gefunden."
fi
echo "Vorgang abgeschlossen."

42
update.sh Executable file
View File

@@ -0,0 +1,42 @@
#!/bin/bash
# Exit if any command fails
set -e
# 1. Build and install the packages as you normally do
# -s: sync dependencies, -i: install after build, -f: overwrite existing
makepkg -sif
# 2. Extract version info dynamically from the PKGBUILD
VERSION=$(grep '^pkgver=' PKGBUILD | cut -d= -f2)
REL=$(grep '^pkgrel=' PKGBUILD | cut -d= -f2)
FULL_VER="${VERSION}-${REL}-x86_64"
# 3. Define the path to your Git repository (adjust if different)
GIT_REPO_PATH="./git-repo"
mkdir -p "$GIT_REPO_PATH"
# 4. Define the packages to track
targets=("linux-tom" "linux-tom-headers" "linux-tom-docs")
for name in "${targets[@]}"; do
actual_file="${name}-${FULL_VER}.pkg.tar.zst"
if [ -f "$actual_file" ]; then
echo "Updating $name in Git repository..."
# Overwrite the generic file name in the Git repo
# This keeps the filename stable for Git-LFS
cp "$actual_file" "$GIT_REPO_PATH/${name}.pkg.tar.zst"
# Update a small metadata file so you still know the version
echo "$FULL_VER" > "$GIT_REPO_PATH/${name}.version"
else
echo "Warning: $actual_file was not found."
fi
done
# 5. Commit to Git
cd "$GIT_REPO_PATH"
git add *.pkg.tar.zst *.version
git commit -m "Kernel Update: $FULL_VER"