-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
40 lines (36 loc) · 1.21 KB
/
PKGBUILD
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
34
35
36
37
38
39
40
# Merged with official ABS scrcpy PKGBUILD by João, 2023/05/14 (all respective contributors apply herein)
# Maintainer: João Figueiredo & chaotic-aur <islandc0der@chaotic.cx>
# Contributor: skydrome -at- protonmail
pkgname=scrcpy-git
pkgver=2.6.1_r2501.g44b3fd82
pkgrel=1
pkgdesc='Display and control your Android device'
arch=($CARCH)
url='https://github.com/Genymobile/scrcpy'
license=(Apache-2.0)
depends=(android-tools ffmpeg sdl2 glibc libusb)
makedepends=(git meson)
conflicts=(${pkgname%-git})
provides=(${pkgname%-git})
source=("git+https://github.com/Genymobile/${pkgname%-git}.git"
"$url/releases/download/v${pkgver%_*}/${pkgname%-git}-server-v${pkgver%_*}")
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd ${pkgname%-git}
_ver="$(git describe | sed 's/^v//;s/-.*//')"
echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
build() {
mkdir -p build
arch-meson build ${pkgname%-git} \
-D b_lto=true \
-D b_ndebug=true \
-D prebuilt_server=../${pkgname%-git}-server-v${pkgver%_*} \
--buildtype release
ninja -C build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
install -Dm644 ${pkgname%-git}/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}