diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 61 |
1 files changed, 33 insertions, 28 deletions
@@ -1,51 +1,56 @@ -# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Maintainer: Jacek Szafarkiewicz <szafar at linux dot pl> +# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org> _pkgname=sunshine pkgname=${_pkgname}-git -pkgver=0.4.0.q.290415dec3.. +pkgver=0.4.0.310.488d8e5 pkgrel=1 pkgdesc="Open source implementation of NVIDIA's GameStream, as used by the NVIDIA Shield" -url="http://sunshine-stream.com" +url="https://github.com/loki-47-6F-64/sunshine" arch=('x86_64' 'i686') license=('GPL3') -depends=('boost') -makedepends=('git' 'cmake') + +depends=('boost-libs' 'ffmpeg' 'openssl' 'libpulse' 'opus' 'libxtst' 'libx11' 'libxfixes' 'libevdev' 'libxcb') +makedepends=('git' 'cmake' 'boost') + provides=('sunshine') conflicts=("sunshine") -source=(${pkgname}::git+https://github.com/loki-47-6F-64/sunshine - sunshine) -sha512sums=('SKIP' 'SKIP') + +source=(${pkgname}::git+https://github.com/loki-47-6F-64/sunshine.git + systemd-cleanup.patch::https://patch-diff.githubusercontent.com/raw/loki-47-6F-64/sunshine/pull/42.patch) +sha256sums=('SKIP' + 'f785ab0ac13f4d3bcd61cc20de1422d8006bb3eee444b9b2e38705d45eb7c28d') pkgver() { - cd ${pkgname} - printf "%s.%s.%s" "$(git describe --tags --abbrev=0|cut -dv -f2|sed 's|\-|.|g')" \ -q "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "$pkgname" + printf "%s.%s.%s" "$(git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { - cd ${pkgname} - git submodule update --recursive --init + cd "$pkgname" + git rm -f pre-compiled + git submodule update --recursive --init + + patch -p1 -i ../systemd-cleanup.patch } build() { - cd ${pkgname} - mkdir build || rm -rf build/* - cd build -# export SUNSHINE_EXECUTABLE_PATH=/usr/bin/ - cmake .. - make - sed 's/\@SUNSHINE_EXECUTABLE_PATH\@/\/usr\/bin\/sunshine \/etc\/sunshine.conf/g' ../sunshine.service.in > sunshine.service + cmake \ + -S "$pkgname" \ + -B build \ + -Wno-dev \ + -D SUNSHINE_EXECUTABLE_PATH=/usr/bin/$_pkgname \ + -D SUNSHINE_ASSETS_DIR=/usr/share/$_pkgname \ + + make -C build } package() { - mkdir -p "$pkgdir/usr/bin/" "$pkgdir/usr/lib/systemd/user/" "$pkgdir/etc/" "$pkgdir/usr/lib/sunshine/bin/" - cp sunshine "$pkgdir/usr/bin/" - - cd ${pkgname} - cp build/sunshine "$pkgdir/usr/lib/sunshine/bin/" - cp build/sunshine.service "$pkgdir/usr/lib/systemd/user/" - cp assets/sunshine.conf "$pkgdir/etc/" - + install -Dm755 "$pkgname/assets/sunshine.conf" "$pkgdir/usr/share/$_pkgname/sunshine.conf" + install -Dm755 "$pkgname/assets/apps_linux.json" "$pkgdir/usr/share/$_pkgname/apps_linux.json" + + install -Dm755 build/$_pkgname "$pkgdir/usr/bin/$_pkgname" + install -Dm755 build/sunshine.service "$pkgdir/usr/lib/systemd/user/sunshine.service" } # vim: ts=2 sw=2 et: |