mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-15 10:32:23 +08:00
32 lines
988 B
Bash
32 lines
988 B
Bash
# Contributor: Andrew Rabert <ar@nullsum.net>
|
|
|
|
pkgname=scrcpy
|
|
pkgver=1.17
|
|
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=('c16f1fe1789290d0c7dd3a2778f33d6dc6347ffe3e78e64127b85eda52420d7f'
|
|
'11b5ad2d1bc9b9730fb7254a78efd71a8ff46b1938ff468e47a21b653a1b6725')
|
|
|
|
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"
|
|
}
|