summaryrefslogtreecommitdiff
path: root/nonprism/kdepim/PKGBUILD
blob: 8ca7b72ca21cad0722094583785a1288f8239dec (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 222435 2014-09-20 16:26:15Z svenstaro $
# 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.1
pkgrel=1.nonprism2
arch=('i686' 'x86_64' 'mips64el')
url='http://pim.kde.org'
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdepim')
makedepends=('cmake' 'automoc4' 'boost' 'kdepim-runtime' 'libxss' 'pilot-link'
             'baloo4' 'link-grammar')
source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}-${pkgver}.tar.xz")
sha1sums=('a2a8d36407446546ac0fab66e0742ea2d1288ec8')

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' 'kde-agent')
	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 importwizard ksendemail libksieve messagelist \
      kontact/plugins/kmail 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' 'link-grammar' 'baloo4-akonadi')
	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 kdgantt2 libkdepim \
  libkdepimdbusinterfaces libkleo libkpgp mailcommon mailimporter \
  messagecomposer messagecore messageviewer noteshared icons templateparser \
  plugins/messageviewer grantleetheme grantleeeditor/grantleethemeeditor \
  grantleeeditor/contactthemeeditor grantleeeditor/headerthemeeditor \
  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
}