blob: 169e2d9c30ea62f25e1bb85a0567a585d10c60c9 (
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.4
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="3131b0417ecde3da1ae72acceaa375cf json-glib-1.0.4.tar.xz"
sha256sums="80f3593cb6bd13f1465828e46a9f740e2e9bd3cd2257889442b3e62bd6de05cd json-glib-1.0.4.tar.xz"
sha512sums="491a2353b7a82015516b5029d400874f35ba9d8ad914eb3f97e6106eaf2daa300147725ffbaaf5a67a6bf0da192beb47cd4edee47ecdb6a4be7dfd5f51463e5b json-glib-1.0.4.tar.xz"
|