Initial commit — Antergos NeXT PKGS

This commit is contained in:
2026-06-07 19:46:29 +02:00
commit c20fa06257
4 changed files with 103 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
name: Build Packages
on:
push:
branches: [main]
workflow_dispatch:
schedule:
- cron: "0 0 * * 1"
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- uses: actions/checkout@v4
- name: Install deps
run: |
pacman -Syu --noconfirm --needed \
python-yaml \
git \
sudo \
base-devel
- name: Create builder user
run: |
useradd -m builder
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
- name: Build packages
run: python build-packages.py
- name: Set up repo
run: |
mkdir -p x86_64
cp /tmp/pkgout/*.pkg.tar.zst x86_64/
cd x86_64
repo-add antergos-pkgs.db.tar.gz *.pkg.tar.zst
- name: Deploy to Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./x86_64
keep_files: false
+25
View File
@@ -0,0 +1,25 @@
import yaml
import subprocess
import os
import shutil
import glob
with open("packages.yaml") as f:
pkgs = yaml.safe_load(f)["packages"]
os.makedirs("/tmp/pkgout", exist_ok=True)
for pkg in pkgs:
clone_dir = f"/tmp/{pkg}"
if os.path.exists(clone_dir):
shutil.rmtree(clone_dir)
subprocess.run(["git", "clone", f"https://aur.archlinux.org/{pkg}.git", clone_dir])
subprocess.run(["chown", "-R", "builder:builder", clone_dir])
subprocess.run(["su", "-", "builder", "-c", f"cd {clone_dir} && makepkg -s --noconfirm --noprogress --skippgpcheck --skipinteg"])
subprocess.run(f"cp {clone_dir}/*.pkg.tar.zst /tmp/pkgout/ || true", shell=True)
print("Done!")
+4
View File
@@ -0,0 +1,4 @@
packages:
- antergos-wallpapers
- yay
- downgrade
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
set -e
echo "Setting up Antergos NeXT PKGS..."
if [[ $EUID -ne 0 ]]; then
echo "Run with sudo!"
exit 1
fi
cp /etc/pacman.conf /etc/pacman.conf.backup
if ! grep -q "\[antergos-pkgs\]" /etc/pacman.conf; then
cat >> /etc/pacman.conf << 'CONF'
[antergos-pkgs]
SigLevel = Optional TrustAll
Server = https://Antergos-NeXT.github.io/antergos-pkgs/x86_64
CONF
echo "Added antergos-pkgs to pacman.conf"
else
echo "antergos-pkgs already in pacman.conf"
fi
pacman -Sy
echo "Antergos NeXT PKGS ready!"