This commit is contained in:
parent
77a5daf723
commit
14c3f0df62
@ -1,6 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -u
|
set -u
|
||||||
set -e
|
set -e
|
||||||
|
set -v
|
||||||
|
|
||||||
|
|
||||||
sudo pacman-key --init
|
sudo pacman-key --init
|
||||||
|
|
||||||
@ -11,11 +13,11 @@ repo-add "/repo/${AUR_REPO_NAME}.db.tar.xz"
|
|||||||
sudo pacman -Syu --noconfirm minio-client pacman-contrib
|
sudo pacman -Syu --noconfirm minio-client pacman-contrib
|
||||||
|
|
||||||
mcli alias set s3 https://s3.tobiasmanske.de $REPO_ACCESS_KEY $REPO_SECRET_KEY
|
mcli alias set s3 https://s3.tobiasmanske.de $REPO_ACCESS_KEY $REPO_SECRET_KEY
|
||||||
mcli cp s3/repo/x86_64/rad4day.db.tar.xz /repo/x86_64/rad4day.db.tar.xz
|
mcli cp s3/repo/x86_64/rad4day.db.tar.xz /repo/rad4day.db.tar.xz
|
||||||
mcli cp s3/repo/x86_64/rad4day.files.tar.xz /repo/x86_64/rad4day.files.tar.xz
|
mcli cp s3/repo/x86_64/rad4day.files.tar.xz /repo/rad4day.files.tar.xz
|
||||||
|
|
||||||
mcli cp s3/repo/x86_64/rad4day.db.tar.xz.sig /repo/x86_64/rad4day.db.tar.xz.sig
|
mcli cp s3/repo/x86_64/rad4day.db.tar.xz.sig /repo/rad4day.db.tar.xz.sig
|
||||||
mcli cp s3/repo/x86_64/rad4day.files.tar.xz.sig /repo/x86_64/rad4day.files.tar.xz.sig
|
mcli cp s3/repo/x86_64/rad4day.files.tar.xz.sig /repo/rad4day.files.tar.xz.sig
|
||||||
|
|
||||||
if ! (aur repo > /dev/null 2>&1); then
|
if ! (aur repo > /dev/null 2>&1); then
|
||||||
printf "Aur repo not initialized, initializing /repo...\n"
|
printf "Aur repo not initialized, initializing /repo...\n"
|
||||||
@ -29,7 +31,7 @@ gpg --import --batch trustroot.asc
|
|||||||
sudo pacman-key --lsign 10BE06BC275CE0E17373B368F67996C486D1B56B
|
sudo pacman-key --lsign 10BE06BC275CE0E17373B368F67996C486D1B56B
|
||||||
|
|
||||||
|
|
||||||
repoctl conf new "$(readlink -f \"/repo/${AUR_REPO_NAME}.db\")"
|
# repoctl conf new "$(readlink -f \"/repo/${AUR_REPO_NAME}.db.tar.xz\")"
|
||||||
|
|
||||||
# Setup signing
|
# Setup signing
|
||||||
echo "$BUILD_GPG_KEY" | base64 -d | gpg --import --batch
|
echo "$BUILD_GPG_KEY" | base64 -d | gpg --import --batch
|
||||||
@ -42,19 +44,34 @@ sudo pacman --noconfirm -Syu
|
|||||||
git clone --recursive https://git.tobiasmanske.de/archlinux-repo/package_sources.git packages
|
git clone --recursive https://git.tobiasmanske.de/archlinux-repo/package_sources.git packages
|
||||||
cd packages
|
cd packages
|
||||||
|
|
||||||
|
touch buildqueue
|
||||||
|
## OBTAIN PACKAGES TO BUILD
|
||||||
|
|
||||||
git submodule update --remote --merge # Make sure we are up to date if something is linked as a submodule
|
git submodule update --remote --merge # Make sure we are up to date if something is linked as a submodule
|
||||||
#
|
#
|
||||||
# Rebuild all git packages
|
# Rebuild all git packages
|
||||||
paclist rad4day | awk '{print $1}' | grep -e "-git$" | aur fetch -
|
aur repo --list
|
||||||
|
aur repo --list | awk '{print $1}' | grep -e "-git$" | aur fetch -
|
||||||
find . -name PKGBUILD -execdir sh -c 'makepkg --printsrcinfo > .SRCINFO' \;
|
find . -name PKGBUILD -execdir sh -c 'makepkg --printsrcinfo > .SRCINFO' \;
|
||||||
|
|
||||||
# Build all packages defined in our git
|
find . -iname PKGBUILD -exec dirname {} \; | aur srcver - > vcs
|
||||||
cat */.SRCINFO | aur graph | tsort | tac > queue
|
|
||||||
|
aur repo --list | aur vercmp -q -p vcs | tee -a buildqueue
|
||||||
|
|
||||||
|
aur repo --list | aur vercmp -q | tee -a buildqueue | aur fetch - # pull outdated packages
|
||||||
|
|
||||||
|
|
||||||
|
# Build all packages defined in buildqueue
|
||||||
|
while read -r i; do
|
||||||
|
cat "$i"/.SRCINFO
|
||||||
|
done < buildqueue | aur graph | tsort | tac > queue
|
||||||
echo
|
echo
|
||||||
echo QUEUE
|
echo QUEUE
|
||||||
echo
|
echo
|
||||||
cat queue
|
cat queue
|
||||||
|
|
||||||
|
## BUILD
|
||||||
|
|
||||||
aur build -S --noconfirm -a queue --no-sync --margs -s
|
aur build -S --noconfirm -a queue --no-sync --margs -s
|
||||||
|
|
||||||
# build all packages defined in our repo
|
# build all packages defined in our repo
|
||||||
|
Loading…
Reference in New Issue
Block a user