mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 09:22:57 +02:00
New package: scrcpy-1.2
This commit is contained in:
parent
7874262d91
commit
9a0b841ebd
2 changed files with 34 additions and 0 deletions
11
srcpkgs/scrcpy/patches/crossbuild-fix.patch
Normal file
11
srcpkgs/scrcpy/patches/crossbuild-fix.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- app/meson.build
|
||||||
|
+++ app/meson.build
|
||||||
|
@@ -19,7 +20,7 @@ src = [
|
||||||
|
'src/tinyxpm.c',
|
||||||
|
]
|
||||||
|
|
||||||
|
-if not meson.is_cross_build()
|
||||||
|
+if true
|
||||||
|
|
||||||
|
# native build
|
||||||
|
dependencies = [
|
23
srcpkgs/scrcpy/template
Normal file
23
srcpkgs/scrcpy/template
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# Template file for 'scrcpy'
|
||||||
|
pkgname=scrcpy
|
||||||
|
version=1.2
|
||||||
|
revision=1
|
||||||
|
build_style=meson
|
||||||
|
configure_args="-Db_lto=true
|
||||||
|
-Dprebuilt_server=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}.tar.gz
|
||||||
|
${homepage}/releases/download/v${version}/scrcpy-server-v${version}.jar"
|
||||||
|
checksum="d340e3a0aa1625161bc00068ffccbe291b7866729a5fff7ff859904480ec0df3
|
||||||
|
cb39654ed2fda3d30ddff292806950ccc5c394375ea12b974f790c7f38f61f60"
|
||||||
|
skip_extraction="scrcpy-server-v${version}.jar"
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
cp ${XBPS_SRCDISTDIR}/scrcpy-${version}/scrcpy-server-v${version}.jar server
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue