Initial commit

This commit is contained in:
Manuel 2022-08-01 11:21:23 +02:00
commit c36e9eace7
Signed by: Manuel
GPG key ID: 4085037435E1F07A
3 changed files with 21 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
/staged
/chroot
.SRCINFO

5
README.md Normal file
View file

@ -0,0 +1,5 @@
# AUR packages
These are PKGBUILDs for packages on the Arch User Repository I maintain, used to maintain or do plan on uploading or just keep here for preservation.
I may also use these for an automated build system soon™ that pushes these packages automatically to the AUR and/or to a pacman repo I maintain.

13
scripts/prepare-chroot.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
[ -z "$CHROOT" ] && echo "CHROOT env var is unset." && exit 1
sudo -v || exit 1
arch-nspawn "$CHROOT/root" pacman -Syu
mkdir -p -m 0755 "$CHROOT/$USER"
mountpoint -q "$CHROOT/$USER"
[ $? -gt 0 ] && sudo mount -t tmpfs -o defaults,nodev,mode=0755,uid=$(id -u),gid=$(id -g) tmpfs "$CHROOT/$USER"
exit 0