From d2f215ca094983ce4636e41071538bc881a051cb Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 3 Nov 2022 23:41:32 +0100 Subject: a --- Dockerfile | 6 +++++- Readme.md | 15 +++++++++++++++ build.sh | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Readme.md diff --git a/Dockerfile b/Dockerfile index 3f729bd..156d947 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,15 @@ FROM archlinux:base-devel +RUN pacman --noconfirm -Syu ARG AUR_RPC_BASE_URL="https://aur.archlinux.org/rpc/v5" ARG PACKAGE_NAME="" ARG BUILD_ALL_AUR_DEPENDS="no" -COPY --chown=root:root buildpackage.sh /buildpackage.sh RUN mkdir /pkgout VOLUME /pkgout +RUN pacman --noconfirm -S python python-requests + +COPY --chown=root:root buildpackage.sh /buildpackage.sh + CMD /buildpackage.s $PACKAGE_URL diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..ba90042 --- /dev/null +++ b/Readme.md @@ -0,0 +1,15 @@ +# AUR PKG Builder + +Docker base AUR Package builder for local arch repo + +## Workflow + +Provided: Package name + +* search AUR for package (exact match only!) +* build dependency tree (also search with provided, then there is no exact match) +* prioritize packages in official repos. Don't build them. +* Add all AUR-PKGs in tree to to-build-list +* MAKEPKG ur way thourhg + + diff --git a/build.sh b/build.sh index 85a3a95..4f4c609 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,4 @@ #!/bin/bash +docker pull archlinux:base-devel docker build -t archpkg . -- cgit v1.2.3