# # KDE SC Packages for Chakra, part of chakra-project.org # # maintainer (i686): Phil Miller # maintainer (x86_64): Manuel Tortosa # include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf # # package info # pkgbase=('kdetoys') pkgname=('kdetoys-amor' 'kdetoys-kteatime' 'kdetoys-ktux') arch=('i686' 'x86_64') pkgver=${_kdever} pkgrel=1 pkgdesc="split package" url="http://www.kde.org" license=('GPL' 'LGPL' 'FDL') options=('docs' '!splithdr' 'splitdbg' 'log') makedepends=('pkgconfig' 'cmake' 'automoc4' "kde-workspace>=${_kdever}") source=($_mirror/${pkgbase}-$_kdever.tar.xz) md5sums=(`grep ${pkgbase}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`) # # build function # build() { cd ${srcdir}/${pkgbase}-${pkgver} # build it 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_kdetoys-amor() { pkgdesc="Amusing Misuse Of Resources puts comic figures above your windows" conflicts=("kdetoys-common" "kdetoys-doc") groups=("kde" "kdetoys" "kde-uninstall") categories=('accessories') install=${pkgbase}.install splitdirs="amor doc/amor" for i in ${splitdirs} ; do cd ${srcdir}/${pkgbase}-${pkgver}/${i} make DESTDIR=${pkgdir} install || return 1 done } package_kdetoys-eyesapplet() { pkgdesc="An applet similar to XEyes" conflicts=("kdetoys-common") groups=("kde" "kdetoys" "kde-uninstall") categories=('accessories') install=${pkgbase}.install splitdirs="eyesapplet" for i in ${splitdirs} ; do cd ${srcdir}/${pkgbase}-${pkgver}/${i} make DESTDIR=${pkgdir} install || return 1 done } package_kdetoys-kteatime() { pkgdesc="System tray applet that makes sure your tea doesn't get too strong" conflicts=("kdetoys-common" "kdetoys-doc") groups=("kde" "kdetoys" "kde-uninstall") categories=('accessories') install=${pkgbase}.install splitdirs="kteatime doc/kteatime" for i in ${splitdirs} ; do cd ${srcdir}/${pkgbase}-${pkgver}/${i} make DESTDIR=${pkgdir} install || return 1 done } package_kdetoys-ktux() { pkgdesc="Tux-in-a-Spaceship screen saver" conflicts=("kdetoys-common") groups=("kde" "kdetoys" "kde-uninstall") categories=('accessories') install=${pkgbase}.install splitdirs="ktux" for i in ${splitdirs} ; do cd ${srcdir}/${pkgbase}-${pkgver}/${i} make DESTDIR=${pkgdir} install || return 1 done } package_kdetoys-kweather() { pkgdesc="Kicker applet that will display the current weather outside" conflicts=("kdetoys-common") groups=("kde" "kdetoys" "kde-uninstall") categories=('accessories') install=${pkgbase}.install splitdirs="kweather" for i in ${splitdirs} ; do cd ${srcdir}/${pkgbase}-${pkgver}/${i} make DESTDIR=${pkgdir} install || return 1 done }