mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-25 23:40:41 +08:00
add package: scrcpy, aarch64
This commit is contained in:
parent
7f2160f0a8
commit
555e8e1604
2 changed files with 42 additions and 0 deletions
40
scrcpy/PKGBUILD
Normal file
40
scrcpy/PKGBUILD
Normal file
|
@ -0,0 +1,40 @@
|
|||
# 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"
|
||||
}
|
2
scrcpy/autobuild.yaml
Normal file
2
scrcpy/autobuild.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
type:
|
||||
auto
|
Loading…
Reference in a new issue