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:
@@ -6,6 +6,7 @@ RUN pacman -Syu --noconfirm \
|
|||||||
base-devel \
|
base-devel \
|
||||||
git \
|
git \
|
||||||
nix \
|
nix \
|
||||||
|
rsync \
|
||||||
&& pacman -Scc --noconfirm
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
# 2) Unprivileged user for building Arch packages
|
# 2) Unprivileged user for building Arch packages
|
||||||
@@ -13,7 +14,7 @@ RUN useradd -m builder
|
|||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
# 3) Only PKGBUILD rein, um dein Wrapper-Paket zu bauen
|
# 3) Only PKGBUILD rein, um dein Wrapper-Paket zu bauen
|
||||||
COPY PKGBUILD .
|
COPY . .
|
||||||
|
|
||||||
RUN chown -R builder:builder /build \
|
RUN chown -R builder:builder /build \
|
||||||
&& su builder -c "makepkg -s --noconfirm --clean" \
|
&& su builder -c "makepkg -s --noconfirm --clean" \
|
||||||
|
|||||||
8
PKGBUILD
8
PKGBUILD
@@ -16,12 +16,8 @@ install=${pkgname}.install
|
|||||||
|
|
||||||
# Local source checkout — avoids the tarball requirement.
|
# Local source checkout — avoids the tarball requirement.
|
||||||
# This assumes you build the package from inside the main project repository.
|
# This assumes you build the package from inside the main project repository.
|
||||||
source=(
|
source=()
|
||||||
"scripts/pkgmgr-wrapper.sh"
|
sha256sums=()
|
||||||
"scripts/init-nix.sh"
|
|
||||||
)
|
|
||||||
|
|
||||||
sha256sums=('SKIP' 'SKIP')
|
|
||||||
|
|
||||||
# Local source directory name under $srcdir
|
# Local source directory name under $srcdir
|
||||||
_srcdir_name="source"
|
_srcdir_name="source"
|
||||||
|
|||||||
Reference in New Issue
Block a user