pantry/projects/github.com/Genymobile/scrcpy/package.yml

53 lines
1.3 KiB
YAML
Raw Normal View History

distributable:
url: https://github.com/Genymobile/scrcpy/archive/v{{version.marketing}}.tar.gz
strip-components: 1
versions:
github: Genymobile/scrcpy
platforms:
- darwin
- linux/x86-64
dependencies:
ffmpeg.org: '*'
libusb.info: '*'
libsdl.org: '*'
darwin:
sourceware.org/bzip2: '*'
zlib.net: '*'
build:
dependencies:
mesonbuild.com: '*'
ninja-build.org: '*'
freedesktop.org/pkg-config: '*'
gnu.org/wget: '*'
2023-11-27 18:02:51 +03:00
gnu.org/patch: '*'
working-directory: build
script:
2023-11-27 18:02:51 +03:00
# quick post-release patch to address a build failure:
# https://github.com/Genymobile/scrcpy/commit/4135c411af419f4f86dc9ec9301c88012d616c49
- run: patch -p1 < props/4135c411af419f4f86dc9ec9301c88012d616c49.diff
working-directory: ..
2024-03-08 01:59:25 +03:00
if: '>=2.3<2.3.2'
- wget $PREBUILT_SERVER_URL -O scrcpy-server
2023-11-02 21:36:57 +03:00
- meson setup $ARGS ..
- meson compile --verbose
- meson install
env:
PREBUILT_SERVER_URL: https://github.com/Genymobile/scrcpy/releases/download/v{{version.marketing}}/scrcpy-server-v{{version.marketing}}
ARGS:
- --prefix="{{prefix}}"
- --buildtype=release
- --wrap-mode=nofallback
- -Dprebuilt_server="build/scrcpy-server"
- --strip
- -Db_lto=true
provides:
- bin/scrcpy
2023-11-27 18:02:51 +03:00
test: scrcpy --version | grep {{version.marketing}}