generated from LizardByte/template-base
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26abd9c
commit 5c2e2b3
Showing
7 changed files
with
246 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
name: Build Pacman Repo | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
|
||
jobs: | ||
build-pacman-repo: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: archlinux/archlinux:base-devel | ||
steps: | ||
- name: Container Setup | ||
run: | | ||
pacman -Syu --disable-download-timeout --needed --noconfirm \ | ||
archlinux-keyring \ | ||
wget | ||
- name: Download Pacman Repo Builder | ||
run: | | ||
wget \ | ||
https://github.com/pacman-repo-builder/pacman-repo-builder/releases/download/0.0.0-rc.65/build-pacman-repo-x86_64-unknown-linux-gnu \ | ||
-O /usr/bin/build-pacman-repo | ||
chmod +x /usr/bin/build-pacman-repo | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: repo | ||
path: repo | ||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | ||
fetch-depth: 0 # otherwise, will fail to push refs to dest repo | ||
|
||
- name: Build Pacman Repo | ||
run: | | ||
ls -a | ||
build-pacman-repo build | ||
# - name: Build Pacman Repo | ||
# uses: pacman-repo-builder/[email protected] | ||
# with: | ||
# command: build-pacman-repo build | ||
|
||
- run: | | ||
git add . | ||
git diff ./repo | ||
# - name: GitHub Commit & Push | ||
# uses: actions-js/[email protected] | ||
# with: | ||
# author_email: ${{ secrets.GH_BOT_EMAIL }} | ||
# author_name: ${{ secrets.GH_BOT_NAME }} | ||
# branch: repo # commit to repo branch | ||
# directory: repo # use the repo directory | ||
# github_token: ${{ secrets.GH_BOT_TOKEN }} | ||
# message: 'Update repo via ${{ github.sha }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# ignore JetBrains IDE files | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
# template-base | ||
Base repository template for LizardByte. | ||
# LizardByte's Pacman Repository | ||
|
||
Repository of Arch Linux packages for LizardByte packages. | ||
|
||
> [!CAUTION] | ||
> LizardByte does not support packages hosted on the AUR. The platform is not secure, since anyone is able to | ||
> become the packager of an AUR repo. This repository is the only official source of LizardByte packages. | ||
## Installation | ||
|
||
Add the following code snippet to your `/etc/pacman.conf`: | ||
|
||
```conf | ||
[lizardbyte] | ||
SigLevel = Optional | ||
Server = https://raw.github.com/LizardByte/pacman-repo/repo | ||
``` | ||
|
||
Then, run `sudo pacman -Sy` to update repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
global-settings: | ||
repository: repo/repo.db.tar.gz | ||
container: container | ||
read-build-metadata: either | ||
record-failed-builds: failed-builds.yaml | ||
install-missing-dependencies: false | ||
clean-before-build: false | ||
clean-after-build: false | ||
force-rebuild: true | ||
pacman: pacman | ||
arch-filter: [x86_64] | ||
check: inherit | ||
packager: LizardByte <[email protected]> | ||
allow-failure: false | ||
dereference-database-symlinks: true | ||
members: | ||
- directory: pkgbuilds/sunshine | ||
read-build-metadata: pkgbuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
pkgbase = sunshine | ||
pkgdesc = A self-hosted GameStream host for Moonlight. | ||
pkgver = 0.23.1 | ||
pkgrel = 1 | ||
url = https://app.lizardbyte.dev/Sunshine | ||
install = sunshine.install | ||
arch = x86_64 | ||
arch = aarch64 | ||
license = GPL-3.0-only | ||
makedepends = boost | ||
makedepends = cmake | ||
makedepends = git | ||
makedepends = make | ||
makedepends = nodejs | ||
makedepends = npm | ||
depends = avahi | ||
depends = boost-libs | ||
depends = curl | ||
depends = libayatana-appindicator | ||
depends = libcap | ||
depends = libdrm | ||
depends = libevdev | ||
depends = libmfx | ||
depends = libnotify | ||
depends = libpulse | ||
depends = libva | ||
depends = libvdpau | ||
depends = libx11 | ||
depends = libxcb | ||
depends = libxfixes | ||
depends = libxrandr | ||
depends = libxtst | ||
depends = miniupnpc | ||
depends = numactl | ||
depends = openssl | ||
depends = opus | ||
depends = python | ||
depends = udev | ||
optdepends = cuda: Nvidia GPU encoding support | ||
optdepends = libva-mesa-driver: AMD GPU encoding support | ||
optdepends = intel-media-driver: Intel GPU encoding support | ||
optdepends = xorg-server-xvfb: Virtual X server for headless testing | ||
source = sunshine::git+https://github.com/LizardByte/Sunshine.git#tag=v0.23.1 | ||
sha256sums = SKIP | ||
|
||
pkgname = sunshine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
pkgname=sunshine | ||
pkgver=0.23.1 | ||
pkgrel=1 | ||
pkgdesc="A self-hosted GameStream host for Moonlight." | ||
arch=('x86_64' 'aarch64') | ||
url=https://app.lizardbyte.dev | ||
license=('GPL-3.0-only') | ||
install=sunshine.install | ||
|
||
depends=('avahi' | ||
'boost-libs' | ||
'curl' | ||
'libayatana-appindicator' | ||
'libcap' | ||
'libdrm' | ||
'libevdev' | ||
'libmfx' | ||
'libnotify' | ||
'libpulse' | ||
'libva' | ||
'libvdpau' | ||
'libx11' | ||
'libxcb' | ||
'libxfixes' | ||
'libxrandr' | ||
'libxtst' | ||
'miniupnpc' | ||
'numactl' | ||
'openssl' | ||
'opus' | ||
'python' | ||
'udev') | ||
makedepends=('boost' | ||
'cmake' | ||
'git' | ||
'make' | ||
'nodejs' | ||
'npm') | ||
optdepends=('cuda: Nvidia GPU encoding support' | ||
'libva-mesa-driver: AMD GPU encoding support' | ||
'intel-media-driver: Intel GPU encoding support' | ||
'xorg-server-xvfb: Virtual X server for headless testing') | ||
|
||
provides=() | ||
conflicts=() | ||
|
||
source=("$pkgname::git+https://github.com/LizardByte/Sunshine.git#tag=v${pkgver}") | ||
sha256sums=('SKIP') | ||
|
||
prepare() { | ||
cd "$pkgname" | ||
git submodule update --recursive --init | ||
|
||
# Allow use of miniupnpc > v0.17 | ||
git cherry-pick -n a940cdb394055139ca6a964289f414da562452e3 | ||
} | ||
|
||
build() { | ||
export BRANCH="master" | ||
export BUILD_VERSION="${pkgver}" | ||
export COMMIT="$(git rev-parse HEAD)" | ||
|
||
export CFLAGS="${CFLAGS/-Werror=format-security/}" | ||
export CXXFLAGS="${CXXFLAGS/-Werror=format-security/}" | ||
|
||
cmake \ | ||
-S "$pkgname" \ | ||
-B build \ | ||
-Wno-dev \ | ||
-D BUILD_WERROR=ON \ | ||
-D CMAKE_INSTALL_PREFIX=/usr \ | ||
-D SUNSHINE_EXECUTABLE_PATH=/usr/bin/sunshine \ | ||
-D SUNSHINE_ASSETS_DIR="share/sunshine" | ||
|
||
make -C build | ||
} | ||
|
||
package() { | ||
make -C build install DESTDIR="$pkgdir" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
do_setcap() { | ||
setcap cap_sys_admin+p $(readlink -f $(which sunshine)) | ||
} | ||
|
||
do_udev_reload() { | ||
udevadm control --reload-rules | ||
udevadm trigger --property-match=DEVNAME=/dev/uinput | ||
modprobe uinput || true | ||
} | ||
|
||
post_install() { | ||
do_setcap | ||
do_udev_reload | ||
} | ||
|
||
post_upgrade() { | ||
do_setcap | ||
do_udev_reload | ||
} | ||
|