From 5fadf9cd1a63e89e9dafabf56578fbb215898260 Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Tue, 8 Jan 2019 18:22:33 +0100 Subject: [PATCH] scrcpy: update to 1.5. --- srcpkgs/scrcpy/template | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/srcpkgs/scrcpy/template b/srcpkgs/scrcpy/template index 4508929be05..6273eb62ff6 100644 --- a/srcpkgs/scrcpy/template +++ b/srcpkgs/scrcpy/template @@ -1,10 +1,13 @@ # Template file for 'scrcpy' pkgname=scrcpy -version=1.3 +version=1.5 revision=1 +#XXX: Just release a new patchversion... +wrksrc="scrcpy-${version}-fixversion" build_style=meson configure_args="-Db_lto=true - -Dprebuilt_server=scrcpy-server-v${version}.jar" + -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" @@ -12,12 +15,13 @@ short_desc="Display and control your Android device" maintainer="SolitudeSF " license="Apache-2.0" homepage="https://github.com/Genymobile/scrcpy" -distfiles="${homepage}/archive/v${version}.tar.gz +distfiles="${homepage}/archive/v${version}-fixversion.tar.gz ${homepage}/releases/download/v${version}/scrcpy-server-v${version}.jar" -checksum="e0e157341f6c052dc2e50ee6e912cf94df0bdda039759f19abb1eece37345f75 - 0f9a5a217f33f0ed7a1498ceb3c0cccf31c53533893aa952e674c1571d2740c1" +checksum="79249fb0881c8de6af23ed58e2b31dc6738174d7e49c490ae6e7992f7b3ec2cd + c827f566172a5c5946e63b8378ac93d374dff9e229083e5cd9980df57536947b" skip_extraction="scrcpy-server-v${version}.jar" -post_extract() { - cp ${XBPS_SRCDISTDIR}/scrcpy-${version}/scrcpy-server-v${version}.jar server +post_install() { + vinstall ${XBPS_SRCDISTDIR}/scrcpy-${version}/scrcpy-server-v${version}.jar \ + 644 /usr/share/scrcpy/ }