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

Antonio Rojas arojas at archlinux.org
Wed Sep 9 11:18:27 UTC 2020


    Date: Wednesday, September 9, 2020 @ 11:18:26
  Author: arojas
Revision: 701560

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 701559, deepin-calculator/trunk/PKGBUILD)

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

Copied: deepin-calculator/repos/community-staging-x86_64/PKGBUILD (from rev 701559, deepin-calculator/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-09-09 11:18:26 UTC (rev 701560)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=deepin-calculator
+pkgver=5.5.36
+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=('68043b2219af05f9bc729864b5013150ca16266a9952a82e504e69f8d83a524b8b2f592399efa22044ca7de50fa828b9bf4e3a1f68b1f9463a1a5942ce962e06')
+
+prepare() {
+  cd deepin-calculator-$pkgver
+  sed -i '1i#include <QPainterPath>' src/views/simplelistdelegate.cpp
+
+  # debundle gmock/gtest
+  sed -i '/third_party/d' CMakeLists.txt
+  rm -r 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