void-packages/srcpkgs/scrcpy/template

28 lines
1002 B
Bash

# Template file for 'scrcpy'
pkgname=scrcpy
version=1.5
revision=1
#XXX: Just release a new patchversion...
wrksrc="scrcpy-${version}-fixversion"
build_style=meson
configure_args="-Db_lto=true
-Dbuild_server=false
-Doverride_server_path=/usr/share/scrcpy/scrcpy-server-v${version}.jar"
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="${homepage}/archive/v${version}-fixversion.tar.gz
${homepage}/releases/download/v${version}/scrcpy-server-v${version}.jar"
checksum="79249fb0881c8de6af23ed58e2b31dc6738174d7e49c490ae6e7992f7b3ec2cd
c827f566172a5c5946e63b8378ac93d374dff9e229083e5cd9980df57536947b"
skip_extraction="scrcpy-server-v${version}.jar"
post_install() {
vinstall ${XBPS_SRCDISTDIR}/scrcpy-${version}/scrcpy-server-v${version}.jar \
644 /usr/share/scrcpy/
}