blob: eb2e4373baf2197d255c3942ec1e9125b8931bed (
plain)
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
|
FROM archlinux
# base-devel is required for building.
#
# gtk3 is an optional dependency, but to that all linked libraries are satisfied,
# we also install it.
RUN pacman -Syy --noconfirm base-devel gtk3
RUN useradd build
RUN bash -c "echo 'build ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/build"
COPY . /home/build/src/droidcam
WORKDIR /home/build/src/droidcam
RUN chown build: -R /home/build/src
RUN sudo -u build makepkg -scir --noconfirm
# List all linked dependencies.
RUN bash -c 'ldd $(which droidcam) $(which droidcam-cli)'
# If some linked libraries are not found, fail.
RUN bash -c '(ldd $(which droidcam) $(which droidcam-cli) | grep "not found" && exit 1) || exit 0'
|