2021-11-03 17:33:10 +00:00
|
|
|
# Forked from Alpine to apply adaptability patches
|
2020-09-04 20:09:47 +00:00
|
|
|
pkgname=gnome-software
|
2021-11-03 17:33:10 +00:00
|
|
|
pkgver=9999_git20211203
|
|
|
|
_pkgver=41.3
|
2022-01-22 17:52:11 +00:00
|
|
|
pkgrel=2
|
2020-09-04 20:09:47 +00:00
|
|
|
pkgdesc="Software lets you install and update applications and system extensions"
|
|
|
|
url="https://wiki.gnome.org/Apps/Software"
|
2021-11-03 17:33:10 +00:00
|
|
|
# s390x, mips64 and riscv64 blocked by polkit
|
|
|
|
arch="all !s390x !mips64 !riscv64"
|
2020-09-04 20:09:47 +00:00
|
|
|
license="GPL-2.0-or-later"
|
2022-01-24 03:37:44 +00:00
|
|
|
depends=""
|
2021-11-03 17:33:10 +00:00
|
|
|
makedepends="meson appstream-dev gdk-pixbuf-dev libxmlb-dev glib-dev gtk+3.0-dev
|
2022-01-22 17:52:11 +00:00
|
|
|
json-glib-dev libsoup-dev gspell-dev polkit-dev gtk-doc ostree-dev
|
|
|
|
flatpak-dev libgudev-dev libhandy1-dev gsettings-desktop-schemas-dev"
|
2020-09-04 20:09:47 +00:00
|
|
|
options="!check" # lots of failing tests
|
2022-01-22 17:52:11 +00:00
|
|
|
install="$pkgname.post-upgrade"
|
2021-11-03 17:33:10 +00:00
|
|
|
subpackages="$pkgname-lang $pkgname-doc $pkgname-dbg
|
|
|
|
$pkgname-dev $pkgname-lib $pkgname-plugin-flatpak:flatpak_plugin"
|
2020-09-04 20:09:47 +00:00
|
|
|
|
2021-11-03 17:33:10 +00:00
|
|
|
_purism_commit="caaad1eaa5d863ffb9b7853907af8c8342dc2d39"
|
|
|
|
_purism_patches="https://source.puri.sm/Librem5/pureos-store/-/raw/$_purism_commit/debian/patches"
|
|
|
|
|
2022-01-22 17:52:11 +00:00
|
|
|
# First patch-set alpine, second pmOS, third Purism
|
2021-11-03 17:33:10 +00:00
|
|
|
source="https://download.gnome.org/sources/gnome-software/${_pkgver%.*}/gnome-software-$_pkgver.tar.xz
|
2022-01-22 17:52:11 +00:00
|
|
|
0001-gs-external-appstream-utils-use-external-appstream-s.patch
|
|
|
|
0002-gs-external-appstream-utils-hash-url-to-allow-same-b.patch
|
|
|
|
0003-appstream-implement-parsing-media_baseurl.patch
|
2021-12-29 23:58:42 +00:00
|
|
|
0001-make-updates-page-default-at-startup.patch
|
|
|
|
0002-disable-Automatic-Updates-options.patch
|
2021-11-03 17:33:10 +00:00
|
|
|
$_purism_patches/ui/0001-assets-Make-the-up-to-date-picture-fit-phones.patch
|
|
|
|
$_purism_patches/ui/0002-Add-GsInfoWindow.patch
|
|
|
|
$_purism_patches/ui/0003-metered-data-dialog-Make-it-a-GsInfoWindow-and-a-Hdy.patch
|
|
|
|
$_purism_patches/ui/0004-updates-page-Move-Checking-from-the-headerbar-to-an-.patch
|
|
|
|
$_purism_patches/ui/0005-details-page-Make-the-loading-status-fit-phones.patch
|
|
|
|
$_purism_patches/ui/0006-app-details-page-Drop-the-hardcoded-label-width.patch
|
|
|
|
$_purism_patches/ui/0007-data-List-compatible-form-factors.patch
|
|
|
|
$_purism_patches/ui/0009-icon-Ensure-icon-files-exist.patch
|
|
|
|
$_purism_patches/ui/0010-app-Ensure-themed-icons-exist.patch
|
|
|
|
$_purism_patches/ui/0011-app-Be-more-strict-with-icon-scales.patch
|
|
|
|
$_purism_patches/ui/0012-style-Turn-category-tile-padding-into-child-margin.patch
|
|
|
|
$_purism_patches/ui/0013-style-Fix-the-iconless-category-tile-min-width.patch
|
|
|
|
$_purism_patches/ui/0014-moderate-page-Use-a-HdyStatusPage.patch
|
|
|
|
$_purism_patches/ui/0015-progress-button-Ellipsize-the-label.patch
|
|
|
|
$_purism_patches/ui/0016-updates-section-Ellipsize-the-button-label.patch
|
|
|
|
org.gnome.software.gschema.override"
|
|
|
|
|
|
|
|
builddir="$srcdir/$pkgname-$_pkgver"
|
2020-09-04 20:09:47 +00:00
|
|
|
|
|
|
|
case "$CARCH" in
|
2021-11-03 17:33:10 +00:00
|
|
|
x86|x86_64|aarch64|armv7) makedepends="$makedepends fwupd-dev" ;;
|
2020-09-04 20:09:47 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
build() {
|
|
|
|
case "$CARCH" in
|
2021-11-03 17:33:10 +00:00
|
|
|
x86|x86_64|aarch64|armv7) conf="-Dfwupd=true" ;;
|
2020-09-04 20:09:47 +00:00
|
|
|
*) conf="-Dfwupd=false" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
2021-11-03 17:33:10 +00:00
|
|
|
abuild-meson \
|
2020-09-04 20:09:47 +00:00
|
|
|
-Dvalgrind=false \
|
|
|
|
-Dmalcontent=false \
|
|
|
|
-Dpackagekit=false \
|
2020-11-07 18:55:24 +00:00
|
|
|
-Dexternal_appstream=true \
|
2020-09-04 20:09:47 +00:00
|
|
|
$conf \
|
|
|
|
. output
|
2021-11-03 17:33:10 +00:00
|
|
|
meson compile ${JOBS:+-j ${JOBS}} -C output
|
2020-09-04 20:09:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2021-11-03 17:33:10 +00:00
|
|
|
meson test --no-rebuild -v -C output
|
2020-09-04 20:09:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-11-03 17:33:10 +00:00
|
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
2020-11-07 18:55:24 +00:00
|
|
|
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
|
2020-09-04 20:09:47 +00:00
|
|
|
}
|
|
|
|
|
2021-11-03 17:33:10 +00:00
|
|
|
dev() {
|
|
|
|
default_dev
|
|
|
|
|
|
|
|
amove usr/lib/gnome-software/libgnomesoftware.so
|
|
|
|
}
|
|
|
|
|
|
|
|
lib() {
|
|
|
|
pkgdesc="$pkgdesc (shared library)"
|
|
|
|
depends=""
|
|
|
|
|
|
|
|
amove usr/lib/gnome-software/libgnomesoftware.so.*
|
|
|
|
}
|
|
|
|
|
2020-09-04 20:09:47 +00:00
|
|
|
flatpak_plugin() {
|
|
|
|
pkgdesc="$pkgdesc (flatpak plugin)"
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel flatpak"
|
|
|
|
depends=""
|
|
|
|
|
2021-11-03 17:33:10 +00:00
|
|
|
amove usr/lib/gnome-software/plugins-16/libgs_plugin_flatpak.so
|
2020-09-04 20:09:47 +00:00
|
|
|
amove usr/share/metainfo/org.gnome.Software.Plugin.Flatpak.metainfo.xml
|
|
|
|
}
|
|
|
|
|
2021-11-03 17:33:10 +00:00
|
|
|
sha512sums="
|
|
|
|
7b19ed7e3b6f8662b6351fbb6eddb45f99cdbf9e6912e11b36301cdfd6f62cb3256da031e6640f9ad397384a23530d11488c78a1af60ce130a99838f97f8a0ed gnome-software-41.3.tar.xz
|
2022-01-22 17:52:11 +00:00
|
|
|
9f08078c9f0df149bc3be65fdcd47e7e1c11023c9fdbfe3fa63bb7f67883cd2ac654e8aa941d1b222b85d600a9cfeed8fb1d0d43091236c8e0e137d4035705a1 0001-gs-external-appstream-utils-use-external-appstream-s.patch
|
|
|
|
c4ca14d981da8fc93800178aeb2480c8bcaa524a0db283613047e769d4dd8aa9ee603d86cf1353818454e14e25d68b11858e2658e6ff5d7b3fa57c075800deb2 0002-gs-external-appstream-utils-hash-url-to-allow-same-b.patch
|
|
|
|
986cf69e34d61daea61d6555efc2e4805baf07d6a71fdf0c1e35fd38aef64b50924f64b5650d26d1a5c9841d29cffd3bb2cc869f55ba0c1763b929d5e21cb7b9 0003-appstream-implement-parsing-media_baseurl.patch
|
2021-12-29 23:58:42 +00:00
|
|
|
388910611f93147ab55ec602035baac6b85cdece9164d2205669ad41adc6a7cdf4d37d7eaf2eee51257bf905ff39eb0a2502679abeb4d95025ab1296ac0adc94 0001-make-updates-page-default-at-startup.patch
|
|
|
|
40c3aab58f050f88769e6265926762217324ed7748bee7bc3981a04e785133b71b81603dcc22f79c79ecb75298cdca07511031906c5c1eee5d2f122e3d8dab0c 0002-disable-Automatic-Updates-options.patch
|
2021-11-03 17:33:10 +00:00
|
|
|
ea2d4c6ee37b1fb27773d8908a98e6f6726cd2f72fcc7c41caf243a501896c991346d02ccbc36168c7194d0ba3dfd17660c7af79305a447f521617f0fbefae9e 0001-assets-Make-the-up-to-date-picture-fit-phones.patch
|
|
|
|
4e5b205134d7fc8c60af2e9fcfa70552e20300b2e9959d500a82546986d38677515af841272ef64a019ec946940c59eaca3d95d228952d8384682c7410383417 0002-Add-GsInfoWindow.patch
|
|
|
|
b67d04f6853762b7d5b26109fdeeec37d07bef40d1e35b46d95ec58e977c1088e256d0e272bc05c764d8673b2766ec82861506415ee11237ee0270a8a0732d97 0003-metered-data-dialog-Make-it-a-GsInfoWindow-and-a-Hdy.patch
|
|
|
|
d39337b8cc52d6dce308ff9842222cb163d8b1b4b000e69892937b473478e86beaed0e1c6431d3db4d63eb173c4aa827a0ecc51e7a32764b6071bf24b47f12a6 0004-updates-page-Move-Checking-from-the-headerbar-to-an-.patch
|
|
|
|
b60a94afa9b42b5a1dfc32f27ac1ba1de124b14675f4276afc49169a0b591b1439617eda85566bae135361c564ee6f6a45274b4a56324136f569ca532de26310 0005-details-page-Make-the-loading-status-fit-phones.patch
|
|
|
|
5cd87a637b6cd004212724adb619a22ea3cceb81fec4ca7db92e37f82155902813c16cf11d19e68735d07e8f52889048861edb1eb9ad956321e252536486af3a 0006-app-details-page-Drop-the-hardcoded-label-width.patch
|
|
|
|
838e7fee019f8191de2822e3ef3fd3721041d27ea0f89391ed04bb8cb446a3ea8f29ad3621e71533bd8bc50e22a8c157bcb4ff8e959d55fce9d94622e4efaeed 0007-data-List-compatible-form-factors.patch
|
|
|
|
b5b7d608518c72731120f03b603d76d64f87a840404fdae56d593a14a482c7442d8202c8c2fd812167bb601855cffdb51887fcba333705124fe65859368629dd 0009-icon-Ensure-icon-files-exist.patch
|
|
|
|
627a0fda5463f8b85b7b357a3d89a4ea37ef18f9e1a367caa3d935f327d8f9cca98d2eaafc386b7d3f6021863cba079e0be546630a999d3811ae1e3621af3d79 0010-app-Ensure-themed-icons-exist.patch
|
|
|
|
e6869f3d76da7146bc2310a4e4ef2f8e3680e1f15ec81e102779fc4d775f77c05eb4686cfde2d1eadc1ed51c4c52c90a4b7604e69bf8be32bbc2f40950b15f14 0011-app-Be-more-strict-with-icon-scales.patch
|
|
|
|
2b28f978b2e0f095d0b80064634506d646c28db309de70d90dc3dfde4facbf99a575915bfa02832e38a23d4ba118fa67c0820c5f002f76d495117622cb732b24 0012-style-Turn-category-tile-padding-into-child-margin.patch
|
|
|
|
9ecebb9ebb7b60cbd8a42f2f255b4f1feb05820c6d5ef87f72bc5904a2b43c4665e3f499db96c6a621d050fcf2b1bebb3fd828a4176b73046fbf4e3bbb186e6c 0013-style-Fix-the-iconless-category-tile-min-width.patch
|
|
|
|
51f34fce921faf926c546b23004224bd741f01d8e6040f6cd9749e8210c50f2f515588084168bc2841581736c247214c8aaf15abba9a5567d8d6f61b2c96e51a 0014-moderate-page-Use-a-HdyStatusPage.patch
|
|
|
|
16032fbfa3b18a4fff5ff43f2fceb2db20df3c76fc4799030604f7f1be452382ab00e709fd75daa766371fb445a1bb97de064b6d35bdad9755070c28e9f84836 0015-progress-button-Ellipsize-the-label.patch
|
|
|
|
fda7c405a9233e6813c8b87bcf7db4f1e6c6ab7a2c3426c6a2eba947572cfcad97e920bd3887a185f768a6a559d6d755b482f63e58fddc4b3f8b11931b287f1a 0016-updates-section-Ellipsize-the-button-label.patch
|
2022-01-22 17:52:11 +00:00
|
|
|
dc83eba4b5da759b6bc72d0f30ba4e9338684eb0d32d3e2b7989341ee6f8efc15b09dda88d1dc3cc6a2de0a2ae22a41c2fdbfe352b5d7c7ecff44c2d6035e17f org.gnome.software.gschema.override
|
2021-11-03 17:33:10 +00:00
|
|
|
"
|