# Contributor: prspkt # Maintainer: prspkt pkgname=scrcpy pkgver=1.13 pkgrel=0 pkgdesc="Display and control your Android device" url="https://github.com/Genymobile/scrcpy" arch="all !s390x !ppc64le !mips !mips64" # limited by android-tools license="Apache-2.0" options="!check" # no test suite depends="android-tools" makedepends="ffmpeg-dev mesa-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="fcacb25d13a7754f512872abc72153b88e28977526ec5ec54b8180757ef0f0b51418d04bdd4250502fe0f1348a66bb86534f687dd1ed48df897d1f617eadbd93 scrcpy-1.13.tar.gz 3e460b89b904df954f7f028093f9584d76f0a3bcd1cbdba1823587edfa2082c3019b60ec9b476a50276d3b07149d5324a5e670f459d877c2c308765a81720f9b scrcpy-server-v1.13"