diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/qtcurve-kde4 |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/qtcurve-kde4')
-rw-r--r-- | extra/qtcurve-kde4/PKGBUILD | 38 | ||||
-rw-r--r-- | extra/qtcurve-kde4/bypass-kde-config.patch | 32 |
2 files changed, 70 insertions, 0 deletions
diff --git a/extra/qtcurve-kde4/PKGBUILD b/extra/qtcurve-kde4/PKGBUILD new file mode 100644 index 000000000..267f40eae --- /dev/null +++ b/extra/qtcurve-kde4/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 115510 2011-03-18 09:08:27Z andrea $ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Pierre Schmitz <pierre@archlinux.de> + +pkgname=qtcurve-kde4 +pkgver=1.8.6 +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=('kdebase-workspace') +makedepends=('cmake' 'automoc4') +source=("http://craigd.wikispaces.com/file/view/QtCurve-KDE4-${pkgver}.tar.bz2" + 'bypass-kde-config.patch') +md5sums=('2c7a9ab5d71da48a3118c6859b2b38e6' + '3f6681147cc361bd2bfd4d7477f2a8d0') + +build() { + cd ${srcdir}/QtCurve-KDE4-${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-KDE4-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd $srcdir/build + make DESTDIR=$pkgdir install +} diff --git a/extra/qtcurve-kde4/bypass-kde-config.patch b/extra/qtcurve-kde4/bypass-kde-config.patch new file mode 100644 index 000000000..d09e5ead5 --- /dev/null +++ b/extra/qtcurve-kde4/bypass-kde-config.patch @@ -0,0 +1,32 @@ +From: Pino Toscano <pino@kde.org> +Description: Disable braindead KDE3/4 prefix detection + The current detection of the KDE 3 and KDE 4 prefixes is done running + kde-config and kde4-config, resp. + This can be problematic, as these two could create files in ~/.kde, + thus breaking when the home of the current user (eg in buildds) is read-only. + Given the build system sets anyway "/usr" as prefix of KDE 3 and KDE 4 + if they were not detected, then just let it to. +Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=541667 + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -16,6 +16,11 @@ set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CM + set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${QTCURVE_VERSION_FULL}") + include(CPack) + ++# 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) + set(OLD_CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) + + # Try to find kde4-config... +@@ -48,6 +53,7 @@ if (KDE4_KDECONFIG_EXECUTABLE) + ARGS --prefix + OUTPUT_VARIABLE KDE4PREFIX) + endif (KDE4_KDECONFIG_EXECUTABLE) ++endif (BRAINDEAD_DETECTION) + + if(NOT KDE3PREFIX) + if(KDE4PREFIX) |