aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scrcpy/APKBUILD
blob: 08e5982929356a3ed8d37877cf9089838f3ed643 (plain) (blame)
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: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=scrcpy
pkgver=1.12.1
pkgrel=1
pkgdesc="Display and control your Android device"
url="https://github.com/Genymobile/scrcpy"
arch="all !s390x !ppc64le" # limited by android-tools
license="Apache-2.0"
options="!check" # no test suite
depends="android-tools"
makedepends="ffmpeg-dev meson sdl2-dev"
subpackages="$pkgname-doc"
source="scrcpy-$pkgver.tar.gz::https://github.com/Genymobile/scrcpy/archive/v$pkgver.tar.gz
	https://github.com/Genymobile/scrcpy/releases/download/v$pkgver/scrcpy-server-v$pkgver"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=debugoptimized \
		-Dcompile_server=false \
		-Dprebuilt_server=/usr/share/scrcpy/scrcpy-server-v$pkgver \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
	install -Dm644 "$srcdir"/scrcpy-server-v$pkgver \
		"$pkgdir"/usr/share/scrcpy/scrcpy-server
}

sha512sums="017a064cf8afc3e4103dfb40744c288840351de903ccec5e3787f82c152b338494613ce863b3d74e8dcc00936fd0b1b3331dd7cc9c8e938197cf1a1aaefb7aa1  scrcpy-1.12.1.tar.gz
375c929e8118b9c9d167781851b8f23c43c9ac157c1c62225b2babfc6acea0eb06ba684d0b836ad64071030bde5ad17464a01cb4288739bd6e2a6b425fff0d72  scrcpy-server-v1.12.1"