aboutsummaryrefslogtreecommitdiffstats
path: root/testing/geary/APKBUILD
blob: 3613ee4d00b2838da85760ceca8bf70b0b48ad51 (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.3
pkgrel=0
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 gcr-dev"

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="87cacab077749904b0545951df84f6b9  geary-0.6.3.tar.xz"
sha256sums="2fa2612bf3821f8ff74664463a430729776f6f9bf31795156be2ca7959b52eca  geary-0.6.3.tar.xz"
sha512sums="4a4f26b3e88032191f2b683d8ed0d48401b278c4d1cc69c09731d9ca878450847a35c0653a8b9907ce81b989e713d1a41a40b7b6193f6e84a6e6f4eb4d5053f4  geary-0.6.3.tar.xz"