Skip to content

Commit

Permalink
build(archlinux): generate srcinfo file during build
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Jul 10, 2024
1 parent 638a702 commit fd7f40c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docker/archlinux.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 fd7f40c

Please sign in to comment.