summaryrefslogtreecommitdiff
path: root/user/gobject-introspection/APKBUILD
blob: c8f5fc03abff8a05a539c9bfa1da97363565c11a (plain) (blame)
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
# Maintainer: 
pkgname=gobject-introspection
pkgver=1.58.3
pkgrel=0
pkgdesc="Introspection system for GObject-based libraries"
url="https://wiki.gnome.org/action/show/Projects/GObjectIntrospection"
arch="all"
license="LGPL-2.0+ AND GPL-2.0+ AND MIT"
depends=""
depends_dev="python3 cairo-dev libtool"
makedepends="$depends_dev bison flex glib-dev libffi-dev meson ninja python3-dev
	cmd:which"
checkdepends="sed"
subpackages="$pkgname-doc $pkgname-dev"
replaces="libgirepository"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
	we-are-in-a-pickle.patch
	"

prepare() {
	cd "$builddir"
	default_prepare
	mkdir -p build
}

build() {
	cd "$builddir"/build
	meson -Dprefix=/usr
	ninja
}

check() {
	cd "$builddir"/build
	ninja test
}

package() {
	cd "$builddir"/build
	DESTDIR="$pkgdir" ninja install
}

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

sha512sums="0811cd08e224975b3aa55ae89d648fc65f3105cae8a077a5671593d84743b1db28e9fbffe53fc86a2b3e82ea98c35f3daae033d3df07c7020cc3bf8b5d94f796  gobject-introspection-1.58.3.tar.xz
106e36c04ab9035b92d7f34251c3af2c37fbbc538d2b96027735565df74314eb90a93288f1bc62c08742ff6ba525d72ea03306e3b32f48724a09548788466d3d  we-are-in-a-pickle.patch"