* update appstream-glib to 0.8.2-4
This commit is contained in:
parent
52dad4387c
commit
154389ce46
@ -1,13 +1,14 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
||||
# Contributor: Jan de Groot <jgc@archlinux.org>
|
||||
|
||||
pkgname=appstream-glib
|
||||
pkgver=0.8.2
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="Objects and methods for reading and writing AppStream metadata"
|
||||
url="https://people.freedesktop.org/~hughsient/appstream-glib/"
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
license=(LGPL)
|
||||
license=(LGPL-2.1-or-later)
|
||||
depends=(
|
||||
curl
|
||||
gtk3
|
||||
@ -29,8 +30,12 @@ provides=(
|
||||
conflicts=(appdata-tools)
|
||||
replaces=(appdata-tools)
|
||||
_commit=02c8ad3b66075d9b2c9094dff816cd44839a4b45 # tags/appstream_glib_0_8_2^0
|
||||
source=("git+https://github.com/hughsie/appstream-glib#commit=$_commit")
|
||||
b2sums=('SKIP')
|
||||
source=(
|
||||
"git+https://github.com/hughsie/appstream-glib#commit=$_commit"
|
||||
as-yaml-support-application-yaml-mimetype.patch
|
||||
)
|
||||
b2sums=('SKIP'
|
||||
'63c82bb52fbe1aeab2aeb33147d99690a81a0528f9438c934a5fe7295581145b385e55b7d67c98a43e21cdb529883eaed750e2b4d842c56e21d8faf583f57580')
|
||||
|
||||
pkgver() {
|
||||
cd $pkgname
|
||||
@ -39,6 +44,10 @@ pkgver() {
|
||||
|
||||
prepare() {
|
||||
cd $pkgname
|
||||
|
||||
# Unbreak tests
|
||||
# https://gitlab.alpinelinux.org/alpine/aports/-/commit/8538b3b2f0e0eae7af5e6c38827c907d483efd6c
|
||||
git apply -3 ../as-yaml-support-application-yaml-mimetype.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -0,0 +1,16 @@
|
||||
as_test_yaml_fails because the mimetype is detected as `application/yaml`, which
|
||||
is not recognized.
|
||||
diff --git a/libappstream-glib/as-yaml.c b/libappstream-glib/as-yaml.c
|
||||
index d764d15..da83fea 100644
|
||||
--- a/libappstream-glib/as-yaml.c
|
||||
+++ b/libappstream-glib/as-yaml.c
|
||||
@@ -506,7 +506,8 @@ as_yaml_from_file (GFile *file, AsYamlFromFlags flags, GCancellable *cancellable
|
||||
g_strcmp0 (content_type, "application/x-gzip") == 0) {
|
||||
conv = G_CONVERTER (g_zlib_decompressor_new (G_ZLIB_COMPRESSOR_FORMAT_GZIP));
|
||||
stream_data = g_converter_input_stream_new (file_stream, conv);
|
||||
- } else if (g_strcmp0 (content_type, "application/x-yaml") == 0) {
|
||||
+ } else if (g_strcmp0 (content_type, "application/x-yaml") == 0 ||
|
||||
+ g_strcmp0 (content_type, "application/yaml") == 0) {
|
||||
stream_data = g_object_ref (file_stream);
|
||||
} else {
|
||||
g_set_error (error,
|
Loading…
x
Reference in New Issue
Block a user