diff options
Diffstat (limited to 'extra/qtcurve-kde3')
-rw-r--r-- | extra/qtcurve-kde3/PKGBUILD | 49 | ||||
-rw-r--r-- | extra/qtcurve-kde3/bypass-kde-config.patch | 24 | ||||
-rw-r--r-- | extra/qtcurve-kde3/kdeglobals | 2 |
3 files changed, 75 insertions, 0 deletions
diff --git a/extra/qtcurve-kde3/PKGBUILD b/extra/qtcurve-kde3/PKGBUILD new file mode 100644 index 000000000..afec99259 --- /dev/null +++ b/extra/qtcurve-kde3/PKGBUILD @@ -0,0 +1,49 @@ +# $Id: PKGBUILD,v 1.43 2008/07/14 01:06:07 Pierre Exp $ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Pierre Schmitz <pierre@archlinux.de> + +pkgname=qtcurve-kde3 +pkgver=1.8.3 +pkgrel=1 +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=('ef0d682cafc2f1ada4939d3b43e2dc76' + '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/extra/qtcurve-kde3/bypass-kde-config.patch b/extra/qtcurve-kde3/bypass-kde-config.patch new file mode 100644 index 000000000..113fb93b8 --- /dev/null +++ b/extra/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/extra/qtcurve-kde3/kdeglobals b/extra/qtcurve-kde3/kdeglobals new file mode 100644 index 000000000..ffbe26579 --- /dev/null +++ b/extra/qtcurve-kde3/kdeglobals @@ -0,0 +1,2 @@ +[General] +widgetStyle=qtcurve |