desktop/kdepim/PKGBUILD
2010-07-10 02:25:02 +00:00

365 lines
10 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=kdepim
#
# package info
#
pkgbase=('kdepim')
pkgname=('kdepim-common'
'kdepim-doc'
'kdepim-akonadiconsole'
'kdepim-akregator'
'kdepim-blogilo'
'kdepim-kaddressbook'
'kdepim-kalarm'
'kdepim-kjots'
'kdepim-kmail'
'kdepim-knode'
'kdepim-knotes'
'kdepim-kontact'
'kdepim-korganizer'
'kdepim-ktimetracker'
'kdepim-wizards')
# disabled for now because of outdated/unfinished opensync:
# kitchensync kmobiletools
arch=('i686' 'x86_64')
#pkgver=${_kdever}
pkgver=4.5beta1
_pkgver=4.5-beta1
pkgrel=1
pkgdesc="split package"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
options=('docs' '!splithdr')
makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost' "kdelibs>=${_kdever}" "kdepimlibs>=${_kdever}"
"kdepim-runtime>=${pkgver}" 'gnokii' 'libxss' "kdebase-runtime>=${_kdever}" 'pilot-link'
'kde-agent' 'libindicate-qt>=0.2.2' 'grantlee-git')
source=("$_mirror/${_origname}-${_pkgver}.tar.bz2")
md5sums=('38273d4c88ea967eecaf3ef86fd49ff9') # kdepim-4.5-beta1.tar.bz2
#
# build function
#
build()
{
cd ${srcdir}/${_origname}-${_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_kdepim-common()
{
pkgdesc="KDE PIM - Common files and libraries"
depends=("kdepimlibs>=${_kdever}" 'gnokii' 'libxss' "kdebase-runtime>=${_kdever}" 'pilot-link' 'kde-agent'
'libxss' 'libindicate-qt>=0.2.2' "kdepim-runtime>=${pkgver}")
conflicts=("kdmeod-${_origname}-common")
replaces=('kdepim-common-devel')
groups=("kde" "kdepim" "kde-complete" "kde-uninstall")
install=${_origname}.install
# FIXME nepomuk_email_feeder disabled
#splitdirs="akonadi icons console kdgantt1 kleopatra kode kresources ksendemail libkdepim libkholidays libkleo libkpgp libksieve messagecore messagelist messageviewer mimelib nepomuk_email_feeder ontologies plugins strigi-analyzer"
splitdirs="akonadi icons console kdgantt1 kleopatra kode kresources ksendemail libkdepim libkholidays libkleo libkpgp libksieve messagecore messagelist messageviewer mimelib ontologies plugins strigi-analyzer"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
# # 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
# FIXME: also exists in oxygen-icons
rm -rf $pkgdir/usr/share/icons/oxygen/16x16/status/meeting-organizer.png
}
package_kdepim-doc()
{
pkgdesc="KDE PIM - Documentation"
groups=("${_origname}" "kde-complete" "kde-doc" "kde-uninstall")
conflicts=("kdmeod-${_origname}-doc")
depends=("${_origname}-common>=${_kdever}")
splitdirs="doc"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-akonadiconsole()
{
pkgdesc="Akonadi console"
groups=("kde-complete" "${_origname}" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-akonadiconsole")
replaces=("kdepim-akonadiconsole-devel")
install=${_origname}.install
splitdirs="akonadiconsole"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-akregator()
{
pkgdesc="Newsfeed client"
groups=("kde" "kde-complete" "${_origname}" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-akregator")
replaces=("kdepim-akregator-devel")
install=${_origname}.install
splitdirs="akregator"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-blogilo()
{
pkgdesc="Blogilo is a free/Open Source Blogging application, focused on simplicity and usability."
groups=("kde" "kde-complete" "${_origname}" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-blogilo")
replaces=("kdepim-blogilo-devel")
install=${_origname}.install
splitdirs="blogilo"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-kaddressbook()
{
pkgdesc="Addressbook"
groups=("kde" "${_origname}" "kde-complete" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-kaddressbook")
replaces=('kdepim-kaddressbook-devel')
install=${_origname}.install
splitdirs="kaddressbook"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-kalarm()
{
pkgdesc="Alarm App + Daemon"
groups=("kde-complete" "${_origname}" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-kalarm")
install=${_origname}.install
splitdirs="kalarm"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-kitchensync()
{
pkgdesc="Opensync synchronization gui"
groups=("kde-complete" "${_origname}" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}" 'libopensync')
conflicts=("kdemod-${_origname}-kitchensync")
install=${_origname}.install
splitdirs="kitchensync"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-kjots()
{
pkgdesc="A small, handy program for keeping miscellaneous notes"
groups=("kde-complete" "${_origname}" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}" 'grantlee-git')
conflicts=("kdemod-${_origname}-kjots")
install=${_origname}.install
splitdirs="kjots"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-kmail()
{
pkgdesc="A full-featured E-Mail client"
groups=("kde" "${_origname}" "kde-complete" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-kmail")
replaces=('kdepim-kmail-devel')
install=${_origname}.install
splitdirs="kmail kmailcvt"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-kmobiletools()
{
pkgdesc="Sync your mobile phone"
groups=("kde-complete" "${_origname}" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}" 'gnokii>=0.6.14')
conflicts=("kdemod-${_origname}-kmobiletools")
install=${_origname}.install
splitdirs="kmobiletools"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-knode()
{
pkgdesc="NNTP client"
groups=("kde-complete" "${_origname}" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-knode")
install=${_origname}.install
splitdirs="knode"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-knotes()
{
pkgdesc="Sticky notes for your Desktop"
groups=("kde" "${_origname}" "kde-complete" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-knotes")
install=${_origname}.install
splitdirs="knotes"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-kontact()
{
pkgdesc="Groupware client and shell for other PIM applications"
groups=("${_origname}" "complete" "uninstall")
depends=("${_origname}-common>=${_kdever}" "${_origname}-kmail>=${_kdever}" "${_origname}-akregator>=${_kdever}" "${_origname}-kaddressbook>=${_kdever}" "${_origname}-kjots>=${_kdever}" "${_origname}-knotes>=${_kdever}" "${_origname}-korganizer>=${_kdever}" "${_origname}-ktimetracker>=${_kdever}" "${_origname}-wizards>=${_kdever}")
conflicts=("kdemod-${_origname}-kontact")
install=${_origname}.install
splitdirs="kontact kontactinterfaces"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-korganizer()
{
pkgdesc="Organizer and Planner"
groups=("kde" "${_origname}" "kde-complete" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-korganizer")
install=${_origname}.install
splitdirs="korganizer"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
# remove conflict with kdebase-runtime
rm -f ${pkgdir}/usr/share/icons/oxygen/32x32/actions/appointment-new.png
}
package_kdepim-ktimetracker()
{
pkgdesc="Time tracking software"
groups=("kde-complete" "${_origname}" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-ktimetracker")
install=${_origname}.install
splitdirs="ktimetracker"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdepim-wizards()
{
pkgdesc="KDE groupware wizards"
groups=("kde-complete" "${_origname}" "kde-uninstall")
depends=("${_origname}-common>=${_kdever}")
conflicts=("kdemod-${_origname}-wizards")
install=${_origname}.install
splitdirs="wizards"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${_pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}