[arch-commits] Commit in scrcpy/repos (2 files)

Antonio Rojas arojas at gemini.archlinux.org
Fri Jan 28 18:32:43 UTC 2022


    Date: Friday, January 28, 2022 @ 18:32:42
  Author: arojas
Revision: 1118378

archrelease: copy trunk to community-staging-x86_64

Added:
  scrcpy/repos/community-staging-x86_64/
  scrcpy/repos/community-staging-x86_64/PKGBUILD
    (from rev 1118377, scrcpy/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: scrcpy/repos/community-staging-x86_64/PKGBUILD (from rev 1118377, scrcpy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-28 18:32:42 UTC (rev 1118378)
@@ -0,0 +1,39 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Andrew Rabert <ar at nullsum.net>
+
+pkgname=scrcpy
+pkgver=1.21
+pkgrel=3
+pkgdesc='Display and control your Android device'
+arch=(x86_64)
+url='https://github.com/Genymobile/scrcpy'
+license=(Apache)
+depends=(android-tools ffmpeg sdl2)
+makedepends=(meson)
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+        "$url/releases/download/v$pkgver/$pkgname-server-v$pkgver"
+         https://github.com/Genymobile/scrcpy/commit/5e8fa56e.patch)
+b2sums=('c7228ada86c41f2ba460759ad0701a08a11a71992b517366afa5130a3c69fc01d5aabf6710e289e47a7042bd11bfb58482305214ee937191daa43ffb6c12788a'
+        '92d90606a04adb67ac956feffb4ff2e658d294304d0bade42d08660bac312cb447a713f052d353ba9fa454a55fac5334a08fe7a847f758c27bf50589ab0926b5'
+        'b52c3e56d21be29f4b305839be0d7edab0719068e2d92d8a70eee3b15f52b3ca7328641df1b00b6fff2a50be8072cb2699fea1eb3460b72400052f31287a86da')
+
+prepare() {
+  # Fix build with FFmpeg 5
+  patch -d $pkgname-$pkgver -p1 < 5e8fa56e.patch
+}
+
+build() {
+  mkdir -p build
+  arch-meson build $pkgname-$pkgver \
+    --buildtype release \
+    -D b_lto=true \
+    -D b_ndebug=true \
+    -D prebuilt_server="../$pkgname-server-v$pkgver"
+  ninja -v -C build
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+  install -Dm644 $pkgname-$pkgver/LICENSE \
+    -t "$pkgdir/usr/share/licenses/$pkgname"
+}



More information about the arch-commits mailing list