2022-07-29 09:45:26 -04:00
|
|
|
# Edit on github: https://github.com/LizardByte/Sunshine/tree/nightly/packaging/linux/aur/PKGBUILD
|
2022-06-19 16:20:25 -04:00
|
|
|
# Reference: https://wiki.archlinux.org/title/PKGBUILD
|
|
|
|
|
|
|
|
pkgname=@SUNSHINE_AUR_PKG@
|
|
|
|
pkgver=@PROJECT_VERSION@@SUNSHINE_SUB_VERSION@
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="@PROJECT_DESCRIPTION@"
|
|
|
|
arch=('x86_64' 'i686')
|
|
|
|
url=@PROJECT_HOMEPAGE_URL@
|
|
|
|
license=('GPL3')
|
|
|
|
|
2022-12-11 17:46:19 -05:00
|
|
|
depends=('avahi' 'boost-libs' 'curl' 'libevdev' 'libpulse' 'libva' 'libvdpau' 'libx11' 'libxcb' 'libxfixes' 'libxrandr' 'libxtst' 'numactl' 'openssl' 'opus' 'udev')
|
2022-11-18 15:44:06 -05:00
|
|
|
makedepends=('boost' 'cmake' 'git' 'make' 'nodejs' 'npm')
|
2022-06-20 20:35:19 -04:00
|
|
|
optdepends=('cuda' 'libcap' 'libdrm')
|
2022-06-19 16:20:25 -04:00
|
|
|
|
|
|
|
provides=(@SUNSHINE_AUR_PROVIDES@)
|
|
|
|
conflicts=(@SUNSHINE_AUR_CONFLICTS@)
|
|
|
|
|
2022-06-23 23:36:06 -04:00
|
|
|
source=("$pkgname::git+@GITHUB_CLONE_URL@#commit=@GITHUB_COMMIT@")
|
2022-06-19 16:20:25 -04:00
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$pkgname"
|
|
|
|
git submodule update --recursive --init
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-11-18 15:44:06 -05:00
|
|
|
pushd "$pkgname/src_assets/common/assets/web"
|
|
|
|
npm install
|
|
|
|
popd
|
|
|
|
|
2022-06-19 16:20:25 -04:00
|
|
|
export CFLAGS="${CFLAGS/-Werror=format-security/}"
|
|
|
|
export CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
|
|
|
|
|
|
|
|
cmake \
|
|
|
|
-S "$pkgname" \
|
|
|
|
-B build \
|
|
|
|
-Wno-dev \
|
2022-08-23 20:08:14 -04:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
2022-06-19 16:20:25 -04:00
|
|
|
-D SUNSHINE_EXECUTABLE_PATH=/usr/bin/sunshine \
|
2022-12-11 17:46:19 -05:00
|
|
|
-D SUNSHINE_ASSETS_DIR="share/sunshine"
|
2022-06-19 16:20:25 -04:00
|
|
|
|
2022-06-23 23:36:06 -04:00
|
|
|
make -C build
|
2022-06-19 16:20:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
make -C build install DESTDIR="$pkgdir"
|
|
|
|
}
|