pkgbuilds/scrcpy/PKGBUILD

33 lines
990 B
Text
Raw Normal View History

2019-10-05 11:37:01 +08:00
# Contributor: Andrew Rabert <ar@nullsum.net>
pkgname=scrcpy
pkgver=1.12.1
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')
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}")
sha256sums=('7692664e1bd703421eb9659cc9956d9f0ac64eb14abddab7b2ade37625f0243d'
'63e569c8a1d0c1df31d48c4214871c479a601782945fed50c1e61167d78266ea')
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
}