summaryrefslogtreecommitdiff
path: root/community/qtmpc
diff options
context:
space:
mode:
Diffstat (limited to 'community/qtmpc')
-rw-r--r--community/qtmpc/PKGBUILD33
-rw-r--r--community/qtmpc/qtmpc-0.6.1-underlinking.patch40
-rw-r--r--community/qtmpc/qtmpc.install11
3 files changed, 84 insertions, 0 deletions
diff --git a/community/qtmpc/PKGBUILD b/community/qtmpc/PKGBUILD
new file mode 100644
index 000000000..4755f681e
--- /dev/null
+++ b/community/qtmpc/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 67768 2012-03-14 11:08:26Z giovanni $
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Contributor: Shaika-Dzari <shaikadzari at gmail dot com>
+
+pkgname=qtmpc
+pkgver=0.6.1
+pkgrel=3
+pkgdesc="Qt4-based front-end for MPD"
+arch=('i686' 'x86_64')
+url="http://qtmpc.lowblog.nl/"
+license=('GPL')
+depends=('kdebase-runtime')
+makedepends=('automoc4' 'cmake')
+install=$pkgname.install
+source=("http://files.lowblog.nl/$pkgname/QtMPC-$pkgver.tar.bz2"
+ 'qtmpc-0.6.1-underlinking.patch')
+sha256sums=('82287a26788b36d49db26518b66203f332cf686eefb81ee2d9be095e61123a62'
+ '8295218ebeeb14372c36c34510a9eed7210e82d8e474ef3caae1bd58327780d3')
+
+build() {
+ cd ${srcdir}/QtMPC
+
+ patch -Np1 -i "${srcdir}/qtmpc-0.6.1-underlinking.patch"
+
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/QtMPC
+
+ make DESTDIR=${pkgdir} install
+}
diff --git a/community/qtmpc/qtmpc-0.6.1-underlinking.patch b/community/qtmpc/qtmpc-0.6.1-underlinking.patch
new file mode 100644
index 000000000..881187d1f
--- /dev/null
+++ b/community/qtmpc/qtmpc-0.6.1-underlinking.patch
@@ -0,0 +1,40 @@
+diff -ruN QtMPC-0-vanilla/CMakeLists.txt QtMPC/CMakeLists.txt
+--- QtMPC-0-vanilla/CMakeLists.txt 2010-11-02 17:00:58.000000000 +0100
++++ QtMPC/CMakeLists.txt 2011-11-20 23:27:18.000000000 +0100
+@@ -81,6 +81,11 @@
+
+ # this command finds Qt4 libraries and sets all required variables
+ FIND_PACKAGE( Qt4 REQUIRED )
++
++# add some useful macros and variables
++# (QT_USE_FILE is a variable defined by FIND_PACKAGE( Qt4 ) that contains a path to CMake script)
++INCLUDE( ${QT_USE_FILE} )
++
+ FIND_PACKAGE( KDE4 )
+
+ IF( NOT DEFINED WANT_KDE_SUPPORT )
+@@ -134,12 +139,6 @@
+ ADD_DEFINITIONS( -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -Wall -Wextra )
+ ENDIF( NOT ENABLE_KDE_SUPPORT )
+
+-# add some useful macros and variables
+-# (QT_USE_FILE is a variable defined by FIND_PACKAGE( Qt4 ) that contains a path to CMake script)
+-IF( NOT ENABLE_KDE_SUPPORT )
+- INCLUDE( ${QT_USE_FILE} )
+-ENDIF( NOT ENABLE_KDE_SUPPORT )
+-
+ ADD_SUBDIRECTORY( external/libmaia )
+
+ # Compile the resource files
+@@ -169,9 +168,9 @@
+
+ # Last but not least, link everything. Based on whether we are using KDE or not.
+ IF( ENABLE_KDE_SUPPORT )
+- TARGET_LINK_LIBRARIES( QtMPC ${QT_LIBRARIES} ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} Maia )
++ TARGET_LINK_LIBRARIES( QtMPC Maia ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${QT_LIBRARIES} )
+ ELSE( ENABLE_KDE_SUPPORT )
+- TARGET_LINK_LIBRARIES( QtMPC ${QT_LIBRARIES} Maia )
++ TARGET_LINK_LIBRARIES( QtMPC Maia ${QT_LIBRARIES} )
+ ENDIF( ENABLE_KDE_SUPPORT )
+
+ IF( ENABLE_KDE_SUPPORT )
diff --git a/community/qtmpc/qtmpc.install b/community/qtmpc/qtmpc.install
new file mode 100644
index 000000000..1c0de2e4f
--- /dev/null
+++ b/community/qtmpc/qtmpc.install
@@ -0,0 +1,11 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}