aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-11-03 23:41:32 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-11-03 23:41:32 +0100
commitd2f215ca094983ce4636e41071538bc881a051cb (patch)
treebda82c87806481e6f7c69a26f2fbf032df519149
parentdbec8ab1119007c0c00de40732117bec702b5fda (diff)
downloadaurbuilder-d2f215ca094983ce4636e41071538bc881a051cb.tar.gz
a
-rw-r--r--Dockerfile6
-rw-r--r--Readme.md15
-rwxr-xr-xbuild.sh1
3 files changed, 21 insertions, 1 deletions
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 .