desktop/kdenetwork/PKGBUILD
2010-06-27 15:29:22 +00:00

208 lines
5.5 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=kdenetwork
#
# package info
#
pkgbase=('kdenetwork')
pkgname=('kdenetwork-common'
'kdenetwork-doc'
'kdenetwork-kget'
'kdenetwork-kopete'
'kdenetwork-kppp'
'kdenetwork-krdc'
'kdenetwork-krfb')
arch=('i686' 'x86_64')
pkgver=${_kdever}
pkgrel=1
pkgdesc="split package"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
options=('docs' '!splithdr')
makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost' 'speex' 'ortp' 'libotr'
'qca-ossl' "kdebase-workspace>=${_kdever}"
"kdebase>=${_kdever}" 'libvncserver' 'libmsn'
'ppp' 'libv4l' 'libidn' 'rdesktop' 'qimageblitz' 'libxss' 'libxdamage'
'libgadu' 'telepathy-qt4' 'meanwhile' 'mediastreamer' 'kwebkitpart-svn')
source=($_mirror/${_origname}-$_kdever.tar.bz2 \
'lisa.daemon'
"gcc45.patch")
md5sums=('597e8c8259a625088defbaed322119f6' # kdenetwork-4.4.5.tar.bz2
'66069c83fd5fa0df5d743d4486799033' # lisa.daemon
'8d509b4a541704606f9688bcd4e38a61') # gcc45.patch
#
# build function
#
build()
{
cd ${srcdir}/${_origname}-${pkgver}
msg "applying patches ..."
# this patch is not needed by ArchLinux - we just use an older gcc version
patch -Np1 -i $startdir/gcc45.patch || return 1
msg "starting build ..."
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DWITH_Xmms=OFF \
-DWITH_Decibel=OFF \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make || return 1
}
#
# split-install functions
#
package_kdenetwork-common()
{
pkgdesc="KDE Network - Common files and libraries"
depends=("kdelibs>=${_kdever}" 'smbclient')
conflicts=("kdemod-${_origname}-common")
groups=("kde" "complete" "${_origname}" "uninstall")
install=${_origname}.install
splitdirs="filesharing kdnssd strigi-analyzer"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install
done
# install lisa network daemon
install -D -m 755 ${srcdir}/lisa.daemon ${pkgdir}/etc/rc.d/kde-lisa
# 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_kdenetwork-doc()
{
pkgdesc="KDE Network - Documentation"
depends=("${_origname}-common>=${_kdever}")
groups=("kde-complete" "${_origname}" "kde-doc" "kde-uninstall")
splitdirs="doc"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdenetwork-kget()
{
pkgdesc="Download manager"
depends=("${_origname}-common>=${_kdever}" "kdebase-workspace>=${_kdever}" 'qca' 'kwebkitpart-svn')
conflicts=("kdemod-${_origname}-kget")
groups=("kde" "kde-complete" "${_origname}" "kde-uninstall")
install=${_origname}.install
splitdirs="kget"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdenetwork-kopete()
{
pkgdesc="Kopete, the instant messenger"
depends=("kdebase-runtime>=${_kdever}" "kdepimlibs>=${_kdever}"
'qca-ossl' 'libotr' 'libmsn' 'libidn' 'qimageblitz' 'libxss' 'libv4l' 'libgadu' 'meanwhile' 'mediastreamer')
conflicts=("kdemod-${_origname}-kopete")
groups=("kde" "kde-complete" "${_origname}" "kde-uninstall")
replaces=('kdenetwork-kopete-devel')
install=${_origname}.install
splitdirs="kopete"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdenetwork-kppp()
{
pkgdesc="PPP Client"
depends=("${_origname}-common>=${_kdever}" 'ppp')
conflicts=("kdemod-${_origname}-kppp")
groups=("kde-complete" "${_origname}" "kde-uninstall")
install=${_origname}.install
splitdirs="kppp"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdenetwork-krdc()
{
pkgdesc="Desktop Sharing Client"
depends=("${_origname}-common>=${_kdever}" 'libvncserver' 'rdesktop' 'telepathy-qt4')
conflicts=("kdemod-${_origname}-krdc")
groups=("kde-complete" "${_origname}" "kde-uninstall")
replaces=('kdenetwork-krdc-devel')
install=${_origname}.install
splitdirs="krdc"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdenetwork-krfb()
{
pkgdesc="Desktop Sharing Server"
# note on libxdamage:
# not detected by namcap because libgl depends on it
# but nvidia providing libgl does not depend on libxdamage
depends=("kdebase-runtime>=${_kdever}" "kdelibs>=${_kdever}" 'libvncserver' 'libxdamage')
conflicts=("kdemod-${_origname}-krfb")
groups=("kde-complete" "${_origname}" "kde-uninstall")
install=${_origname}.install
splitdirs="krfb"
for i in ${splitdirs} ; do
cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1
done
}