aboutsummaryrefslogtreecommitdiffstats
path: root/main/gobject-introspection/APKBUILD
blob: 64029e38a4a1cfe3b22eae73fa182432b5246273 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gobject-introspection
pkgver=1.46.0
pkgrel=0
pkgdesc="Introspection system for GObject-based libraries"
url="http://live.gnome.org/GObjectIntrospection"
arch="all"
license="LGPL GPL"
depends_dev="python glib-dev libffi-dev cairo-dev libtool"
makedepends="$depends_dev flex bison python-dev"
depends=
replaces="libgirepository"
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
	"

# since this is a dev package by definition  we dont bother separate -dev
subpackages="$pkgname-doc $pkgname-dev"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

dev() {
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/share "$subpkgdir"/usr/ || return 1
	mv "$pkgdir"/usr/lib/gobject-introspection "$subpkgdir"/usr/lib/ \
		|| return 1
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ || return 1
	default_dev
	replaces="gobject-introspection"
}

md5sums="adb40a31c7c80b65b0f4c8fd71b493dc  gobject-introspection-1.46.0.tar.xz"
sha256sums="6658bd3c2b8813eb3e2511ee153238d09ace9d309e4574af27443d87423e4233  gobject-introspection-1.46.0.tar.xz"
sha512sums="2bdf988caadd6c4286ed90e35d26e1478d8ca627c8fb34f23d44473d0520f16b6082f0ee4f0acf44769bb5de2354119f2e28595ad8919668bebe5aec4c1ac210  gobject-introspection-1.46.0.tar.xz"