mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
138 lines
3.0 KiB
Bash
138 lines
3.0 KiB
Bash
#
|
|
# 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
|
|
#
|
|
pkgbase=('kdetoys')
|
|
pkgname=('kdetoys-doc'
|
|
'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.bz2)
|
|
md5sums=(`grep ${pkgbase}-$_kdever.tar.bz2 ../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-doc()
|
|
{
|
|
pkgdesc="${pkgbase} - Documentation"
|
|
groups=("kde" "kdetoys" "kde-doc" "kde-uninstall")
|
|
|
|
splitdirs="doc"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdetoys-amor()
|
|
{
|
|
pkgdesc="Amusing Misuse Of Resources puts comic figures above your windows"
|
|
conflicts=("kdetoys-common")
|
|
groups=("kde" "kdetoys" "kde-uninstall")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="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")
|
|
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")
|
|
groups=("kde" "kdetoys" "kde-uninstall")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="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")
|
|
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")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="kweather"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|