summaryrefslogtreecommitdiff
path: root/nonprism/kdepim/PKGBUILD
blob: af613ff1e786d874065ad303fef876c330edbdbf (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# $Id: PKGBUILD 249390 2015-10-15 16:47:51Z 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>
pkgbase=kdepim
pkgname=(akonadiconsole kaddressbook kmail knotes
         korganizer libkdepim)
pkgver=15.08.2
pkgrel=2.nonprism1
arch=('i686' 'x86_64')
url='http://pim.kde.org'
license=('GPL' 'LGPL' 'FDL')
groups=('kde-applications' 'kdepim')
makedepends=(extra-cmake-modules kdepim-runtime qt5-tools grantlee-qt5 kdoctools knewstuff khtml
             ktexteditor kdnssd kldap libktnef boost kontactinterface kxmlrpcclient kblog akonadi-search)
source=("http://download.kde.org/stable/applications/$pkgver/src/$pkgbase-$pkgver.tar.xz"
        kdepim-bug351395.patch::"https://quickgit.kde.org/?p=kdepim.git&a=commitdiff&h=7744a921&o=plain")
sha1sums=('b6c9d899a937de5e90d03d2377bf72381ce7319b'
          'd680fc640bf909d6f8b8f6a4481b8959c91a832a')

prepare() {
	mkdir -p build

	cd $pkgbase-$pkgver
	# Fix crash when composing new message https://bugs.kde.org/show_bug.cgi?id=351395
	patch -p1 -i ../kdepim-bug351395.patch
}

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

package_akonadiconsole() {
	pkgdesc='Akonadi Management and Debugging Console, without Google Drive support'
	depends=('libkdepim')
	conflicts=("kdepim-$pkgname")
	url='http://pim.kde.org'
	install='kdepim.install'
	cd build/akonadiconsole
	make DESTDIR="$pkgdir" install
}

package_kaddressbook() {
	pkgdesc='Contact Manager, without Google Drive support'
	depends=('libkdepim' 'kontactinterface')
        conflicts=("kdepim-$pkgname")
	url="http://kde.org/applications/office/kaddressbook/"
	install='kaddressbook.install'
	for _i in kaddressbook plugins/kaddressbook; do
	    cd "$srcdir"/build/$_i
	    make DESTDIR="$pkgdir" install
	done
}

package_kmail() {
	pkgdesc='Mail Client, without Google Drive support'
	depends=('libkdepim' 'kontactinterface' 'kio-pim')
        conflicts=("kdepim-$pkgname")
	url="http://kde.org/applications/internet/kmail/"
	install='kmail.install'
	for _i in kmail agents/archivemailagent agents/mailfilteragent \
	  storageservicemanager importwizard libksieve messagelist grantleeeditor mboximporter sieveeditor; do
	  cd "$srcdir"/build/$_i
	  make DESTDIR="$pkgdir" install
	done
        for _i in akonadi_archivemail_agent kmail importwizard sieveeditor; do
          cd "$srcdir"/build/doc/$_i
          make DESTDIR="$pkgdir" install
        done
}

package_knotes() {
	pkgdesc='Popup Notes, without Google Drive support'
	depends=('libkdepim' 'kontactinterface')
        conflicts=("kdepim-$pkgname")
	url="http://kde.org/applications/utilities/knotes/"
	install='kdepim.install'
	cd "$srcdir"/build/knotes
	make DESTDIR="$pkgdir" install
	cd "$srcdir"/build/agents/notesagent
	make DESTDIR="$pkgdir" install
	cd "$srcdir"/build/doc/knotes
	make DESTDIR="$pkgdir" install
        cd "$srcdir"/build/doc/akonadi_notes_agent
        make DESTDIR="$pkgdir" install
}

package_korganizer() {
	pkgdesc='Calendar and Scheduling Program, without Google Drive support'
	depends=('libkdepim' 'kontactinterface')
        conflicts=("kdepim-$pkgname")
	url="http://kde.org/applications/office/korganizer"
	install='korganizer.install'
	for _i in korganizer korgac; do
	  cd "$srcdir"/build/$_i
	  make DESTDIR="$pkgdir" install
	done
	cd "$srcdir"/build/doc/korganizer
	make DESTDIR="$pkgdir" install
}

package_libkdepim() {
	pkgdesc='Common libraries and resources for KDE PIM applications, without Google Drive support'
        groups=()
	depends=('kdepim-runtime' 'grantlee-qt5' 'akonadi-search' 'knewstuff' 'kldap' 'kdnssd' 'libktnef')
        conflicts=('kdepim-libkdepim' 'kdepim-kjots' 'kdepim-knode' 'kdepim-kresources' 'kdepim-ktimetracker')
	url='http://pim.kde.org'
	install=kdepim.install
	for _i in agents/sendlateragent calendarsupport grantleetheme incidenceeditor-ng kdgantt2 libkdepim \
	  accountwizard icons libkdepimdbusinterfaces libkleo libkpgp mailcommon mailimporter \
	  messagecomposer messagecore messageviewer noteshared templateparser calendarviews agents/followupreminderagent \
	  plugins/messageviewer pimcommon pimsettingexporter kaddressbookgrantlee; do
		cd "$srcdir"/build/$_i
		make DESTDIR="$pkgdir" install
	done
        for _i in akonadi_sendlater_agent akonadi_followupreminder_agent contactthemeeditor headerthemeeditor pimsettingexporter; do 
          cd "$srcdir"/build/doc/$_i
          make DESTDIR="$pkgdir" install
        done

	mkdir -p "$pkgdir"/etc/xdg
	install -m644 "$srcdir"/$pkgbase-$pkgver/kdepim.categories "$pkgdir"/etc/xdg
}