[arch-commits] Commit in ukui-media/trunk (PKGBUILD fix-installation.patch)

Felix Yan felixonmars at archlinux.org
Fri Mar 20 13:45:30 UTC 2020


    Date: Friday, March 20, 2020 @ 13:45:29
  Author: felixonmars
Revision: 601632

upgpkg: ukui-media 2.0.0-2

Added:
  ukui-media/trunk/fix-installation.patch
Modified:
  ukui-media/trunk/PKGBUILD

------------------------+
 PKGBUILD               |   20 +++++++++++++++-----
 fix-installation.patch |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-20 13:45:21 UTC (rev 601631)
+++ PKGBUILD	2020-03-20 13:45:29 UTC (rev 601632)
@@ -2,19 +2,22 @@
 
 pkgname=ukui-media
 pkgver=2.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc="UKUI media utilities"
 arch=('x86_64')
 license=('GPL')
 url="https://github.com/ukui/ukui-media"
 groups=('ukui')
-depends=('libmatemixer' 'mate-desktop')
-makedepends=('autoconf-archive' 'intltool' 'mate-common')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/ukui/ukui-media/archive/v$pkgver.tar.gz")
-sha512sums=('d741e96e2961135913d65108839722d81d414ddd1094c41707bd149b7bc26d4d9d96208bdface885acb5abf252a4fe6e9412c9316c24ae3a3a5eab8e0bca78c8')
+depends=('gsettings-qt' 'libmatemixer' 'libqtxdg' 'mate-desktop' 'qt5-svg')
+makedepends=('autoconf-archive' 'intltool' 'mate-common' 'qt5-tools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ukui/ukui-media/archive/v$pkgver.tar.gz"
+        fix-installation.patch)
+sha512sums=('d741e96e2961135913d65108839722d81d414ddd1094c41707bd149b7bc26d4d9d96208bdface885acb5abf252a4fe6e9412c9316c24ae3a3a5eab8e0bca78c8'
+            'f8feb25ae30a7ab04663641da94bbd611ecf3914d34e8abb3a459d14719b80bd7cf721eaf0119f742dbee14cca9504be81cb3158f7f2ef59055ac1b0379f1682')
 
 prepare() {
   cd $pkgname-$pkgver
+  patch -p1 -i ../fix-installation.patch
   NOCONFIGURE=1 ./autogen.sh
 }
 
@@ -22,9 +25,16 @@
   cd $pkgname-$pkgver
   ./configure --prefix=/usr --libexecdir=/usr/lib/$pkgname --sysconfdir=/etc
   make
+
+  cd ukui-volume-control-applet-qt
+  qmake PREFIX=/usr
+  make
 }
 
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
+
+  cd ukui-volume-control-applet-qt
+  make INSTALL_ROOT="$pkgdir" install
 }

Added: fix-installation.patch
===================================================================
--- fix-installation.patch	                        (rev 0)
+++ fix-installation.patch	2020-03-20 13:45:29 UTC (rev 601632)
@@ -0,0 +1,46 @@
+commit 49702aec5da73fb874483a3246299cfb304c55cd
+Author: Felix Yan <felixonmars at archlinux.org>
+Date:   Fri Mar 20 21:41:34 2020 +0800
+
+    Properly include resource files in installation
+
+diff --git a/ukui-volume-control-applet-qt/ukui-volume-control-applet-qt.pro b/ukui-volume-control-applet-qt/ukui-volume-control-applet-qt.pro
+index a1790a3..917b789 100644
+--- a/ukui-volume-control-applet-qt/ukui-volume-control-applet-qt.pro
++++ b/ukui-volume-control-applet-qt/ukui-volume-control-applet-qt.pro
+@@ -10,6 +10,8 @@ TEMPLATE = app
+ TARGET = ukui-volume-control-applet-qt
+ INCLUDEPATH += .
+ 
++PREFIX = /usr/share/ukui-media
++
+ include(QtSingleApplication/qtsingleapplication.pri)
+ 
+ DEFINES += QT_DEPRECATED_WARNINGS
+@@ -26,9 +28,6 @@ target.path = /usr/bin
+ #inst.files += translations/ukui-media-volume-control-applet-qt_zh_CN.qm
+ #              translations/1
+ 
+-INSTALLS += \
+-    target
+-
+ CONFIG += \
+     c++11 \
+     no_keywords link_pkgconfig \
+@@ -66,4 +65,15 @@ RESOURCES += \
+     res.qrc
+ 
+ TRANSLATIONS += \
+-    translations/ukui-volume-control-applet-qt-zh_CN.ts
++    translations/*.ts
++
++system("lrelease translations/*.ts")
++
++qm_file.files = translations/*.qm
++qm_file.path = $${PREFIX}/translations/
++
++data_files.files = data/*
++data_files.path = $${PREFIX}/
++
++INSTALLS += \
++    target qm_file data_files



More information about the arch-commits mailing list