# Contributor: prspkt # Maintainer: prspkt pkgname=scrcpy pkgver=1.12.1 pkgrel=2 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=plain \ -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"