summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Zhang2019-11-02 18:07:10 +0800
committerBruce Zhang2019-11-02 18:07:10 +0800
commita6796e4df8e83684b8501e11ce2560331ce2d636 (patch)
tree874a4e81877cdbcdfa189dea72966a09ae5f7dc9
parent24013caf551f7858601a55eacd81cfce20cadd4b (diff)
downloadaur-a6796e4df8e83684b8501e11ce2560331ce2d636.tar.gz
upgpkg: qt-scrcpy 1.0.3-2
update
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD18
-rw-r--r--binaries.patch13
3 files changed, 31 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1a7f90ce6d3..ea21eb3faa9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,16 @@
pkgbase = qt-scrcpy
pkgdesc = Android real-time screencast control tool
pkgver = 1.0.3
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/barry-ran/QtScrcpy
arch = x86_64
license = Apache
depends = qt5-base
provides = qt-scrcpy
source = qt-scrcpy-1.0.3.src.tar.gz::https://github.com/barry-ran/QtScrcpy/archive/v1.0.3.tar.gz
+ source = binaries.patch
sha256sums = 84c02a9402d7cbaf9626e625ccdde09de6f1d8bd6c02b66995650b312e537adc
+ sha256sums = d6aaff9b94d2a14f2c27296d30cabbaa70e47bb7fbc2782ce9e754738c748ded
pkgname = qt-scrcpy
diff --git a/PKGBUILD b/PKGBUILD
index b4b24e807d8..c0088f1b08d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,15 +2,24 @@
pkgname=qt-scrcpy
_name=QtScrcpy
pkgver=1.0.3
-pkgrel=1
+pkgrel=2
pkgdesc="Android real-time screencast control tool"
arch=('x86_64')
url="https://github.com/barry-ran/QtScrcpy"
license=('Apache')
depends=('qt5-base')
provides=('qt-scrcpy')
-source=("$pkgname-$pkgver.src.tar.gz::https://github.com/barry-ran/$_name/archive/v$pkgver.tar.gz")
-sha256sums=('84c02a9402d7cbaf9626e625ccdde09de6f1d8bd6c02b66995650b312e537adc')
+source=(
+ "$pkgname-$pkgver.src.tar.gz::https://github.com/barry-ran/$_name/archive/v$pkgver.tar.gz"
+ binaries.patch
+)
+sha256sums=('84c02a9402d7cbaf9626e625ccdde09de6f1d8bd6c02b66995650b312e537adc'
+ 'd6aaff9b94d2a14f2c27296d30cabbaa70e47bb7fbc2782ce9e754738c748ded')
+
+prepare() {
+ cd "$srcdir/$_name-$pkgver/$_name"
+ patch < "$srcdir/binaries.patch"
+}
build() {
cd "$srcdir/$_name-$pkgver"
@@ -23,4 +32,7 @@ build() {
package() {
cd "$srcdir/$_name-$pkgver/output/linux/release"
install -Dm755 QtScrcpy "$pkgdir/usr/bin/QtScrcpy"
+
+ cd "$srcdir/$_name-$pkgver/third_party"
+ install -Dm644 scrcpy-server.jar "$pkgdir/usr/share/qt-scrcpy/scrcpy-server.jar"
}
diff --git a/binaries.patch b/binaries.patch
new file mode 100644
index 00000000000..0f816d6e8f3
--- /dev/null
+++ b/binaries.patch
@@ -0,0 +1,13 @@
+--- main.cpp 2019-09-01 18:50:53.000000000 +0800
++++ main_new.cpp 2019-11-02 17:59:37.048730782 +0800
+@@ -37,8 +37,8 @@
+ #endif
+
+ #ifdef Q_OS_LINUX
+- qputenv("QTSCRCPY_ADB_PATH", "../../../third_party/adb/linux/adb");
+- qputenv("QTSCRCPY_SERVER_PATH", "../../../third_party/scrcpy-server.jar");
++ qputenv("QTSCRCPY_ADB_PATH", "/usr/bin/adb");
++ qputenv("QTSCRCPY_SERVER_PATH", "/usr/share/qt-scrcpy/scrcpy-server.jar");
+ #endif
+
+ //加载样式表