summaryrefslogtreecommitdiffstats
path: root/main/json-glib/APKBUILD
blob: dc877f2ff43662fa2c369335507701b0b9df31d3 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=json-glib
pkgver=1.0.0
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
}

dev() {
	default_dev || return 1
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

md5sums="d13485f5aa3b93227bbeb689ccfb596c  json-glib-1.0.0.tar.xz"
sha256sums="dbf558d2da989ab84a27e4e13daa51ceaa97eb959c2c2f80976c9322a8f4cdde  json-glib-1.0.0.tar.xz"
sha512sums="9c798f473804c672447599a66db88ad5ee9e46cc55cd2051e386fe960731dc4e3d46cfcc607ff7bbf60786ae00ca88aaf4e83795133bf54988f7fe5715479b37  json-glib-1.0.0.tar.xz"