Date: Monday, December 19, 2022 @ 17:45:37
  Author: felixonmars
Revision: 1361688

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 1361687, deepin-desktop-schemas/trunk/PKGBUILD)

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

Copied: deepin-desktop-schemas/repos/community-testing-any/PKGBUILD (from rev 
1361687, deepin-desktop-schemas/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2022-12-19 17:45:37 UTC (rev 1361688)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
+
+pkgname=deepin-desktop-schemas
+pkgver=5.11.1
+pkgrel=1
+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";)
+sha512sums=('c9782599bb560260c8c5ed2999a62b02a6739810ca12e150f60cc636097b4860335439c451561b2332b09308912d10d028ff1d855c9c8e999caaebdc56f20d97')
+
+prepare() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  cd deepin-desktop-schemas-$pkgver
+  # 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#'http://detect.uniontech.com', 
'http://detectportal.deepin.com'#'http://ping.archlinux.org/nm-check.txt'#" 
schemas/com.deepin.dde.network-utils.gschema.xml
+  grep uniontech schemas/com.deepin.dde.network-utils.gschema.xml && exit 1 || 
:
+}
+
+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
+}

Reply via email to