desktop/kdepim-runtime/PKGBUILD
2010-10-01 22:31:29 +02:00

78 lines
1.8 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-runtime
#
# package info
#
pkgname=${_origname}
arch=('i686' 'x86_64')
pkgver=${_kdever}
pkgrel=1
pkgdesc="KDE Pim Runtime"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
install=${_origname}.install
options=('docs' '!splithdr')
provides=("${_origname}=${_kdever}")
conflicts=("kdemod-${_origname}")
depends=("kdepimlibs>=${_kdever}" "kdebase-runtime>=${_kdever}" "kdelibs>=${_kdever}")
makedepends=('pkgconfig' 'cmake' 'automoc4')
groups=("kde" "kde-complete" "kde-uninstall" "kde-minimal")
source=("ftp://ftp.gwdg.de/pub/x11/kde/stable/kdepim-4.4.6/src/${_origname}-4.4.6.tar.bz2")
md5sums=('b690b2f0e926d03fc1c6c51a9bb14fdd') # kdepim-runtime-4.4.6.tar.bz2
#
# build and install
#
build()
{
msg "starting build ..."
cd ${srcdir}
mkdir build
cd build
cmake ../${_origname}-4.4.6 \
-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
make DESTDIR=${pkgdir} install || return 1
# # 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/chakra/patches/${_origname} &>/dev/null
# for i in ${startdir}/*.patch; do
# msg "$i"
# cp $i ${pkgdir}/usr/share/chakra/patches/${_origname}/ &>/dev/null
# done
# else
# warning "no patches found, skipping to include them into the package..."
# fi
}