aboutsummaryrefslogtreecommitdiffstats
path: root/testing/geary/APKBUILD
blob: ec5fd92530f411c14b7360d7372355dc4ad97901 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=geary
pkgver=0.6.0
pkgrel=2
pkgdesc="A lightweight email program designed around conversations"
url="http://yorba.org/geary/"
arch="all"
license="LGPLv2+"
depends="hicolor-icon-theme gsettings-desktop-schemas"
depends_dev=""
makedepends="$depends_dev"
makedepends="$depends_dev cmake vala gtk+3.0-dev gmime-dev libgee-dev
	desktop-file-utils libunique3-dev libcanberra-dev libsecret-dev
	webkitgtk-dev libnotify-dev gobject-introspection-dev gtk-doc
	paxctl"

install=""
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/geary/0.6/geary-$pkgver.tar.xz"

_builddir="$srcdir"/geary-$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
}

build() {
	cd "$_builddir"
	cmake . \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release \
		-DGSETTINGS_COMPILE=OFF \
		-DGSETTINGS_COMPILE_IN_PLACE=OFF \
		-DICON_UPDATE=OFF \
		-DDESKTOP_UPDATE=OFF \
		|| return 1
	make || return 1
}

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

	# webkit JIT has problems with hardened kernel
	paxctl -c -m "$pkgdir"/usr/bin/geary || return 1

	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="32e77fe9dd533c274c710912fc4fb8e8  geary-0.6.0.tar.xz"
sha256sums="44ad1dc2c81c50006c751f8e72aa817f07002188da4c29e158060524a1962715  geary-0.6.0.tar.xz"
sha512sums="636f8a75041aa710b989fb50097f17e45550f42aa4c0043b0b6f9176e503c3d4921a8255efeecf6d60199164e509071263cb4ca6690c8043c57fb456fbcb76c0  geary-0.6.0.tar.xz"