Skip to content

Commit

Permalink
build(archlinux): generate srcinfo file during build (#2826)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Jul 10, 2024
1 parent 638a702 commit 29410c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion docker/archlinux.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# platforms: linux/amd64
# archlinux does not have an arm64 base image
# no-cache-filters: artifacts,sunshine
ARG BASE=archlinux
ARG BASE=archlinux/archlinux
ARG TAG=base-devel
FROM ${BASE}:${TAG} AS sunshine-base

Expand All @@ -13,6 +13,7 @@ RUN <<_DEPS
set -e
pacman -Syu --disable-download-timeout --needed --noconfirm \
archlinux-keyring
pacman -Scc --noconfirm
_DEPS

# Setup builder user, arch prevents running makepkg as root
Expand Down Expand Up @@ -45,6 +46,7 @@ pacman -Syu --disable-download-timeout --needed --noconfirm \
git \
namcap \
xorg-server-xvfb
pacman -Scc --noconfirm
_DEPS

# Setup builder user
Expand Down Expand Up @@ -80,6 +82,7 @@ _MAKE
WORKDIR /build/sunshine/pkg
RUN mv /build/sunshine/build/PKGBUILD .
RUN mv /build/sunshine/build/sunshine.install .
RUN makepkg --printsrcinfo > .SRCINFO

# create a PKGBUILD archive
USER root
Expand Down Expand Up @@ -121,6 +124,7 @@ pacman -Syu --disable-download-timeout --needed --noconfirm \
archlinux-keyring
pacman -U --disable-download-timeout --needed --noconfirm \
/sunshine.pkg.tar.zst
pacman -Scc --noconfirm
_INSTALL_SUNSHINE

# network setup
Expand Down
6 changes: 3 additions & 3 deletions docs/source/about/setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ Install

.. tab:: Prebuilt Package

#. Open terminal and run the following code.
#. Follow the instructions at LizardByte's `pacman-repo <https://github.com/LizardByte/pacman-repo>`__ to add
the repository. Then run the following code.

.. code-block:: bash
wget https://github.com/LizardByte/Sunshine/releases/latest/download/sunshine.pkg.tar.zst
pacman -U --noconfirm sunshine.pkg.tar.zst
pacman -S sunshine
Uninstall:
.. code-block:: bash
Expand Down

0 comments on commit 29410c6

Please sign in to comment.