# Contributor: Andrew Rabert pkgname=scrcpy pkgver=1.15.1 pkgrel=1 pkgdesc='Display and control your Android device' arch=('i686' 'x86_64') url='https://github.com/Genymobile/scrcpy' license=('Apache') depends=('android-tools' 'ffmpeg' 'sdl2') makedepends=('meson') source=("https://github.com/Genymobile/scrcpy/archive/v${pkgver}.tar.gz" "https://github.com/Genymobile/scrcpy/releases/download/v${pkgver}/scrcpy-server-v${pkgver}") sha256sums=('1d66dccf14f77e085853453d91a06fad40d1ab5cf2997f00079502edeac9d575' 'fe06bd6a30da8c89860bf5e16eecce2b5054d4644c84289670ce00ca5d1637c3') build() { cd "${pkgname}-${pkgver}" meson \ --prefix /usr \ --buildtype release \ --strip \ -Db_lto=true \ -Dprebuilt_server="../scrcpy-server-v${pkgver}" \ build ninja -C build } package() { cd "${pkgname}-${pkgver}" DESTDIR="${pkgdir}" ninja -C build install install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" }