aboutsummaryrefslogtreecommitdiffstats
path: root/testing/akonadi/APKBUILD
blob: cdc53687297e84623d8e9bed03fa4c81f138101d (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=akonadi
pkgver=1.13.0
pkgrel=1
pkgdesc="kde PIM storage service server"
url="http://pim.kde.org/akonadi"
arch="x86 x86_64"
license="LGPL"
depends=""
depends_dev="boost-dev qt-dev postgresql-dev libxslt-dev shared-mime-info"
makedepends="$depends_dev cmake automoc4"
install=""
subpackages="$pkgname-dev"
source="http://download.kde.org/stable/akonadi/src/akonadi-$pkgver.tar.bz2
	disable-backtrace-1.13.0.patch"

_builddir="$srcdir"/akonadi-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	mkdir "$_builddir"/build
}

build() {
	cd "$_builddir"/build
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
	      -DCMAKE_BUILD_TYPE=Release \
	      -DINSTALL_QSQLITE_IN_QT_PREFIX=TRUE \
	      -DAKONADI_BUILD_TESTS=OFF \
	      -Wno-dev \
	      "$_builddir" || return 1
	make || return 1
}

package() {
	cd "$_builddir"/build
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="84eb2e471bd6bdfe54a2a2f1d858c07d  akonadi-1.13.0.tar.bz2
e9c4b8af3e3222ec001bf3a90132fcf5  disable-backtrace-1.13.0.patch"
sha256sums="8c7f690002ea22c139f3a64394aef2e816e00ca47fd971af7d54a66087356dd2  akonadi-1.13.0.tar.bz2
31c929cd87b655075380cee2790f73c7ef80373c3c845bf195029cef6e875390  disable-backtrace-1.13.0.patch"
sha512sums="4bf2026c3807b5493c9f63d0c2bff2e6db00fbe97a4e2c2f707aaa3bf4a848b70dd9657d8fa1743690e8eeefd967de4895c1329c6bb817a1d023fe398285222f  akonadi-1.13.0.tar.bz2
bf4571643e27e705933a0e6491144b0fd1d55abbfbc75f93a65234e880625cc4c03eca0994d6c0a90b9c3521be5d33b91399b079fc07da662bdbc807775daa8d  disable-backtrace-1.13.0.patch"