aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libgdata/APKBUILD
blob: 035469ac2da266e64946f61f4f12e59f87439d9f (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libgdata
pkgver=0.16.0
pkgrel=0
pkgdesc="access library for gdata"
url="http://live.gnome.org/libgdata"
arch="all"
license="LGPL"
depends=
depends_dev="glib-dev libsoup-dev json-glib-dev liboauth-dev"
makedepends="$depends_dev intltool uhttpmock-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
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="30200bd24c04fa85fd104c1d03129161  libgdata-0.16.0.tar.xz"
sha256sums="66bc279ff8fbebb8eb2602d33e37e3140747ba1e4dc1f1b944c0f312f00ab479  libgdata-0.16.0.tar.xz"
sha512sums="cca81a2400d637d017e90f22de80dd065f8568d3faafa17f6684e1f4c326ba162adb45aaea0558aa64068bf9545e51fb455d0f25f502a46b3ee2f0533ff95d65  libgdata-0.16.0.tar.xz"