mirror of
https://github.com/ivabus/pantry
synced 2024-11-15 04:55:08 +03:00
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
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: '*'
|
|
gnu.org/patch: '*'
|
|
working-directory: build
|
|
script:
|
|
# quick post-release patch to address a build failure:
|
|
# https://github.com/Genymobile/scrcpy/commit/4135c411af419f4f86dc9ec9301c88012d616c49
|
|
- run: patch -p1 < props/4135c411af419f4f86dc9ec9301c88012d616c49.diff
|
|
working-directory: ..
|
|
if: '>=2.3<=2.3.1'
|
|
- wget $PREBUILT_SERVER_URL -O scrcpy-server
|
|
- 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
|
|
|
|
test: scrcpy --version | grep {{version.marketing}}
|