mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 19:17:15 +08:00
Cleanup
This commit is contained in:
parent
296a2187b8
commit
37051b7805
@ -1,25 +0,0 @@
|
|||||||
From: Allen Winter <allen.winter@kdab.com>
|
|
||||||
Date: Sat, 09 Jun 2012 17:03:12 +0000
|
|
||||||
Subject: remove REQUIRED from the find_package(KActivities).
|
|
||||||
X-Git-Url: http://quickgit.kde.org/?p=kde-runtime.git&a=commitdiff&h=a7766cdcd1be164d1cda35df959c1fea1136decc
|
|
||||||
---
|
|
||||||
remove REQUIRED from the find_package(KActivities).
|
|
||||||
then tell the macro_log_feature that KActivities is required.
|
|
||||||
this way, if people are missing KActivities they will get a nice log
|
|
||||||
message about it.
|
|
||||||
---
|
|
||||||
|
|
||||||
|
|
||||||
--- a/plasma/declarativeimports/plasmaextracomponents/CMakeLists.txt
|
|
||||||
+++ b/plasma/declarativeimports/plasmaextracomponents/CMakeLists.txt
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
project(plasmaextracomponents)
|
|
||||||
|
|
||||||
-find_package(KActivities REQUIRED NO_MODULE)
|
|
||||||
-macro_log_feature(KACTIVITIES_FOUND "KActivities" "Library and infrasturcture for using Activities from applications" "http://kde.org/" FALSE "" "Provides the ability to access activities from QML.")
|
|
||||||
+find_package(KActivities)
|
|
||||||
+macro_log_feature(KACTIVITIES_FOUND "KActivities" "Library and infrasturcture for using Activities from applications" "git://anongit.kde.org/kactivities" TRUE "" "Provides the ability to access activities from QML.")
|
|
||||||
|
|
||||||
#include(KDE4Defaults)
|
|
||||||
|
|
||||||
|
|
@ -10,7 +10,7 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|||||||
# package info
|
# package info
|
||||||
#
|
#
|
||||||
pkgname="kde-runtime"
|
pkgname="kde-runtime"
|
||||||
arch=('i686' 'x86_64')
|
arch=('x86_64')
|
||||||
pkgver=${_kdever}
|
pkgver=${_kdever}
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="KDE Runtime"
|
pkgdesc="KDE Runtime"
|
||||||
@ -31,23 +31,17 @@ noextract=(branding.svgz)
|
|||||||
|
|
||||||
source=($_mirror/${pkgname}-$_kdever.tar.xz
|
source=($_mirror/${pkgname}-$_kdever.tar.xz
|
||||||
branding.svgz
|
branding.svgz
|
||||||
01_disable_logout_sound.patch
|
01_disable_logout_sound.patch)
|
||||||
FindKactivities.patch)
|
|
||||||
|
|
||||||
md5sums=(`grep ${pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`
|
md5sums=(`grep ${pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`
|
||||||
'68cd8eb57db22c2f2ed554b721253bc2' # branding.svgz
|
'68cd8eb57db22c2f2ed554b721253bc2' # branding.svgz
|
||||||
'a434bf282ee391b2f857184be59a3b6f' # 01_disable_logout_sound.patch
|
'a434bf282ee391b2f857184be59a3b6f') # 01_disable_logout_sound.patch
|
||||||
'259d02a6fc6a1e2aa8ade4558250e9e4') # FIndKactivities.patch
|
|
||||||
|
|
||||||
#
|
|
||||||
# build function
|
|
||||||
#
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname}-${pkgver}
|
cd ${pkgname}-${pkgver}
|
||||||
|
|
||||||
msg "applying main patchset ..."
|
msg "applying main patchset ..."
|
||||||
patch -Np1 -i ${srcdir}/01_disable_logout_sound.patch
|
patch -Np1 -i ${srcdir}/01_disable_logout_sound.patch
|
||||||
#patch -p1 -i ${srcdir}/FindKactivities.patch
|
|
||||||
|
|
||||||
# copy our branding stuff
|
# copy our branding stuff
|
||||||
cp -f ${srcdir}/branding.svgz ${srcdir}/${pkgname}-${pkgver}/desktoptheme/oxygen/widgets/
|
cp -f ${srcdir}/branding.svgz ${srcdir}/${pkgname}-${pkgver}/desktoptheme/oxygen/widgets/
|
||||||
@ -73,28 +67,7 @@ package() {
|
|||||||
# put kdesu into the path
|
# put kdesu into the path
|
||||||
cp ${pkgdir}/usr/lib/kde4/libexec/kdesu ${pkgdir}/usr/bin/kdesu
|
cp ${pkgdir}/usr/lib/kde4/libexec/kdesu ${pkgdir}/usr/bin/kdesu
|
||||||
|
|
||||||
# use transparent panel svg's everywhere
|
|
||||||
for n in default oxygen; do
|
|
||||||
cp -f ${pkgdir}/usr/share/apps/desktoptheme/$n/widgets/panel-background.svgz ${pkgdir}/usr/share/apps/desktoptheme/$n/opaque/widgets/panel-background.svgz
|
|
||||||
done
|
|
||||||
|
|
||||||
# include our patches into the package
|
|
||||||
ls -1 ${startdir}/*.patch &>/dev/null 2>&1
|
|
||||||
if [ "$?" = "0" ]; then
|
|
||||||
warning "incuding patches into package"
|
|
||||||
mkdir -p ${pkgdir}/usr/share/chakra/patches/${pkgname} &>/dev/null
|
|
||||||
for i in ${startdir}/*.patch; do
|
|
||||||
msg "$i"
|
|
||||||
cp $i ${pkgdir}/usr/share/chakra/patches/${pkgname}/ &>/dev/null
|
|
||||||
done
|
|
||||||
else
|
|
||||||
warning "no patches found, skipping to include them into the package..."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# WORKAROUND, conflict with hicolor-icon-theme
|
# WORKAROUND, conflict with hicolor-icon-theme
|
||||||
rm -rf ${pkgdir}/usr/share/icons/hicolor/index.theme
|
rm -rf ${pkgdir}/usr/share/icons/hicolor/index.theme
|
||||||
rm -rf ${pkgdir}/usr/share/icons/default.kde4
|
rm -rf ${pkgdir}/usr/share/icons/default.kde4
|
||||||
|
|
||||||
# WORKAROUND, conflict with repomuk-core
|
|
||||||
rm -rf ${pkgdir}//usr/lib/libnepomukcommon.so
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user