mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
kdelibs, kde-runtime: remove KDE SC wastes
This commit is contained in:
parent
c3a87d56bf
commit
d60758a730
@ -5,10 +5,10 @@ pkgbase='kde-runtime'
|
|||||||
pkgname=('kde-runtime' 'khelpcenter4')
|
pkgname=('kde-runtime' 'khelpcenter4')
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
pkgver=${_kdever}
|
pkgver=${_kdever}
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
url='http://www.kde.org'
|
url='http://www.kde.org'
|
||||||
license=('GPL' 'LGPL' 'FDL')
|
license=('GPL' 'LGPL' 'FDL')
|
||||||
options=('docs' 'debug')
|
options=('!docs' 'debug')
|
||||||
makedepends=('pkgconfig'
|
makedepends=('pkgconfig'
|
||||||
'cmake'
|
'cmake'
|
||||||
'automoc4'
|
'automoc4'
|
||||||
@ -30,7 +30,8 @@ makedepends=('pkgconfig'
|
|||||||
'libssh>=0.6.0'
|
'libssh>=0.6.0'
|
||||||
'libcanberra'
|
'libcanberra'
|
||||||
'sound-theme-freedesktop'
|
'sound-theme-freedesktop'
|
||||||
'libgcrypt')
|
'libgcrypt'
|
||||||
|
'boost')
|
||||||
groups=('kde' 'kde-minimal' 'kde-uninstall')
|
groups=('kde' 'kde-minimal' 'kde-uninstall')
|
||||||
install=kde-runtime.install
|
install=kde-runtime.install
|
||||||
noextract=(branding.svgz)
|
noextract=(branding.svgz)
|
||||||
@ -104,7 +105,9 @@ package_kde-runtime() {
|
|||||||
"${pkgdir}"/usr/lib/kde4/libexec/khc_mansearch.pl \
|
"${pkgdir}"/usr/lib/kde4/libexec/khc_mansearch.pl \
|
||||||
"${pkgdir}"/usr/lib/kde4/libexec/khc_docbookdig.pl
|
"${pkgdir}"/usr/lib/kde4/libexec/khc_docbookdig.pl
|
||||||
rm -r "${pkgdir}"/usr/share/apps/khelpcenter/
|
rm -r "${pkgdir}"/usr/share/apps/khelpcenter/
|
||||||
|
# useless in plasma5
|
||||||
|
rm -rf ${pkgdir}/usr/share/desktop-directories/
|
||||||
|
rm -rf ${pkgdir}/etc/xdg/menus/
|
||||||
}
|
}
|
||||||
|
|
||||||
package_khelpcenter4() {
|
package_khelpcenter4() {
|
||||||
|
@ -4,11 +4,11 @@ source ../kdeapps.conf
|
|||||||
pkgname="kdelibs"
|
pkgname="kdelibs"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
pkgver=${_libsver}
|
pkgver=${_libsver}
|
||||||
pkgrel=3
|
pkgrel=5
|
||||||
pkgdesc="KDE Core Libraries"
|
pkgdesc="KDE Core Libraries"
|
||||||
url="http://www.kde.org"
|
url="http://www.kde.org"
|
||||||
license=('GPL' 'LGPL' 'FDL')
|
license=('GPL' 'LGPL' 'FDL')
|
||||||
options=('docs' 'debug')
|
options=('!docs' 'debug')
|
||||||
depends=("${_qtpkg}>=${_qtver}" "chakra-common>=${_kdever}"
|
depends=("${_qtpkg}>=${_qtver}" "chakra-common>=${_kdever}"
|
||||||
'shared-mime-info' 'upower' 'udisks2' 'xz' 'enchant' 'jasper' 'openexr' 'giflib' 'strigi' 'libxtst'
|
'shared-mime-info' 'upower' 'udisks2' 'xz' 'enchant' 'jasper' 'openexr' 'giflib' 'strigi' 'libxtst'
|
||||||
'ca-certificates' 'xdg-utils' 'qca' 'polkit-qt4' 'libxss' 'phonon' 'shared-desktop-ontologies'
|
'ca-certificates' 'xdg-utils' 'qca' 'polkit-qt4' 'libxss' 'phonon' 'shared-desktop-ontologies'
|
||||||
@ -34,13 +34,13 @@ source=($_mirror/${pkgname}-$_libsver.tar.xz
|
|||||||
02_kde_applications_menu.patch
|
02_kde_applications_menu.patch
|
||||||
03_chakra_menu.patch
|
03_chakra_menu.patch
|
||||||
MergeDir.patch)
|
MergeDir.patch)
|
||||||
sha256sums=(`grep $pkgname-$_libsver.tar.xz ../checksums.txt | cut -d " " -f1`
|
sha256sums=('778e86392f2c61e36d1cf335e763d06a18487121b3cd5e583a75933f22d3ce63'
|
||||||
'029e2d07c5fc8676d143b903aa181fc470e5b469d49ccf107e19031f562bf4e3'
|
'029e2d07c5fc8676d143b903aa181fc470e5b469d49ccf107e19031f562bf4e3'
|
||||||
'b2d25c76081ea6bb31d90c4c6b619ce64ac36de3a6eefb2f9990d3dbf8cd9c91'
|
'b2d25c76081ea6bb31d90c4c6b619ce64ac36de3a6eefb2f9990d3dbf8cd9c91'
|
||||||
'505e9e5e969be5094b3f713b865d5927cc3de1f4693915174732b20793228c4f'
|
'505e9e5e969be5094b3f713b865d5927cc3de1f4693915174732b20793228c4f'
|
||||||
'd7d2fac1ceb1551081a5f3fa860c14d4aeb0c774d56067e931c20b8d79c4450f')
|
'd7d2fac1ceb1551081a5f3fa860c14d4aeb0c774d56067e931c20b8d79c4450f')
|
||||||
|
|
||||||
build() {
|
prepare() {
|
||||||
# main patches
|
# main patches
|
||||||
msg "Applying patches..."
|
msg "Applying patches..."
|
||||||
cd ${srcdir}/${pkgname}-${pkgver}
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||||||
@ -52,7 +52,11 @@ build() {
|
|||||||
patch -p1 -i ${srcdir}/MergeDir.patch
|
patch -p1 -i ${srcdir}/MergeDir.patch
|
||||||
cd ${srcdir}
|
cd ${srcdir}
|
||||||
rm -rf build
|
rm -rf build
|
||||||
mkdir -p build && cd build
|
mkdir -p build
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd build
|
||||||
cmake ../${pkgname}-${pkgver} \
|
cmake ../${pkgname}-${pkgver} \
|
||||||
-DCMAKE_BUILD_TYPE=${_build_type} \
|
-DCMAKE_BUILD_TYPE=${_build_type} \
|
||||||
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
||||||
@ -66,7 +70,7 @@ build() {
|
|||||||
-DCMAKE_SKIP_RPATH=ON \
|
-DCMAKE_SKIP_RPATH=ON \
|
||||||
-DWITH_SOLID_UDISKS2=ON \
|
-DWITH_SOLID_UDISKS2=ON \
|
||||||
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
||||||
make VERBOSE=1
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
@ -75,4 +79,7 @@ package() {
|
|||||||
# link cert bundle to the one from ca-certificates
|
# link cert bundle to the one from ca-certificates
|
||||||
rm -f ${pkgdir}/usr/share/apps/kssl/ca-bundle.crt
|
rm -f ${pkgdir}/usr/share/apps/kssl/ca-bundle.crt
|
||||||
ln -sf /etc/ssl/certs/ca-certificates.crt ${pkgdir}/usr/share/apps/kssl/ca-bundle.crt
|
ln -sf /etc/ssl/certs/ca-certificates.crt ${pkgdir}/usr/share/apps/kssl/ca-bundle.crt
|
||||||
|
# remove wastes of KDE SC, which does nothing on Plamsa
|
||||||
|
rm -rf ${pkgdir}/etc/xdg/menus
|
||||||
|
rm -rf ${pkgdir}/usr/share/doc
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user