blob: be4701529395d83a24ad433e2301cac36486768f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env bash
set -euo pipefail
CHROOT="./buildroot"
sudo mount --mkdir -t tmpfs -o defaults,size=20G tmpfs "${CHROOT}"
mkarchroot "${CHROOT}/root" base-devel jdk-openjdk git
cleanup() {
sudo umount "${CHROOT}"
rmdir "${CHROOT}"
}
trap cleanup EXIT
sudo cp ./aurdeps "${CHROOT}/root"
arch-nspawn "${CHROOT}/root" ./aurdeps
sudo makechrootpkg -c -r "${CHROOT}"
|