summaryrefslogtreecommitdiffstats
path: root/main/json-glib/APKBUILD
blob: 8dde0d37d244dad5350cb4adcf8f971e6ed54b28 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=json-glib
pkgver=0.16.2
pkgrel=0
pkgdesc="JSON library built on GLib"
arch="all"
url="http://live.gnome.org/JsonGlib"
license="GPL"
depends=""
makedepends="gobject-introspection-dev glib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.gnome.org/pub/GNOME/sources/json-glib/${pkgver%.*}/json-glib-$pkgver.tar.xz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd $srcdir/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="0c6121741956fc34933a7ebae5868ec2  json-glib-0.16.2.tar.xz"
sha256sums="a95475364ec27ab1d2a69303cf579018558bfb6981e3498b3aaf1e6401f7422c  json-glib-0.16.2.tar.xz"
sha512sums="6e1d9f0c1dcf02f93f22089d4669948e3b3c8217ac0b78b626d5877445e705bc28aa4b47d410fa0e35ba0a1a14df594ac069f1f86fbd0e384a942f74e60b6a12  json-glib-0.16.2.tar.xz"