blob: e37b0f802819519f983ce3d015368951c2b19838 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Contributor: Andrew Rabert <draje@nullsum.net>
pkgname=scrcpy
pkgver=1.8
pkgrel=1
pkgdesc='Display and control your Android device'
arch=('i686' 'x86_64')
url='https://github.com/Genymobile/scrcpy'
license=('Apache')
depends=('ffmpeg' 'sdl2')
makedepends=('gcc' 'meson')
optdepends=('android-tools: required if adb is not already installed')
source=("https://github.com/Genymobile/scrcpy/archive/v${pkgver}.tar.gz"
"https://github.com/Genymobile/scrcpy/releases/download/v${pkgver}/scrcpy-server-v${pkgver}.jar")
sha256sums=('1d4b53573554a60fa46b6b40685dbe6c8474bc451ecbe803e2f2ec9724b48a01'
'839055ef905903bf98ead1b9b8a127fe402b39ad657a81f9a914b2dbcb2ce5c0')
src_name="scrcpy-${pkgver}"
src_server="scrcpy-server-v${pkgver}.jar"
server_path='/usr/share/scrcpy/scrcpy-server.jar'
build() {
cd "${src_name}"
rm -rf build
meson build --buildtype release --strip -Db_lto=true \
-Dbuild_server=false \
-Doverride_server_path="${server_path}"
cd build
ninja
}
package() {
install -Dm 755 "${src_name}"/build/app/scrcpy "${pkgdir}"/usr/bin/scrcpy
install -Dm 644 "${src_server}" "${pkgdir}"/"${server_path}"
}
|