0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-07-23 03:51:47 +00:00
Files
termux-packages/x11-packages/scrcpy/build.sh
Termux Github Actions e16a414d93 bump(x11/scrcpy): 3.2
This commit has been automatically submitted by Github Actions.
2025-03-29 18:28:48 +00:00

22 lines
1.2 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/Genymobile/scrcpy
TERMUX_PKG_DESCRIPTION="Provides display and control of Android devices connected via USB or over TCP/IP"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="3.2"
TERMUX_PKG_SRCURL=https://github.com/Genymobile/scrcpy/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=9902a3afd75f9a5da64898ac06ffaf77065dd713a58f47a408630b98f03ba9ce
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="android-tools, ffmpeg, libusb, sdl2 | sdl2-compat"
TERMUX_PKG_ANTI_BUILD_DEPENDS="android-tools, sdl2-compat"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-Dprebuilt_server=$TERMUX_PKG_SRCDIR/scrcpy-server-v${TERMUX_PKG_VERSION}
"
termux_step_post_get_source() {
local _url=https://github.com/Genymobile/scrcpy/releases/download/v${TERMUX_PKG_VERSION}/scrcpy-server-v${TERMUX_PKG_VERSION}
termux_download ${_url} $(basename ${_url}) SKIP_CHECKSUM
# We are skipping checksum checking, but we should ensure it is android package.
[[ "$(file $(basename ${_url}))"==*"Android package"* || "$(file $(basename ${_url}))"==*"Zip archive data"* ]] \
|| termux_error_exit "$(basename ${_url}) has wrong signature: $(file $(basename ${_url}))"
}