Added new app: QtCurve, version 1.6.4

This commit is contained in:
Giuseppe Calaà 2010-11-01 20:39:52 +00:00
parent 17b843c7cd
commit 2de4b91939
2 changed files with 75 additions and 0 deletions

43
qtcurve/PKGBUILD Normal file
View File

@ -0,0 +1,43 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=qtcurve
pkgver=1.6.4
pkgrel=1
arch=('i686' 'x86_64')
license=('GPL')
pkgdesc='A configurable set of widget styles for KDE'
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=('44ec7e7bac54d874599de3d1087758b1'
'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 \
-DQTC_QT_ONLY=true \
-DQTC_STYLE_SUPPORT=true
make
}
package() {
cd $srcdir/build
make DESTDIR=$pkgdir install
}

View File

@ -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)