aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libgdata/APKBUILD
blob: c43c42e24f2bc93e7569f1be77aea33791e14f84 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libgdata
pkgver=0.17.6
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
}

md5sums="7f64e6091c734e722111fde1794b2e10  libgdata-0.17.6.tar.xz"
sha256sums="8b6a3ff1db23bd9e5ebbcc958b29b769a898f892eed4798222d562ba69df30b0  libgdata-0.17.6.tar.xz"
sha512sums="940e5155b0cda0604e09efcdeabbfcb54ebe97b40d1086823802d3a49fdb7fcfc97749ae218c15d30e4981d01e34d1ae3bed01c1ee9a283063761527a9405731  libgdata-0.17.6.tar.xz"