[arch-commits] Commit in (5 files)

Alexander Rødseth arodseth at gemini.archlinux.org
Wed Dec 1 17:54:13 UTC 2021


    Date: Wednesday, December 1, 2021 @ 17:54:12
  Author: arodseth
Revision: 1060630

Add scrcpy (214 votes on AUR, Apache license)

Added:
  scrcpy/
  scrcpy/repos/
  scrcpy/repos/community-x86_64/
  scrcpy/trunk/
  scrcpy/trunk/PKGBUILD

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

Added: scrcpy/trunk/PKGBUILD
===================================================================
--- scrcpy/trunk/PKGBUILD	                        (rev 0)
+++ scrcpy/trunk/PKGBUILD	2021-12-01 17:54:12 UTC (rev 1060630)
@@ -0,0 +1,31 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Andrew Rabert <ar at nullsum.net>
+
+pkgname=scrcpy
+pkgver=1.21
+pkgrel=1
+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")
+b2sums=('c7228ada86c41f2ba460759ad0701a08a11a71992b517366afa5130a3c69fc01d5aabf6710e289e47a7042bd11bfb58482305214ee937191daa43ffb6c12788a'
+        '92d90606a04adb67ac956feffb4ff2e658d294304d0bade42d08660bac312cb447a713f052d353ba9fa454a55fac5334a08fe7a847f758c27bf50589ab0926b5')
+
+build() {
+  mkdir -p build
+  arch-meson build $pkgname-$pkgver \
+    -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