[arch-commits] Commit in deepin-desktop-schemas/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Jan 31 00:24:47 UTC 2021


    Date: Sunday, January 31, 2021 @ 00:24:47
  Author: felixonmars
Revision: 836807

archrelease: copy trunk to community-testing-any

Added:
  deepin-desktop-schemas/repos/community-testing-any/
  deepin-desktop-schemas/repos/community-testing-any/PKGBUILD
    (from rev 836806, deepin-desktop-schemas/trunk/PKGBUILD)

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

Copied: deepin-desktop-schemas/repos/community-testing-any/PKGBUILD (from rev 836806, deepin-desktop-schemas/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-01-31 00:24:47 UTC (rev 836807)
@@ -0,0 +1,59 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
+
+pkgname=deepin-desktop-schemas
+pkgver=5.8.44
+pkgrel=2
+pkgdesc='GSettings deepin desktop-wide schemas'
+arch=('any')
+url="https://github.com/linuxdeepin/deepin-desktop-schemas"
+license=('GPL3')
+depends=('dconf' 'deepin-gtk-theme' 'deepin-icon-theme' 'deepin-sound-theme')
+makedepends=('python' 'go' 'golang-deepin-lib')
+conflicts=('deepin-artwork-themes')
+replaces=('deepin-artwork-themes')
+groups=('deepin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-desktop-schemas/archive/$pkgver.tar.gz"
+        https://github.com/linuxdeepin/deepin-desktop-schemas/commit/bf0c4e43f6b6d508ddd346c2d1e865dae9ae947d.patch
+        https://github.com/linuxdeepin/deepin-desktop-schemas/commit/a364217886bb682aa6ecf5c380e76f8e2a23184d.patch)
+sha512sums=('b5c19d98db85abe3f0c188610f178ed0911e502a509fe7068dc6dd07f3f44a3772fb6ab514c464ed362b3dddca864a8fb0e6a6d72789e8aff06d31a68b1ac1b4'
+            'be13e501baf0517da19618011219b53d633a4186840b20b24d134e5d667c4ab1b6b716c09c78faf802b32ecf3f6f6e5e2f84744a5919b28645f002739d07ea82'
+            '7b288fce6f0c1b4964c2d80ef5fc13a21b25be5255bafb6fae0f276021ce21ecd5f330506ef76d48a009e17cb31107c2e1704b0d862293902203a8343c45fac6')
+
+prepare() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  cd deepin-desktop-schemas-$pkgver
+  # remove duplicated schema file for unreleased dde-control-center
+  patch -p1 -i ../a364217886bb682aa6ecf5c380e76f8e2a23184d.patch
+  # disable swap-sched
+  patch -Rp1 -i ../bf0c4e43f6b6d508ddd346c2d1e865dae9ae947d.patch
+  # fix default background url
+  sed -i "s#/usr/share/backgrounds/default_background.jpg#/usr/share/backgrounds/deepin/desktop.jpg#" \
+    overrides/common/com.deepin.wrap.gnome.desktop.override schemas/com.deepin.dde.appearance.gschema.xml
+  # fix network checker url
+  sed -i "s#'https://www.chinauos.com', 'https://www.uniontech.com'#'https://www.archlinux.org'#" schemas/com.deepin.dde.network-utils.gschema.xml
+  # fix for deepin-wm (their documentation is lying here)
+  sed -i "s|<default>''</default>|<default>'deepin-wm'</default>|" schemas/com.deepin.dde.startdde.gschema.xml
+}
+
+build() {
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+
+  cd deepin-desktop-schemas-$pkgver
+  make ARCH=x86
+}
+
+check() {
+  cd deepin-desktop-schemas-$pkgver
+  make test
+}
+
+package() {
+  cd deepin-desktop-schemas-$pkgver
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list