# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rest
pkgver=0.8.1
pkgrel=4
pkgdesc="Library for access to RESTful web services"
url="https://www.gnome.org/"
# loongarch64: test fails
arch="all !loongarch64"
license="LGPL-2.0-or-later"
makedepends="automake autoconf libtool
	libsoup-dev gobject-introspection-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/rest/${pkgver%.*}/rest-$pkgver.tar.xz
	remove-failing-oauth-tests.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--enable-introspection \
		--without-gnome
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="824a341db3827e4360abe03e33735918c68913c70d797699ef74271080a1985872006ec70fd994dc8fa3fbfef417e6fe979883c11286512d0ce623b8368e40c3  rest-0.8.1.tar.xz
f5a59c259095a68feb1fd54dfb830b48a9b219e8bbf02349c5ff47128ba9f212ac1543659141661b12f705a178e037969e10bf2e0709ffc01f2f217a3ffc3815  remove-failing-oauth-tests.patch"
