2019-10-05 11:37:01 +08:00
|
|
|
# Contributor: Andrew Rabert <ar@nullsum.net>
|
|
|
|
|
|
|
|
pkgname=scrcpy
|
2019-12-11 14:26:34 +08:00
|
|
|
pkgver=1.12
|
|
|
|
pkgrel=2
|
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')
|
|
|
|
depends=('ffmpeg' 'sdl2')
|
|
|
|
makedepends=('meson')
|
|
|
|
optdepends=('android-tools: required if adb is not already installed')
|
|
|
|
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}")
|
2019-12-11 14:26:34 +08:00
|
|
|
sha256sums=('95aab189448582870d8e7d8a27a2c9b40838bd45ee2737be0f255f7a11647870'
|
|
|
|
'b6595262c230e9773fdb817257abcc8c6e6e00f15b1c32b6a850ccfd8176dc10')
|
2019-10-05 11:37:01 +08:00
|
|
|
|
2019-12-11 14:26:34 +08:00
|
|
|
prepare() {
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
rm -rf build
|
|
|
|
}
|
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
|
|
|
}
|