mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-12-23 04:29:23 +08:00
update: scrcpy to 1.12-2
This commit is contained in:
parent
8fff8c449a
commit
cd6d218b67
2 changed files with 36 additions and 39 deletions
|
@ -1,8 +1,8 @@
|
|||
# Contributor: Andrew Rabert <ar@nullsum.net>
|
||||
|
||||
pkgname=scrcpy
|
||||
pkgver=1.11
|
||||
pkgrel=1
|
||||
pkgver=1.12
|
||||
pkgrel=2
|
||||
pkgdesc='Display and control your Android device'
|
||||
arch=('aarch64')
|
||||
url='https://github.com/Genymobile/scrcpy'
|
||||
|
@ -12,29 +12,27 @@ 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}")
|
||||
sha256sums=('86fccd2190a14c7f3024edf922229919803dee774f91c85fdee54029e179f270'
|
||||
'ff3a454012e91d9185cfe8ca7691cea16c43a7dcc08e92fa47ab9f0ea675abd1')
|
||||
sha256sums=('95aab189448582870d8e7d8a27a2c9b40838bd45ee2737be0f255f7a11647870'
|
||||
'b6595262c230e9773fdb817257abcc8c6e6e00f15b1c32b6a850ccfd8176dc10')
|
||||
|
||||
src_name="scrcpy-${pkgver}"
|
||||
src_server="scrcpy-server-v${pkgver}"
|
||||
prepare() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
rm -rf build
|
||||
}
|
||||
|
||||
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
|
||||
cd "${pkgname}-${pkgver}"
|
||||
meson \
|
||||
--prefix /usr \
|
||||
--buildtype release \
|
||||
--strip \
|
||||
-Dprebuilt_server="../scrcpy-server-v${pkgver}" \
|
||||
build
|
||||
ninja -C build
|
||||
}
|
||||
|
||||
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"
|
||||
mkdir -p "${pkgdir}/usr/bin"
|
||||
cd "${pkgname}-${pkgver}"
|
||||
DESTDIR="${pkgdir}" ninja -C build install
|
||||
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
|
|
|
@ -1,20 +1,19 @@
|
|||
diff --git a/PKGBUILD b/PKGBUILD
|
||||
index 690e344..81978b4 100644
|
||||
--- a/PKGBUILD
|
||||
+++ b/PKGBUILD
|
||||
@@ -22,8 +22,13 @@ build() {
|
||||
cd "${src_name}"
|
||||
|
||||
rm -rf build
|
||||
- meson build --buildtype release --strip -Db_lto=true \
|
||||
- -Dprebuilt_server="../${src_server}"
|
||||
+ 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
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
arch=('aarch64')
|
||||
url='https://github.com/Genymobile/scrcpy'
|
||||
license=('Apache')
|
||||
-depends=('android-tools' 'ffmpeg' 'sdl2')
|
||||
+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"
|
||||
@@ -26,7 +26,6 @@
|
||||
--prefix /usr \
|
||||
--buildtype release \
|
||||
--strip \
|
||||
- -Db_lto=true \
|
||||
-Dprebuilt_server="../scrcpy-server-v${pkgver}" \
|
||||
build
|
||||
ninja -C build
|
||||
|
|
Loading…
Reference in a new issue