2019-10-05 11:37:01 +08:00
|
|
|
# Contributor: Andrew Rabert <ar@nullsum.net>
|
|
|
|
|
|
|
|
pkgname=scrcpy
|
2021-06-21 07:54:18 +08:00
|
|
|
pkgver=1.18
|
2020-01-30 16:03:24 +08:00
|
|
|
pkgrel=1
|
2019-10-05 11:37:01 +08:00
|
|
|
pkgdesc='Display and control your Android device'
|
|
|
|
arch=('aarch64')
|
|
|
|
url='https://github.com/Genymobile/scrcpy'
|
|
|
|
license=('Apache')
|
2020-01-30 16:03:24 +08:00
|
|
|
depends=('android-tools' 'ffmpeg' 'sdl2')
|
2019-10-05 11:37:01 +08:00
|
|
|
makedepends=('meson')
|
|
|
|
source=("https://github.com/Genymobile/scrcpy/archive/v${pkgver}.tar.gz"
|
2019-11-20 12:16:21 +08:00
|
|
|
"https://github.com/Genymobile/scrcpy/releases/download/v${pkgver}/scrcpy-server-v${pkgver}")
|
2021-06-21 07:54:18 +08:00
|
|
|
sha256sums=('2995d74409e9a486e4f69d0f623299ebf615d9427d8e974dfd82355538a313e9'
|
|
|
|
'641c5c6beda9399dfae72d116f5ff43b5ed1059d871c9ebc3f47610fd33c51a3')
|
2019-10-05 11:37:01 +08:00
|
|
|
|
|
|
|
build() {
|
2019-12-11 14:26:34 +08:00
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
meson \
|
|
|
|
--prefix /usr \
|
|
|
|
--buildtype release \
|
|
|
|
--strip \
|
|
|
|
-Dprebuilt_server="../scrcpy-server-v${pkgver}" \
|
|
|
|
build
|
|
|
|
ninja -C build
|
2019-10-05 11:37:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-12-11 14:26:34 +08:00
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
DESTDIR="${pkgdir}" ninja -C build install
|
|
|
|
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
2019-10-05 11:37:01 +08:00
|
|
|
}
|