use npm dependencies
This commit is contained in:
parent
4cbf8c01d2
commit
981d878082
37 changed files with 110 additions and 21698 deletions
|
|
@ -10,7 +10,7 @@ url=@PROJECT_HOMEPAGE_URL@
|
|||
license=('GPL3')
|
||||
|
||||
depends=('avahi' 'boost-libs' 'curl' 'ffmpeg4.4' 'libevdev' 'libpulse' 'libx11' 'libxcb' 'libxfixes' 'libxrandr' 'libxtst' 'openssl' 'opus' 'udev')
|
||||
makedepends=('boost' 'cmake' 'git' 'make')
|
||||
makedepends=('boost' 'cmake' 'git' 'make' 'nodejs' 'npm')
|
||||
optdepends=('cuda' 'libcap' 'libdrm')
|
||||
|
||||
provides=(@SUNSHINE_AUR_PROVIDES@)
|
||||
|
|
@ -25,6 +25,10 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
pushd "$pkgname/src_assets/common/assets/web"
|
||||
npm install
|
||||
popd
|
||||
|
||||
export CFLAGS="${CFLAGS/-Werror=format-security/}"
|
||||
export CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ app-id: dev.lizardbyte.sunshine
|
|||
runtime: org.freedesktop.Platform
|
||||
runtime-version: "21.08"
|
||||
sdk: org.freedesktop.Sdk
|
||||
sdk-extensions:
|
||||
- org.freedesktop.Sdk.Extension.node18
|
||||
command: sunshine
|
||||
separate-locales: false
|
||||
finish-args:
|
||||
|
|
@ -183,7 +185,16 @@ modules:
|
|||
no-make-install: false
|
||||
builddir: true
|
||||
build-options:
|
||||
append-path: /usr/lib/sdk/node18/bin
|
||||
build-args:
|
||||
- --share=network
|
||||
cxxflags: -I${C_INCLUDE_PATH}/libevdev-1.0
|
||||
env:
|
||||
npm_config_nodedir: /usr/lib/sdk/node18
|
||||
NPM_CONFIG_LOGLEVEL: info
|
||||
build-commands:
|
||||
# Install npm dependencies
|
||||
- cd ${FLATPAK_BUILDER_BUILDDIR}/src_assets/common/assets/web && npm install
|
||||
config-opts:
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_INSTALL_PREFIX=/app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue