commit 0e4dba2c9d2c9920dc03d2abb882d203c90a162a Author: Sebastian Tobie Date: Sun Jul 13 13:21:48 2025 +0200 erster commit das dient dazu Packete einfacher und ohne nebenwirkungen zu bauen diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9ee6e38 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.bash_history +packages/*/.config +packages/*/.cache +packages/*/*.pkg.tar.* +packages/*/*.tar.gz \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1925df4 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,24 @@ +[submodule "packages/mozillavpn"] + path = packages/mozillavpn + url = https://aur.archlinux.org/mozillavpn.git +[submodule "packages/openterface_qt"] + path = packages/openterface_qt + url = https://aur.archlinux.org/openterface_qt.git +[submodule "packages/vscodium-bin"] + path = packages/vscodium-bin + url = https://aur.archlinux.org/vscodium-bin.git +[submodule "packages/syncthingtray-qt6"] + path = packages/syncthingtray-qt6 + url = https://aur.archlinux.org/syncthingtray-qt6.git +[submodule "packages/qtutilities-qt6"] + path = packages/qtutilities-qt6 + url = https://aur.archlinux.org/qtutilities-qt6.git +[submodule "packages/c++utilities"] + path = packages/c++utilities + url = https://aur.archlinux.org/c++utilities.git +[submodule "packages/qtforkawesome-qt6"] + path = packages/qtforkawesome-qt6 + url = https://aur.archlinux.org/qtforkawesome-qt6.git +[submodule "packages/yay"] + path = packages/yay + url = https://aur.archlinux.org/yay.git diff --git a/add_aur.sh b/add_aur.sh new file mode 100755 index 0000000..e63c8b1 --- /dev/null +++ b/add_aur.sh @@ -0,0 +1,7 @@ +#!/bin/zsh +pkg="$1" +if [ -d "packages/${pkg}" ] ; then + echo "Packet ${pkg} existiert bereits" + exit 1 +fi +git submodule add "https://aur.archlinux.org/${pkg}.git" "packages/${pkg}" diff --git a/build_pkg.sh b/build_pkg.sh new file mode 100755 index 0000000..b979fce --- /dev/null +++ b/build_pkg.sh @@ -0,0 +1,17 @@ +#!/bin/zsh +pkg="$1" +container=$(echo -n "makepkg-${pkg}" | sed 's;c++;cxx;g') +if [ -z "${pkg}" ] ; then + echo "kein Packet angegeben" + exit 1 +fi +echo "Starte container ${container}" +podman run --detach --quiet --rm -v /etc/pacman.d/mirrorlist:/etc/pacman.d/mirrorlist -v $PWD:/src -v pkg_cache:/var/cache/pacman/pkg -w "/src/packages/$pkg" --userns keep-id --name "${container}" docker.io/archlinux:base-devel /src/wait.sh >/dev/null || exit 1 +cleanup() { + podman stop "${container}" >/dev/null +} + +trap cleanup INT TERM ZERR EXIT +podman exec -ti -w "/src/packages/$pkg" -u 0 "${container}" /src/install_deps.sh +podman exec -t -w "/src/packages/$pkg" "${container}" makepkg -Cc +forgejo-uploader packete arch aur "packages/${pkg}/"*.pkg.tar.* diff --git a/depfilter.awk b/depfilter.awk new file mode 100644 index 0000000..97be950 --- /dev/null +++ b/depfilter.awk @@ -0,0 +1,14 @@ +#!/usr/bin/awk -f +$1 ~ /(|opt|make)depends(_x86_64)?/ { + if ($3 ~ /.+-doc:?/) { + next + } + if ($3 ~ /.+:/) { + print substr($3, 1, length($3)-1) + } else { + print $3 + } +} +$1 == "pkgname" { + exit +} diff --git a/install_deps.sh b/install_deps.sh new file mode 100755 index 0000000..b13f1bc --- /dev/null +++ b/install_deps.sh @@ -0,0 +1,14 @@ +#!/bin/bash +pkgs=$(awk -f /src/depfilter.awk .SRCINFO | xargs) +cat >>/etc/pacman.conf <