aboutsummaryrefslogtreecommitdiffstats
path: root/community/libgdata/APKBUILD
blob: 55da873828b22704b11a57813133403c25d95cd7 (plain) (blame)
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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libgdata
pkgver=0.17.7
pkgrel=0
pkgdesc="access library for gdata"
url="http://live.gnome.org/libgdata"
arch="all"
license="LGPL"
depends=
depends_dev="libsoup-dev json-glib-dev liboauth-dev"
makedepends="$depends_dev intltool uhttpmock-dev glib-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/libgdata/${pkgver%.*}/libgdata-${pkgver}.tar.xz"

_builddir="${srcdir}/${pkgname}-${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"
	DATADIRNAME=share ./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-gnome \
		|| return 1
	make || return 1
}

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

sha512sums="92ded8480262f59b6b2f8271fbb77b9b75905ca53f80a24bcf239fd06ead219ffa8af4b576b38368297c1a4f49722b3960202b8ea2b03011781d5fdfa77bbfd6  libgdata-0.17.7.tar.xz"