mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
213 lines
5.9 KiB
Bash
213 lines
5.9 KiB
Bash
#
|
|
# KDE SC Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer: <abveritas[at]chakra-project[dog]org>
|
|
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
#
|
|
# package info
|
|
#
|
|
pkgbase=('kdeartwork')
|
|
pkgname=('kdeartwork-aurorae'
|
|
'kdeartwork-colorschemes'
|
|
'kdeartwork-desktopthemes'
|
|
'kdeartwork-emoticons'
|
|
'kdeartwork-iconthemes'
|
|
'kdeartwork-screensavers'
|
|
'kdeartwork-sounds'
|
|
'kdeartwork-styles'
|
|
'kdeartwork-wallpapers'
|
|
'kdeartwork-weatherwallpapers')
|
|
|
|
arch=('i686' 'x86_64')
|
|
pkgver=${_kdever}
|
|
pkgrel=2
|
|
pkgdesc="split package"
|
|
url="http://www.kde.org/"
|
|
license=('GPL' 'LGPL' 'FDL')
|
|
install=${pkgbase}.install
|
|
makedepends=('pkgconfig' 'cmake' 'automoc4' 'xscreensaver' 'eigen' "kde-workspace>=${_kdever}")
|
|
|
|
source=($_mirror/${pkgbase}-$_kdever.tar.xz
|
|
http://www.kde-look.org/CONTENT/content-files/92545-xscreensaver.tar.bz2)
|
|
|
|
md5sums=(`grep ${pkgbase}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`
|
|
'e44e5e6ff9dd2fe66aba7313f7ff1d22') # 92545-xscreensaver.tar.bz2
|
|
|
|
#
|
|
# build function
|
|
#
|
|
build() {
|
|
cd ${srcdir}/${pkgbase}-${pkgver}
|
|
|
|
msg "starting build ..."
|
|
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
|
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
|
|
|
make || return 1
|
|
}
|
|
|
|
#
|
|
# split-install functions
|
|
#
|
|
package_kdeartwork-aurorae() {
|
|
pkgdesc='An Aurorae theme based on the Oxygen plasma theme'
|
|
depends=("kde-workspace>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-uninstall")
|
|
conflicts=("kdeartwork-common")
|
|
|
|
splitdirs="aurorae"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdeartwork-colorschemes() {
|
|
pkgdesc="KDE Artwork - Color Schemes"
|
|
depends=("kde-workspace>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-uninstall")
|
|
conflicts=("kdeartwork-common")
|
|
|
|
splitdirs="ColorSchemes"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdeartwork-desktopthemes() {
|
|
pkgdesc="KDE Artwork - Additional Desktop Themes"
|
|
depends=("kde-workspace>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-uninstall")
|
|
conflicts=("kdeartwork-common")
|
|
|
|
splitdirs="desktopthemes"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
|
|
# use transparent panel svg's everywhere
|
|
# FIXME Elegance Silicon Clean-Blend Aya heron
|
|
for n in slim-glow; do
|
|
echo "Debug: We are in theme $n"
|
|
cp -fv ${pkgdir}/usr/share/apps/desktoptheme/$n/widgets/panel-background.svgz ${pkgdir}/usr/share/apps/desktoptheme/$n/opaque/widgets/panel-background.svgz
|
|
done
|
|
}
|
|
|
|
package_kdeartwork-emoticons() {
|
|
pkgdesc="KDE Artwork - Additional Emoticons"
|
|
depends=("kde-workspace>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-uninstall")
|
|
conflicts=("kdeartwork-common")
|
|
|
|
splitdirs="emoticons"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdeartwork-iconthemes() {
|
|
pkgdesc="KDE Artwork - Additional Icon Themes"
|
|
depends=("kde-workspace>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-uninstall")
|
|
conflicts=("kdeartwork-common")
|
|
|
|
splitdirs="IconThemes"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdeartwork-screensavers() {
|
|
pkgdesc="KDE Artwork - Screen Savers"
|
|
depends=("kde-workspace>=${_kdever}" "eigen")
|
|
groups=("${pkgbase}" "kde" "kde-uninstall")
|
|
conflicts=("kdeartwork-common")
|
|
optdepends=('xscreensaver: More screensavers')
|
|
|
|
splitdirs="kscreensaver"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
|
|
pushd $srcdir/xscreensaver
|
|
mkdir -p ${pkgdir}/usr/share/kde4/services/ScreenSavers
|
|
cp -f *.desktop ${pkgdir}/usr/share/kde4/services/ScreenSavers
|
|
popd
|
|
}
|
|
|
|
package_kdeartwork-kwinstyles() {
|
|
pkgdesc="KDE Artwork - Window Decoration Styles for KWin"
|
|
depends=("kde-workspace>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-uninstall")
|
|
conflicts=("kdeartwork-common")
|
|
|
|
splitdirs="kwin-styles"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdeartwork-sounds() {
|
|
pkgdesc="KDE Artwork - Sounds"
|
|
depends=("kde-workspace>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-uninstall")
|
|
conflicts=("kdeartwork-common")
|
|
|
|
splitdirs="sounds"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdeartwork-styles() {
|
|
pkgdesc="KDE Artwork - Additional Widget Styles"
|
|
depends=("kde-workspace>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-uninstall")
|
|
conflicts=("kdeartwork-common")
|
|
|
|
splitdirs="styles"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdeartwork-wallpapers() {
|
|
pkgdesc="KDE Artwork - Additional Wallpapers"
|
|
depends=("kde-workspace>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-uninstall")
|
|
conflicts=("kdeartwork-common")
|
|
|
|
splitdirs="wallpapers"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdeartwork-weatherwallpapers() {
|
|
pkgdesc="KDE Artwork - Additional Wallpapers for the Plasma weather plugin"
|
|
depends=("kde-workspace>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-uninstall")
|
|
conflicts=("kdeartwork-common")
|
|
|
|
splitdirs="WeatherWallpapers"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|