-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·32 lines (23 loc) · 757 Bytes
/
Copy pathMakefile
File metadata and controls
executable file
·32 lines (23 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
IMG_NAME=ususdei/archbuild
DATA=${PWD}
CMD=su packager makepkg
all: image
docker run --rm -it --volume=${DATA}:/data ${IMG_NAME} ${CMD}
shell: image
docker run --rm -it --volume=${DATA}:/data ${IMG_NAME} bash -l
image:
docker build -t ${IMG_NAME} .
archlinux:
sudo pacman -S arch-install-scripts expect
mkdir -p arch
wget https://raw.githubusercontent.com/docker/docker/master/contrib/mkimage-arch.sh -O arch/mkimage-arch.sh
chmod +x arch/mkimage-arch.sh
cp /etc/pacman.conf arch/mkimage-arch-pacman.conf
cd arch && sudo ./mkimage-arch.sh
install:
sudo pacman -U xapian-python3-git-r*.pkg.tar.xz
clean:
-rm -rf arch
-rm -rf src pkg xapian-python3
-rm -rf xapian-python3-git-r*.pkg.tar.xz
-sed -i 's/^pkgver=r.\+/pkgver=git/' PKGBUILD