aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-09-19 16:28:59 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-09-20 16:40:26 +0000
commit3dbc1466fce6eeffd0ad69a96a20d8d5595b1d57 (patch)
tree040fdcb30b15fb7e8fb602c2af273121b39b62cb
parent7471d24a9735d2a718b100a397b86a146b522f0b (diff)
downloadaports-3dbc1466fce6eeffd0ad69a96a20d8d5595b1d57.tar.gz
aports-3dbc1466fce6eeffd0ad69a96a20d8d5595b1d57.tar.bz2
aports-3dbc1466fce6eeffd0ad69a96a20d8d5595b1d57.tar.xz
community/gnome-software: use external appstream data
-rw-r--r--community/gnome-software/APKBUILD12
-rw-r--r--community/gnome-software/org.gnome.software.gschema.override2
2 files changed, 11 insertions, 3 deletions
diff --git a/community/gnome-software/APKBUILD b/community/gnome-software/APKBUILD
index db0eaa8eb1..a69ba447a2 100644
--- a/community/gnome-software/APKBUILD
+++ b/community/gnome-software/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-software
pkgver=3.38.0
-pkgrel=0
+pkgrel=1
pkgdesc="Software lets you install and update applications and system extensions"
url="https://wiki.gnome.org/Apps/Software"
arch="all !s390x !mips !mips64"
@@ -13,7 +13,8 @@ makedepends="meson appstream-glib-dev gdk-pixbuf-dev libxmlb-dev glib-dev gtk+3.
options="!check" # lots of failing tests
subpackages="$pkgname-lang $pkgname-doc $pkgname-dbg $pkgname-static
$pkgname-dev $pkgname-plugin-flatpak:flatpak_plugin"
-source="https://download.gnome.org/sources/gnome-software/${pkgver%.*}/gnome-software-$pkgver.tar.xz"
+source="https://download.gnome.org/sources/gnome-software/${pkgver%.*}/gnome-software-$pkgver.tar.xz
+ org.gnome.software.gschema.override"
case "$CARCH" in
x86*) makedepends="$makedepends fwupd-dev" ;;
@@ -30,6 +31,7 @@ build() {
-Dvalgrind=false \
-Dmalcontent=false \
-Dpackagekit=false \
+ -Dexternal_appstream=true \
$conf \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
@@ -41,6 +43,9 @@ check() {
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
+ mkdir -p "$pkgdir"/usr/share/glib-2.0/schemas/
+ sed "s|@CARCH@|$CARCH|g" "$srcdir"/org.gnome.software.gschema.override > \
+ "$pkgdir"/usr/share/glib-2.0/schemas/org.gnome.software.gschema.override
}
flatpak_plugin() {
@@ -52,4 +57,5 @@ flatpak_plugin() {
amove usr/share/metainfo/org.gnome.Software.Plugin.Flatpak.metainfo.xml
}
-sha512sums="0563f01c23f91047f45e9b0e2e5729065b2703dbf8dd76af105c1bb87654fb40076bdcfc87a8a3922e8a60422d06158a76a3763f52629dec3e15e49a68e68cf2 gnome-software-3.38.0.tar.xz"
+sha512sums="0563f01c23f91047f45e9b0e2e5729065b2703dbf8dd76af105c1bb87654fb40076bdcfc87a8a3922e8a60422d06158a76a3763f52629dec3e15e49a68e68cf2 gnome-software-3.38.0.tar.xz
+07f82ea072ba303d785964841b3b04c963b86b79a7b1cc127b295cc0854f061a4556f6e4af4f780ae0c4de63ddd9e722db2bccd860e0c2abc8ceb6769413281f org.gnome.software.gschema.override"
diff --git a/community/gnome-software/org.gnome.software.gschema.override b/community/gnome-software/org.gnome.software.gschema.override
new file mode 100644
index 0000000000..a0a68f49c0
--- /dev/null
+++ b/community/gnome-software/org.gnome.software.gschema.override
@@ -0,0 +1,2 @@
+[org.gnome.software]
+external-appstream-urls=['https://appstream.alpinelinux.org/data/edge/main/Components-main-@CARCH@.xml.gz', 'https://appstream.alpinelinux.org/data/edge/community/Components-community-@CARCH@.xml.gz', 'https://appstream.alpinelinux.org/data/edge/testing/Components-testing-@CARCH@.xml.gz']