desktop/kdepim-runtime/PKGBUILD

57 lines
1.5 KiB
Bash
Raw Normal View History

2010-05-22 06:25:44 +08:00
#
# 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
#
2011-06-07 15:17:09 +08:00
pkgbase=kdepim-runtime
pkgname=${pkgbase}
2010-05-22 06:25:44 +08:00
arch=('i686' 'x86_64')
2011-07-23 02:02:15 +08:00
pkgver=${_kdever}
pkgrel=1
2010-05-22 06:25:44 +08:00
pkgdesc="KDE Pim Runtime"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
2011-06-07 15:17:09 +08:00
install=${pkgbase}.install
options=('docs' '!splithdr' 'splitdbg' 'log')
depends=("kdepimlibs>=${_kdever}" "kde-runtime>=${_kdever}" "kdelibs>=${_kdever}" 'prison' 'libdmtx' 'qrencode' 'libkgapi')
2012-05-27 02:32:30 +08:00
makedepends=('pkg-config' 'cmake' 'automoc4')
2011-06-07 15:17:09 +08:00
groups=("kde" "kdepim" "kde-uninstall" "kde-minimal")
2010-05-22 06:25:44 +08:00
source=($_mirror/${pkgbase}-$_kdever.tar.xz
'CMakeLists_new.diff')
md5sums=(`grep ${pkgbase}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`
'02ca119176e95b8fbb57e0c6bcc57fb4')
2010-05-22 06:25:44 +08:00
#
# build and install
#
2012-05-27 02:32:30 +08:00
build() {
cd "${srcdir}"/${pkgbase}-${pkgver}
patch -p1 -N -i ${srcdir}/CMakeLists_new.diff
2012-05-27 02:32:30 +08:00
msg "starting build ..."
2012-06-10 06:08:35 +08:00
2012-05-27 02:32:30 +08:00
cd ${srcdir}
mkdir -p build
cd build
cmake ../${pkgbase}-${pkgver} \
-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
}
2010-05-22 06:25:44 +08:00
2012-05-27 02:32:30 +08:00
package() {
2012-05-27 03:26:03 +08:00
cd ${srcdir}/build
2012-05-27 02:32:30 +08:00
make DESTDIR=${pkgdir} install
2010-05-22 06:25:44 +08:00
}