Initial commit
This commit is contained in:
commit
c36e9eace7
3 changed files with 21 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
/staged
|
||||
/chroot
|
||||
.SRCINFO
|
5
README.md
Normal file
5
README.md
Normal 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
13
scripts/prepare-chroot.sh
Executable 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
|
Loading…
Reference in a new issue