You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
malachite/Buildfile

25 lines
645 B
Ruby

# Key:
# {{ image }}: will be replaced with `base.image` from .mlc/config.toml
# {{ pkg }} : will be replaced with the name of the package being built
# Post-build, the contents of /out will be copied to the host at `repo.out` from .mlc/config.toml
FROM {{ image }}
RUN mkdir /out
COPY {{ pkg }} /tmp/{{ pkg }}
RUN pacman -Syu --noconfirm
RUN pacman -S --noconfirm --needed base-devel
RUN useradd -m -G wheel build-user
RUN echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
RUN chown -R build-user /tmp/{{ pkg }}
USER build-user
WORKDIR /tmp/{{ pkg }}
RUN makepkg -s {{ flags }} --noconfirm
USER root
RUN cp *.pkg.tar.* /out