Skip to content

Commit 76a62d1

Browse files
authored
Merge pull request #2 from hellsworth/41.0-release
41.0 release
2 parents e2b5aee + 1a1f003 commit 76a62d1

File tree

2 files changed

+68
-2
lines changed

2 files changed

+68
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ git branch -u myfork/my-bugfix-branch
5151
3. When you feel they're ready for submitting to the main repository (stable branch), [open up a pull request](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) from your `my-bugfix-branch` to the `ubuntu/stable` branch.
5252
4. Once you've opened the PR, it will automatically trigger the build-test action that will launch a build of the snap. You can watch the progress of the snap build from your PR (Show all checks -> Details). Once the snap build has completed, you can find the built snap (to test with) under "Artifacts".
5353
4. Someone from the team will review the open PR and either merge it or start a discussion with you with additional changes or clarification needed.
54-
5. Once the PR has been merged into the stable branch, then on the next git mirror sync (every 4 hours), launchpad will trigger [a build of the snap that gets published](https://launchpad.net/~desktop-snappers/gnome-clocks/+snap/gnome-clocks-stable) to the [snap store](https://snapcraft.io/gnome-clocks) into the *candidate* channel. After sufficient testing of the snap from the candidate channel, then the reviewer (a Collaborator of the snap in the store) will promote the snap to the stable branch in the snap store.
54+
5. Once the PR has been merged into the stable branch, then on the next git mirror sync (every 4 hours), launchpad will trigger [a build of the snap that gets published](https://launchpad.net/~desktop-snappers/+snap/gnome-clocks) to the [snap store](https://snapcraft.io/gnome-clocks) into the *candidate* channel. After sufficient testing of the snap from the candidate channel, then the reviewer (a Collaborator of the snap in the store) will promote the snap to the stable branch in the snap store.

snapcraft.yaml

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,58 @@ apps:
3535
desktop: usr/share/applications/org.gnome.clocks.desktop
3636

3737
parts:
38+
39+
buildenv:
40+
plugin: nil
41+
build-environment: &buildenv
42+
- PATH: $SNAPCRAFT_STAGE/usr/bin:$PATH
43+
- ACLOCAL_PATH: $SNAPCRAFT_STAGE/usr/share/aclocal
44+
- XDG_DATA_DIRS: $SNAPCRAFT_STAGE/usr/share:/usr/share:$XDG_DATA_DIRS
45+
- LD_LIBRARY_PATH: $SNAPCRAFT_STAGE/usr/lib/vala-0.54:$SNAPCRAFT_STAGE/usr/lib:$SNAPCRAFT_STAGE/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:$LD_LIBRARY_PATH
46+
- GDK_PIXBUF_MODULE_FILE: $SNAPCRAFT_STAGE/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/gdk-pixbuf-2.0/2.10.0/loaders.cache
47+
- PKG_CONFIG_PATH: $SNAPCRAFT_STAGE/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pkgconfig:$SNAPCRAFT_STAGE/usr/lib/pkgconfig:$SNAPCRAFT_STAGE/usr/share/pkgconfig:$PKG_CONFIG_PATH
48+
49+
glib:
50+
source: https://gitlab.gnome.org/GNOME/glib.git
51+
source-branch: 'glib-2-68'
52+
source-depth: 1
53+
plugin: meson
54+
meson-parameters:
55+
- --prefix=/usr
56+
- --buildtype=release
57+
build-environment: *buildenv
58+
build-environment:
59+
- CFLAGS: -Wno-nonnull
60+
override-build: |
61+
set -eux
62+
snapcraftctl build
63+
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/glib-2.0/
64+
cp $SNAPCRAFT_PART_INSTALL/usr/bin/{gio-querymodules,glib-compile-schemas} $SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/glib-2.0/
65+
prime:
66+
- -usr/bin
67+
- -usr/lib/*/glib-2.0
68+
- -usr/share
69+
- -usr/include
70+
71+
vala:
72+
after: [ glib ]
73+
source: https://gitlab.gnome.org/GNOME/vala.git
74+
source-branch: '0.54'
75+
plugin: autotools
76+
autotools-configure-parameters: [ --prefix=/usr ]
77+
build-environment: *buildenv
78+
build-packages:
79+
- autoconf-archive
80+
- flex
81+
- bison
82+
- libgraphviz-dev
83+
prime:
84+
- -*
85+
3886
gnome-clocks:
87+
after: [ vala ]
3988
source: https://gitlab.gnome.org/GNOME/gnome-clocks.git
40-
source-tag: '40.0'
89+
source-tag: '41.0'
4190
source-type: git
4291
plugin: meson
4392
meson-parameters: [--prefix=/snap/gnome-clocks/current/usr]
@@ -57,6 +106,7 @@ parts:
57106
override-pull: |
58107
snapcraftctl pull
59108
snapcraftctl set-version $(git describe --tags --abbrev=10)
109+
build-environment: *buildenv
60110

61111
libraries:
62112
plugin: nil
@@ -70,3 +120,19 @@ parts:
70120
- "usr/lib/*/libgweather*.so.*"
71121
- "usr/share/libgweather"
72122
- "usr/share/glib-2.0/schemas"
123+
124+
cleanup:
125+
after: [ libraries ]
126+
plugin: nil
127+
override-prime: |
128+
set -eux
129+
130+
rm -rf usr/share/doc
131+
rm -rf usr/share/man
132+
rm -rf usr/libexec/*/installed-tests
133+
rm -rf usr/libexec/installed-tests
134+
rm -f usr/lib/*.la
135+
rm -f usr/lib/*/*.la
136+
137+
find . -type d -empty -delete
138+

0 commit comments

Comments
 (0)