desktop/kdetoys/PKGBUILD

179 lines
4.3 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
# original name (used for the source and pkgnames)
_origname=kdetoys
#
# package info
#
pkgbase=('kdetoys')
pkgname=('kdetoys-common'
'kdetoys-doc'
'kdetoys-amor'
'kdetoys-kteatime'
'kdetoys-ktux')
# 'kdetoys-kweather')
arch=('i686' 'x86_64')
pkgver=${_kdever}
pkgrel=1
pkgdesc="split package"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
options=('docs')
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdebase-workspace>=${_kdever}")
source=($_mirror/${_origname}-$_kdever.tar.bz2)
md5sums=('24032d792869fae3ca7df5b3908b0da1') # kdetoys-4.4.92.tar.bz2
#
# build function
#
build()
{
cd ${srcdir}/${_origname}-${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-common()
{
pkgdesc="${_origname} - Common files and libraries"
depends=("kdebase-workspace>=${_kdever}")
conflicts=("kdemod-${_origname}-common")
groups=("kde-complete" "kdetoys" "kde-uninstall")
install=${_origname}.install
# # include our patches into the package
# ls -1 ${startdir}/*.patch &>/dev/null 2>&1
# if [ "$?" = "0" ]; then
# warning "incuding patches into package"
# mkdir -p ${pkgdir}/usr/share/kdemod/patches/${_origname} &>/dev/null
# for i in ${startdir}/*.patch; do
# msg "$i"
# cp $i ${pkgdir}/usr/share/kdemod/patches/${_origname}/ &>/dev/null
# done
# else
# warning "no patches found, skipping to include them into the package..."
# fi
}
package_kdetoys-doc()
{
pkgdesc="${_origname} - Documentation"
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-doc")
groups=("kde-complete" "kdetoys" "kde-doc" "kde-uninstall")
splitdirs="doc"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdetoys-amor()
{
pkgdesc="Amusing Misuse Of Resources puts comic figures above your windows"
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-amor")
groups=("kde-complete" "kdetoys" "kde-uninstall")
install=${_origname}.install
splitdirs="amor"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdetoys-eyesapplet()
{
pkgdesc="An applet similar to XEyes"
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-eyesapplet")
groups=("kde-complete" "kdetoys" "kde-uninstall")
install=${_origname}.install
splitdirs="eyesapplet"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${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"
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-kteatime")
groups=("kde-complete" "kdetoys" "kde-uninstall")
install=${_origname}.install
splitdirs="kteatime"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdetoys-ktux()
{
pkgdesc="Tux-in-a-Spaceship screen saver"
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-ktux")
groups=("kde-complete" "kdetoys" "kde-uninstall")
install=${_origname}.install
splitdirs="ktux"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdetoys-kweather()
{
pkgdesc="Kicker applet that will display the current weather outside"
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-kweather")
groups=("kde-complete" "kdetoys" "kde-uninstall")
install=${_origname}.install
splitdirs="kweather"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}