2010-05-24 23:27:39 +08:00
|
|
|
#
|
|
|
|
# KDE SC Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
|
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
|
|
|
#
|
|
|
|
# package info
|
|
|
|
#
|
2011-07-23 02:02:15 +08:00
|
|
|
pkgbase=('kdetoys')
|
2012-02-06 04:46:15 +08:00
|
|
|
pkgname=('kdetoys-amor'
|
2010-05-24 23:27:39 +08:00
|
|
|
'kdetoys-kteatime'
|
2010-07-09 04:29:54 +08:00
|
|
|
'kdetoys-ktux')
|
2010-05-24 23:27:39 +08:00
|
|
|
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
pkgver=${_kdever}
|
2010-11-28 05:20:37 +08:00
|
|
|
pkgrel=1
|
2010-05-24 23:27:39 +08:00
|
|
|
pkgdesc="split package"
|
|
|
|
url="http://www.kde.org"
|
|
|
|
license=('GPL' 'LGPL' 'FDL')
|
|
|
|
|
2010-12-15 22:51:53 +08:00
|
|
|
options=('docs' '!splithdr' 'splitdbg' 'log')
|
2010-05-24 23:27:39 +08:00
|
|
|
|
2011-07-23 02:02:15 +08:00
|
|
|
makedepends=('pkgconfig' 'cmake' 'automoc4' "kde-workspace>=${_kdever}")
|
2010-05-24 23:27:39 +08:00
|
|
|
|
2012-03-30 09:38:15 +08:00
|
|
|
source=($_mirror/${pkgbase}-$_kdever.tar.xz)
|
|
|
|
md5sums=(`grep ${pkgbase}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`)
|
2010-05-24 23:27:39 +08:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# build function
|
|
|
|
#
|
2012-02-06 04:46:15 +08:00
|
|
|
build() {
|
2011-06-05 05:12:32 +08:00
|
|
|
cd ${srcdir}/${pkgbase}-${pkgver}
|
2010-05-24 23:27:39 +08:00
|
|
|
|
|
|
|
# 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
|
|
|
|
#
|
2012-02-06 04:46:15 +08:00
|
|
|
package_kdetoys-amor() {
|
2010-05-24 23:27:39 +08:00
|
|
|
pkgdesc="Amusing Misuse Of Resources puts comic figures above your windows"
|
2012-02-06 04:46:15 +08:00
|
|
|
conflicts=("kdetoys-common" "kdetoys-doc")
|
2011-06-05 05:12:32 +08:00
|
|
|
groups=("kde" "kdetoys" "kde-uninstall")
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('accessories')
|
2011-06-05 05:12:32 +08:00
|
|
|
install=${pkgbase}.install
|
2010-05-24 23:27:39 +08:00
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
splitdirs="amor doc/amor"
|
2010-05-24 23:27:39 +08:00
|
|
|
for i in ${splitdirs} ; do
|
2011-06-05 05:12:32 +08:00
|
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
2010-05-24 23:27:39 +08:00
|
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
package_kdetoys-eyesapplet() {
|
2010-05-24 23:27:39 +08:00
|
|
|
pkgdesc="An applet similar to XEyes"
|
2011-07-23 02:02:15 +08:00
|
|
|
conflicts=("kdetoys-common")
|
2011-06-05 05:12:32 +08:00
|
|
|
groups=("kde" "kdetoys" "kde-uninstall")
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('accessories')
|
2011-06-05 05:12:32 +08:00
|
|
|
install=${pkgbase}.install
|
2010-05-24 23:27:39 +08:00
|
|
|
|
|
|
|
splitdirs="eyesapplet"
|
|
|
|
for i in ${splitdirs} ; do
|
2011-06-05 05:12:32 +08:00
|
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
2010-05-24 23:27:39 +08:00
|
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
package_kdetoys-kteatime() {
|
2010-05-24 23:27:39 +08:00
|
|
|
pkgdesc="System tray applet that makes sure your tea doesn't get too strong"
|
2012-02-06 04:46:15 +08:00
|
|
|
conflicts=("kdetoys-common" "kdetoys-doc")
|
2011-06-05 05:12:32 +08:00
|
|
|
groups=("kde" "kdetoys" "kde-uninstall")
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('accessories')
|
2011-06-05 05:12:32 +08:00
|
|
|
install=${pkgbase}.install
|
2010-05-24 23:27:39 +08:00
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
splitdirs="kteatime doc/kteatime"
|
2010-05-24 23:27:39 +08:00
|
|
|
for i in ${splitdirs} ; do
|
2011-06-05 05:12:32 +08:00
|
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
2010-05-24 23:27:39 +08:00
|
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
package_kdetoys-ktux() {
|
2010-05-24 23:27:39 +08:00
|
|
|
pkgdesc="Tux-in-a-Spaceship screen saver"
|
2011-07-23 02:02:15 +08:00
|
|
|
conflicts=("kdetoys-common")
|
2011-06-05 05:12:32 +08:00
|
|
|
groups=("kde" "kdetoys" "kde-uninstall")
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('accessories')
|
2011-06-05 05:12:32 +08:00
|
|
|
install=${pkgbase}.install
|
2010-05-24 23:27:39 +08:00
|
|
|
|
|
|
|
splitdirs="ktux"
|
|
|
|
for i in ${splitdirs} ; do
|
2011-06-05 05:12:32 +08:00
|
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
2010-05-24 23:27:39 +08:00
|
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
done
|
|
|
|
}
|
2011-07-23 02:02:15 +08:00
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
package_kdetoys-kweather() {
|
2011-07-23 02:02:15 +08:00
|
|
|
pkgdesc="Kicker applet that will display the current weather outside"
|
|
|
|
conflicts=("kdetoys-common")
|
|
|
|
groups=("kde" "kdetoys" "kde-uninstall")
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('accessories')
|
2011-07-23 02:02:15 +08:00
|
|
|
install=${pkgbase}.install
|
|
|
|
|
|
|
|
splitdirs="kweather"
|
|
|
|
for i in ${splitdirs} ; do
|
|
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
done
|
|
|
|
}
|