void-packages/srcpkgs/scrcpy/template

25 lines
944 B
Bash

# Template file for 'scrcpy'
pkgname=scrcpy
version=1.25
revision=1
build_style=meson
configure_args="-Dcompile_server=false
-Dprebuilt_server=/usr/share/scrcpy/scrcpy-server-v${version}"
hostmakedepends="pkg-config"
makedepends="SDL2-devel ffmpeg-devel"
depends="android-tools"
short_desc="Display and control your Android device"
maintainer="SolitudeSF <solitudesf@protonmail.com>"
license="Apache-2.0"
homepage="https://github.com/Genymobile/scrcpy"
distfiles="https://github.com/Genymobile/scrcpy/archive/v${version}.tar.gz
https://github.com/Genymobile/scrcpy/releases/download/v${version}/scrcpy-server-v${version}"
checksum="dfecc9dcffd45540bef88a7e346d37bead3665a5c868a5a95c5ec7bfed43ad07
ce0306c7bbd06ae72f6d06f7ec0ee33774995a65de71e0a83813ecb67aec9bdb"
skip_extraction="scrcpy-server-v${version}"
post_install() {
vinstall ${XBPS_SRCDISTDIR}/scrcpy-${version}/scrcpy-server-v${version} \
644 /usr/share/scrcpy/ scrcpy-server
}