blob: 3123a6d196b642a44214e2cc75c0336b066dedd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Contributor: Andrew Rabert <ar@nullsum.net>
pkgname=scrcpy
pkgver=1.21
pkgrel=1
pkgdesc='Display and control your Android device'
arch=('i686' 'x86_64')
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=('76e16a894bdb483b14b7ae7dcc1be8036ec17924dfab070cf0cb3b47653a6822'
'dbcccab523ee26796e55ea33652649e4b7af498edae9aa75e4d4d7869c0ab848')
build() {
cd "${pkgname}-${pkgver}"
meson \
--prefix /usr \
--buildtype release \
--strip \
-Db_lto=true \
-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"
}
|