From 6fee6f27ee197f35f9f3da8a4e1b6d6a27454dc5 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 7 Dec 2025 20:54:04 +0100 Subject: [PATCH] Fix PKGBUILD source handling and Docker build context This commit removes unnecessary source entries from PKGBUILD to allow full local-tree packaging through prepare(), and updates the Dockerfile to copy the entire repository and install rsync for makepkg buildtime dependencies. See conversation: https://chatgpt.com/share/6935db4e-f3e8-800f-b0ca-42f77491ef5b --- Dockerfile | 3 ++- PKGBUILD | 8 ++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index bd0f299..a51b471 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ RUN pacman -Syu --noconfirm \ base-devel \ git \ nix \ + rsync \ && pacman -Scc --noconfirm # 2) Unprivileged user for building Arch packages @@ -13,7 +14,7 @@ RUN useradd -m builder WORKDIR /build # 3) Only PKGBUILD rein, um dein Wrapper-Paket zu bauen -COPY PKGBUILD . +COPY . . RUN chown -R builder:builder /build \ && su builder -c "makepkg -s --noconfirm --clean" \ diff --git a/PKGBUILD b/PKGBUILD index cb91300..177c4b7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -16,12 +16,8 @@ install=${pkgname}.install # Local source checkout — avoids the tarball requirement. # This assumes you build the package from inside the main project repository. -source=( - "scripts/pkgmgr-wrapper.sh" - "scripts/init-nix.sh" -) - -sha256sums=('SKIP' 'SKIP') +source=() +sha256sums=() # Local source directory name under $srcdir _srcdir_name="source"