summaryrefslogtreecommitdiff
path: root/nonprism/kdepim/PKGBUILD
blob: c4ac45216b766255a1a48e79a8783c7193adced3 (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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# $Id: PKGBUILD 239895 2015-05-30 08:09:25Z arojas $
# Maintainer (Arch): Andrea Scarpino <andrea@archlinux.org>
# Contributor (Arch): Pierre Schmitz <pierre@archlinux.de>
# Maintainer: André Silva <emulatorman@parabola.nu>

pkgbase=kdepim
pkgname=('kdepim-akonadiconsole'
         'kdepim-kaddressbook'
         'kdepim-kjots'
         'kdepim-kmail'
         'kdepim-knode'
         'kdepim-knotes'
         'kdepim-korganizer'
         'kdepim-libkdepim')
pkgver=4.14.9
_kdeappver=15.04.2
pkgrel=1.nonprism1
arch=('i686' 'x86_64' 'mips64el')
url='http://pim.kde.org'
license=('GPL' 'LGPL' 'FDL')
groups=('kde-applications' 'kdepim')
makedepends=('cmake' 'automoc4' 'boost' 'kdepim-runtime' 'libxss' 'pilot-link'
             'libbaloo4' 'grantlee-qt4')
source=("http://download.kde.org/stable/applications/${_kdeappver}/src/${pkgbase}-${pkgver}.tar.xz")
sha1sums=('afd7df831110ec2e188aec0e35dcc8c4fdf2ad0d')

build() {
	mkdir build
	cd build
	cmake ../${pkgbase}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DKDE4_BUILD_TESTS=OFF \
		-DCMAKE_SKIP_RPATH=ON \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDEPIM_BUILD_MOBILE=OFF \
		-DKDEPIM_STORAGESERVICE_GDRIVE=OFF
	make
}

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

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

package_kdepim-kjots() {
	pkgdesc='Note Taker, without Google Drive support'
	depends=('kdepim-libkdepim')
	url="http://kde.org/applications/utilities/kjots/"
	conflicts=('kdepim-kjots-nonprism')
	replaces=('kdepim-kjots-nonprism')
	install='kdepim.install'
	cd "${srcdir}"/build/kjots
	make DESTDIR="${pkgdir}" install
	cd "${srcdir}"/build/kontact/plugins/kjots
	make DESTDIR="${pkgdir}" install
	cd "${srcdir}"/build/doc/kjots
	make DESTDIR="${pkgdir}" install
}

package_kdepim-kmail() {
	pkgdesc='Mail Client, without Google Drive support'
    depends=('kdepim-libkdepim')
    optdepends=('kde-agent: For starting and shutting down gpg-agent with KDE session manager')
	url="http://kde.org/applications/internet/kmail/"
	install='kdepim-kmail.install'
	conflicts=('kdepim-kmailcvt' 'kdepim-ksendemail' 'kdepim-libksieve'
	           'kdepim-mimelib' 'kdepim-plugins' 'kdepim-kmail-nonprism')
	replaces=('kdepim-kmailcvt' 'kdepim-ksendemail' 'kdepim-libksieve'
	          'kdepim-mimelib' 'kdepim-plugins' 'kdepim-kmail-nonprism')
    for i in kmail kmailcvt agents/archivemailagent storageservicemanager\
      agents/mailfilteragent agents/followupreminderagent importwizard ksendemail\
      libksieve messagelist kontact/plugins/kmail grantleeeditor mboximporter; do
      cd "${srcdir}"/build/${i}
      make DESTDIR="${pkgdir}" install
    done
	cd "${srcdir}"/build/doc/kmail
	make DESTDIR="${pkgdir}" install
	cd "${srcdir}"/build/doc/sieveeditor
	make DESTDIR="${pkgdir}" install
	cd "${srcdir}"/build/doc/importwizard
	make DESTDIR="${pkgdir}" install
}

package_kdepim-knode() {
	pkgdesc='News Reader, without Google Drive support'
	depends=('kdepim-libkdepim')
	url="http://kde.org/applications/internet/knode/"
	conflicts=('kdepim-knode-nonprism')
	replaces=('kdepim-knode-nonprism')
	install='kdepim-knode.install'
	cd "${srcdir}"/build/knode
	make DESTDIR="${pkgdir}" install
	cd "${srcdir}"/build/kontact/plugins/knode
	make DESTDIR="${pkgdir}" install
	cd "${srcdir}"/build/doc/knode
	make DESTDIR="${pkgdir}" install
}

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

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

package_kdepim-libkdepim() {
	pkgdesc='Library for KDE PIM, without Google Drive support'
	groups=()
	depends=('kdepim-runtime' 'baloo4-akonadi' 'grantlee-qt4')
	url='http://pim.kde.org'
	conflicts=('kdepim-icons' 'kdepim-libkleo' 'kdepim-libkpgp'
	           'kdepim-akonadi' 'kdepim-libkdepim-nonprism')
	replaces=('kdepim-icons' 'kdepim-libkleo' 'kdepim-libkpgp'
	          'kdepim-akonadi' 'kdepim-libkdepim-nonprism')
	install='kdepim.install'
	for i in agents/sendlateragent akonadi_next calendarsupport \
  incidenceeditor-ng kaddressbookgrantlee grantleetheme kdgantt2 libkdepim \
  libkdepimdbusinterfaces libkleo libkpgp mailcommon mailimporter \
  messagecomposer messagecore messageviewer noteshared icons templateparser \
  plugins/messageviewer plugins/ktexteditor pimcommon pimsettingexporter; do
		cd "${srcdir}"/build/${i}
		make DESTDIR="${pkgdir}" install
	done
	cd "${srcdir}"/build/doc/pimsettingexporter
	make DESTDIR="${pkgdir}" install
	cd "${srcdir}"/build/doc/headerthemeeditor
	make DESTDIR="${pkgdir}" install
	cd "${srcdir}"/build/doc/contactthemeeditor
	make DESTDIR="${pkgdir}" install
}