[arch-commits] Commit in deepin-api/trunk (PKGBUILD rfkill.patch)

Felix Yan felixonmars at archlinux.org
Mon Nov 12 21:27:53 UTC 2018


    Date: Monday, November 12, 2018 @ 21:27:52
  Author: felixonmars
Revision: 406462

upgpkg: deepin-api 3.5.0-2

add a patch to address https://github.com/linuxdeepin/developer-center/issues/657

Added:
  deepin-api/trunk/rfkill.patch
Modified:
  deepin-api/trunk/PKGBUILD

--------------+
 PKGBUILD     |   12 ++++++++----
 rfkill.patch |   13 +++++++++++++
 2 files changed, 21 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-12 20:19:56 UTC (rev 406461)
+++ PKGBUILD	2018-11-12 21:27:52 UTC (rev 406462)
@@ -4,7 +4,7 @@
 
 pkgname=deepin-api
 pkgver=3.5.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Golang bindings for dde-daemon'
 arch=('x86_64')
 url="https://github.com/linuxdeepin/dde-api"
@@ -16,12 +16,16 @@
 conflicts=('dde-api')
 replaces=('dde-api')
 groups=('deepin')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/felixonmars/dde-api/archive/$pkgver.tar.gz"
-        deepin-api.sysusers)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-api/archive/$pkgver.tar.gz"
+        deepin-api.sysusers
+        rfkill.patch)
 sha512sums=('44c0258dff39d5a5dce144bc477269e201e4f1a583776848278077afe118cce374c3e11681b51dfb3863415e42753b6901498f585038f5ef0d3a54849763fce6'
-            '548b4c8d06a10f0103d84fe6b68532ca71aae53347a6ad85dad1d274844146c9861d1bf6ce8e5518ea1b043aa082d705c534f0a4c0feb16a031537cee6befb08')
+            '548b4c8d06a10f0103d84fe6b68532ca71aae53347a6ad85dad1d274844146c9861d1bf6ce8e5518ea1b043aa082d705c534f0a4c0feb16a031537cee6befb08'
+            '61cf0c2b36e104d7a2c2564c60885c5c00654c633c2de920479491e76e50578cc12d63d8d3757a1db1606458ab0c57baabfc9f4cd4cdeaed532434a209752320')
 
 prepare() {
+  patch -d dde-api-$pkgver -p1 -i ../rfkill.patch
+
   export GOPATH="$srcdir/build:/usr/share/gocode"
   mkdir -p build/src/pkg.deepin.io/dde/api
   cp -a dde-api-$pkgver/* build/src/pkg.deepin.io/dde/api/

Added: rfkill.patch
===================================================================
--- rfkill.patch	                        (rev 0)
+++ rfkill.patch	2018-11-12 21:27:52 UTC (rev 406462)
@@ -0,0 +1,13 @@
+diff --git a/device/device.go b/device/device.go
+index 504b194..2b25db1 100644
+--- a/device/device.go
++++ b/device/device.go
+@@ -117,7 +117,7 @@ func checkAuthorization(actionId string, pid uint32) (bool, error) {
+ }
+ 
+ type rfkillItem struct {
+-	Id     string `json:"id"`
++	Id     int    `json:"id"`
+ 	Type   string `json:"type"`
+ 	Device string `json:"device"`
+ 	Soft   string `json:"soft"`



More information about the arch-commits mailing list