-
Notifications
You must be signed in to change notification settings - Fork 315
/
Copy pathglib-gir.yaml
86 lines (76 loc) · 2.24 KB
/
glib-gir.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Bootstrapping .typelib for glib whilst build-depending on both
# glib-dev and gobject-introspection-dev
package:
name: glib-gir
version: "2.84.0"
epoch: 0
description: Common C routines used by Gtk+ and other libs
copyright:
- license: LGPL-2.1-or-later
vars:
# build uses rst2man from py3-docutils and also invokes 'python3'
# installed /usr/bin/gtester-report gets correct shbang (/usr/bin/python3.XX)
py-version: 3.13
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- bzip2-dev
- ca-certificates-bundle
- docbook-xml
- gettext-dev
- glib-dev
- gobject-introspection-dev
- libffi-dev
- libmount
- libxml2-utils
- libxslt
- libxslt-dev
- meson
- pcre2-dev
- py${{vars.py-version}}-docutils-bin
- python-${{vars.py-version}}
- util-linux-dev
- zlib-dev
# creates a new var that contains only the major and minor version to be used in the fetch URL
# e.g. 2.74.3 will create a new var mangled-package-version=2.74
var-transforms:
- from: ${{package.version}}
match: (\d+\.\d+)\.\d+
replace: $1
to: mangled-package-version
pipeline:
- uses: fetch
with:
expected-sha256: f8823600cb85425e2815cfad82ea20fdaa538482ab74e7293d58b3f64a5aff6a
uri: https://download.gnome.org/sources/glib/${{vars.mangled-package-version}}/glib-${{package.version}}.tar.xz
- uses: meson/configure
with:
opts: |
--default-library=both \
-Dman=true \
-Dtests=false
- uses: meson/compile
- runs: |
mkdir -p ${{targets.contextdir}}/usr/lib/girepository-1.0/
cp output/girepository/introspection/*.typelib ${{targets.contextdir}}/usr/lib/girepository-1.0/
mkdir -p ${{targets.contextdir}}/usr/share/gir-1.0/
cp output/girepository/introspection/*.gir ${{targets.contextdir}}/usr/share/gir-1.0/
- uses: strip
test:
environment:
contents:
packages:
- gobject-introspection-bin
pipeline:
- name: List shared libraries
runs: g-ir-inspect --print-shlibs Gio
- name: List other typelibs required
runs: g-ir-inspect --print-typelibs Gio
update:
enabled: true
release-monitor:
identifier: 10024