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
This commit is contained in:
Kevin Veen-Birkenbach
2025-12-07 20:54:04 +01:00
parent 16a9d55d4f
commit 6fee6f27ee
2 changed files with 4 additions and 7 deletions

View File

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

View File

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