mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
68 lines
2.2 KiB
Bash
68 lines
2.2 KiB
Bash
#
|
|
# KDE SC Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname="kde-runtime"
|
|
arch=('x86_64')
|
|
pkgver=${_kdever}
|
|
pkgrel=1
|
|
pkgdesc="KDE Runtime"
|
|
url="http://www.kde.org"
|
|
license=('GPL' 'LGPL' 'FDL')
|
|
options=('docs' '!splithdr' 'debug' 'log')
|
|
depends=("kdelibs>=${_kdever}" "nepomuk-core>=${_kdever}" "kactivities>=${_kdever}" 'oxygen-icons'
|
|
'xorg-xauth' 'hicolor-icon-theme' 'samba' 'rarian' 'libssh' 'libpulse' 'libssh'
|
|
'libcanberra' 'sound-theme-freedesktop')
|
|
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdepimlibs>=${_kdever}" 'openslp' 'docbook-xsl'
|
|
'networkmanager' 'xine-lib' 'libcanberra-pulse' 'soprano')
|
|
optdepends=('htdig: to build the search index' 'gdb: drkonq crash handler')
|
|
groups=("kde" "kde-minimal" "kde-uninstall")
|
|
replaces=('kdebase-runtime' 'kde-runtime-doc')
|
|
provides=('kdebase-runtime' 'kde-runtime-doc')
|
|
conflicts=('kdebase-runtime' 'kde-runtime-doc')
|
|
install=kde-runtime.install
|
|
noextract=(branding.svgz)
|
|
|
|
source=($_mirror/${pkgname}-$_kdever.tar.xz
|
|
'branding.svgz')
|
|
|
|
sha1sums=(`grep ${pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`
|
|
'e9a8617448523aacd70dd66f2ffc62a827af027b') # branding.svgz
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
# copy our branding stuff
|
|
cp -f ${srcdir}/branding.svgz ${srcdir}/${pkgname}-${pkgver}/desktoptheme/oxygen/widgets/
|
|
cp -f ${srcdir}/branding.svgz ${srcdir}/${pkgname}-${pkgver}/desktoptheme/air/widgets/
|
|
|
|
rm -rf build
|
|
mkdir build && cd build
|
|
|
|
msg "starting build ..."
|
|
cmake .. -DCMAKE_BUILD_TYPE=${_build_type} \
|
|
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
-DWITH_PulseAudio=ON \
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}/build
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
# put kdesu into the path
|
|
cp ${pkgdir}/usr/lib/kde4/libexec/kdesu ${pkgdir}/usr/bin/kdesu
|
|
|
|
# WORKAROUND, conflict with hicolor-icon-theme
|
|
rm -rf ${pkgdir}/usr/share/icons/hicolor/index.theme
|
|
rm -rf ${pkgdir}/usr/share/icons/default.kde4
|
|
}
|
|
sha1sums=('cdc9d25ffa4e6758a1f2c37105df0dd5c4e531db'
|