summaryrefslogtreecommitdiff
path: root/community/qtcurve-kde3
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/qtcurve-kde3
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/qtcurve-kde3')
-rw-r--r--community/qtcurve-kde3/PKGBUILD50
-rw-r--r--community/qtcurve-kde3/bypass-kde-config.patch24
-rw-r--r--community/qtcurve-kde3/kdeglobals2
3 files changed, 76 insertions, 0 deletions
diff --git a/community/qtcurve-kde3/PKGBUILD b/community/qtcurve-kde3/PKGBUILD
new file mode 100644
index 000000000..f5e057cfb
--- /dev/null
+++ b/community/qtcurve-kde3/PKGBUILD
@@ -0,0 +1,50 @@
+# $Id: PKGBUILD 65718 2012-02-22 11:48:53Z andrea $
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+
+pkgname=qtcurve-kde3
+pkgver=1.8.5
+pkgrel=3
+arch=('i686' 'x86_64')
+groups=('qtcurve')
+license=('GPL')
+pkgdesc='A configurable set of widget styles for KDE and Gtk'
+url='http://www.kde-look.org/content/show.php?content=40492'
+depends=('kdelibs3')
+makedepends=('cmake' 'kdelibs')
+source=("http://craigd.wikispaces.com/file/view/QtCurve-KDE3-${pkgver}.tar.bz2"
+ 'kdeglobals'
+ 'bypass-kde-config.patch')
+md5sums=('d9cca99526079782f9fc7bd7ba432582'
+ '05a6294c7f0e239e698e7e5224fc8e7f'
+ 'e1ab2c0995e412b2cbfe804fba75517e')
+
+build() {
+ . /etc/profile.d/qt3.sh
+ . /etc/profile.d/kde3.sh
+
+ cd ${srcdir}/QtCurve-KDE3-${pkgver}
+ # Bypass KDE prefix detection by kde4-config, see:
+ # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=541667
+ patch -Np1 -i ${srcdir}/bypass-kde-config.patch
+
+ cd ${srcdir}
+ mkdir build
+ cd build
+ cmake ../QtCurve-KDE3-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/opt/kde
+ make
+}
+
+package() {
+ cd $srcdir/build
+ make DESTDIR=$pkgdir install
+
+ # remove kcontrol plugins
+ rm -f $pkgdir/opt/kde/lib/kde3/kstyle_qtcurve_config.*
+
+ # set default theme
+ install -D -m644 $srcdir/kdeglobals $pkgdir/opt/kde/share/config/kdeglobals
+}
diff --git a/community/qtcurve-kde3/bypass-kde-config.patch b/community/qtcurve-kde3/bypass-kde-config.patch
new file mode 100644
index 000000000..113fb93b8
--- /dev/null
+++ b/community/qtcurve-kde3/bypass-kde-config.patch
@@ -0,0 +1,24 @@
+--- QtCurve-KDE3-1.6.0/CMakeLists.txt~ 2010-09-14 16:19:36.543333337 +0200
++++ QtCurve-KDE3-1.6.0/CMakeLists.txt 2010-09-14 16:22:18.160000003 +0200
+@@ -44,6 +44,12 @@
+ endif (QT_PLUGINS_DIR MATCHES NOTFOUND)
+ endif (NOT QTC_QT_ONLY)
+
++# Comment the kde3/kde4 prefix detection as a whole as it wants to run
++# kde-config and kde4-config, which in turn can create stuff in ~/.kde.
++# This cannot work on read-only homes.
++# So, the "fallback" prefixes ("/usr" for both) will be used.
++if (BRAINDEAD_DETECTION)
++
+ if (NOT QTC_QT_ONLY)
+ exec_program(kde-config
+ ARGS --prefix --expandvars
+@@ -71,6 +77,8 @@
+ OUTPUT_VARIABLE KDE4PREFIX)
+ endif(KDE4_KDECONFIG_EXECUTABLE)
+
++endif (BRAINDEAD_DETECTION)
++
+ if(NOT KDE4PREFIX)
+ set(KDE4PREFIX ${KDE3PREFIX})
+ endif(NOT KDE4PREFIX)
diff --git a/community/qtcurve-kde3/kdeglobals b/community/qtcurve-kde3/kdeglobals
new file mode 100644
index 000000000..ffbe26579
--- /dev/null
+++ b/community/qtcurve-kde3/kdeglobals
@@ -0,0 +1,2 @@
+[General]
+widgetStyle=qtcurve