summaryrefslogtreecommitdiff
path: root/nonprism/kdepim-runtime/PKGBUILD
blob: 518ea2beaae6c50da9dd81479f3f94cc66069302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $Id: PKGBUILD 248353 2015-10-04 20:32:46Z arojas $
# Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
# Contributor (Arch): Pierre Schmitz <pierre@archlinux.de>
# Maintainer: André Silva <emulatorman@parabola.nu>

pkgname=kdepim-runtime
pkgver=15.08.1
pkgrel=4.nonprism1
pkgdesc='Extends the functionality of kdepim, without libkgapi support'
arch=('i686' 'x86_64')
url='https://projects.kde.org/projects/kde/kdepim-runtime'
license=('GPL' 'LGPL' 'FDL')
depends=(hicolor-icon-theme qt5-quick1 libkolab akonadi-socialutils akonadi-calendar
         knotifyconfig kross kalarmcal kmbox kimap kde-syndication)
makedepends=(extra-cmake-modules kdoctools boost)
install=$pkgname.install
source=("http://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz" kdepim-runtime-bug338658.patch
	ical-resource.patch::"https://quickgit.kde.org/?p=kdepim-runtime.git&a=commitdiff&h=1612e91&o=plain")
sha1sums=('fcab275175a82152ee2345a8657e0ab238f7033a'
          '4d0bcdb3887f1146d289471d7e2494e2a76bb8bd'
          '5c6f5128ca2a56124e4c0b09a911c7979d682466')

prepare() {
  mkdir -p build

# Fix https://bugs.kde.org/show_bug.cgi?id=338658
  cd $pkgname-$pkgver
  patch -p1 -i ../kdepim-runtime-bug338658.patch
# Fix saving ical resources https://bugs.kde.org/show_bug.cgi?id=352693
  patch -p1 -i ../ical-resource.patch
}

build() {
  cd build
  cmake ../$pkgname-$pkgver \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_TESTING=OFF \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}