mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-25 15:30:40 +08:00
41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
|
# Contributor: Andrew Rabert <ar@nullsum.net>
|
||
|
|
||
|
pkgname=scrcpy
|
||
|
pkgver=1.10
|
||
|
pkgrel=2
|
||
|
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"
|
||
|
"https://github.com/Genymobile/scrcpy/releases/download/v${pkgver}/scrcpy-server-v${pkgver}.jar")
|
||
|
sha256sums=('71bd3b01f26233d73b91c0953ce004bd3195bcfd0c83b76c269094fb06e5ffa5'
|
||
|
'cbeb1a4e046f1392c1dc73c3ccffd7f86dec4636b505556ea20929687a119390')
|
||
|
|
||
|
src_name="scrcpy-${pkgver}"
|
||
|
src_server="scrcpy-server-v${pkgver}.jar"
|
||
|
|
||
|
build() {
|
||
|
cd "${src_name}"
|
||
|
|
||
|
rm -rf build
|
||
|
if [[ "$CARCH" != 'aarch64' ]]; then
|
||
|
meson build --buildtype release --strip -Db_lto=true \
|
||
|
-Dprebuilt_server="../${src_server}"
|
||
|
else
|
||
|
meson build --buildtype release --strip \
|
||
|
-Dprebuilt_server="../${src_server}"
|
||
|
fi
|
||
|
cd build
|
||
|
ninja
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
install -Dm 755 "${src_name}/build/app/scrcpy" "${pkgdir}/usr/bin/scrcpy"
|
||
|
install -Dm 644 "${src_server}" "${pkgdir}/usr/local/share/scrcpy/scrcpy-server.jar"
|
||
|
mkdir -p "${pkgdir}/usr/bin"
|
||
|
}
|