[arch-commits] Commit in deepin-font-manager/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Thu May 6 03:07:21 UTC 2021


    Date: Thursday, May 6, 2021 @ 03:07:20
  Author: bgyorgy
Revision: 928347

upgpkg: deepin-font-manager 5.8.0.21-2: Various fixes

Modified:
  deepin-font-manager/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-06 02:02:01 UTC (rev 928346)
+++ PKGBUILD	2021-05-06 03:07:20 UTC (rev 928347)
@@ -2,20 +2,31 @@
 
 pkgname=deepin-font-manager
 pkgver=5.8.0.21
-pkgrel=1
+pkgrel=2
 pkgdesc='A font management tool for Deepin desktop'
 arch=('x86_64')
 url="https://github.com/linuxdeepin/deepin-font-manager"
 license=('GPL3')
-depends=('deepin-qt5integration' 'deepin-file-manager')
-makedepends=('cmake' 'gmock' 'gtest' 'ninja' 'qt5-tools')
+depends=('deepin-qt5integration')
+makedepends=('cmake' 'deepin-file-manager' 'gmock' 'gtest' 'ninja' 'qt5-tools')
+optdepends=('deepin-file-manager: font preview in file manager')
 groups=('deepin-extra')
 source=("https://github.com/linuxdeepin/deepin-font-manager/archive/$pkgver/$pkgname-$pkgver.tar.gz")
 sha512sums=('11155184240dcbc7ee64d5977355b96d5aea7882858bd5c40ab5b3e502ebaf99699ba648ede2835f084bf32c4fe4752ccc7f74df88a56eb8a8c2e6dd7775e48b')
 
+prepare() {
+  cd deepin-font-manager-$pkgver
+
+  # Fix linker flags
+  sed -i 's/CMAKE_EXE_LINKER_FLAGS "-pie"/CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie"/' deepin-font-manager/CMakeLists.txt
+
+  # Fix file manager plugin install dir
+  sed -i 's|lib/x86_64-linux-gnu/|lib/|' deepin-font-preview-plugin/CMakeLists.txt
+}
+
 build() {
   cd deepin-font-manager-$pkgver
-  cmake -GNinja .
+  cmake -GNinja . -DPLUGIN_INSTALL_DIR=
   ninja
 }
 



More information about the arch-commits mailing list