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

Antonio Rojas arojas at archlinux.org
Thu Nov 19 20:58:16 UTC 2020


    Date: Thursday, November 19, 2020 @ 20:58:16
  Author: arojas
Revision: 757751

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-calculator/repos/community-staging-x86_64/
  deepin-calculator/repos/community-staging-x86_64/PKGBUILD
    (from rev 757750, deepin-calculator/trunk/PKGBUILD)

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

Copied: deepin-calculator/repos/community-staging-x86_64/PKGBUILD (from rev 757750, deepin-calculator/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-19 20:58:16 UTC (rev 757751)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=deepin-calculator
+pkgver=5.6.0.1
+pkgrel=2
+pkgdesc='An easy to use calculator for ordinary users'
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-calculator"
+license=('GPL3')
+depends=('deepin-qt5integration')
+makedepends=('cmake' 'gmock' 'gtest' 'ninja' 'qt5-tools')
+groups=('deepin-extra')
+source=("https://github.com/linuxdeepin/deepin-calculator/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('b5b6cb108b8e8f350f493390482801dda297a64c4d8f1dae306553c19b9dc9a316f9e377701de606c27361a16045651c931c599dd936973599cc83e5e65a79f9')
+
+prepare() {
+  cd deepin-calculator-$pkgver
+  sed -i '1i#include <QPainterPath>' src/views/simplelistdelegate.cpp
+
+  # debundle gmock/gtest
+  sed -i '/third_party/d' tests/CMakeLists.txt
+  rm -r tests/third_party
+}
+
+build() {
+  cd deepin-calculator-$pkgver
+  cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr .
+  ninja
+}
+
+package() {
+  cd deepin-calculator-$pkgver
+  DESTDIR="$pkgdir" ninja install
+}



More information about the arch-commits mailing list