pkgbuilds/scrcpy/PKGBUILD
2020-05-01 14:13:59 +08:00

32 lines
988 B
Bash

# Contributor: Andrew Rabert <ar@nullsum.net>
pkgname=scrcpy
pkgver=1.13
pkgrel=1
pkgdesc='Display and control your Android device'
arch=('aarch64')
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=('6f65a22b495240358a56f84098edc48e9e396eab20b6130538088d96eb7e36f0'
'5fee64ca1ccdc2f38550f31f5353c66de3de30c2e929a964e30fa2d005d5f885')
build() {
cd "${pkgname}-${pkgver}"
meson \
--prefix /usr \
--buildtype release \
--strip \
-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"
}