appstream-glib/openSUSE-appstream-process
Dominique Leuenberger 25f4125456 Accepting request 401902 from GNOME:Next
- Update to version 0.5.16:
  + Add yast2-branding-openSUSE if an app depends on yast2.
  + trivial: post release version bump.
  + Fix g_ptr_array_sort use.
  + Do not rename a category ID in AsApp.
  + Never allow NULL to be added to AsApp string array.
  + Allow setting the id prefix and origin using a symlink file
    name.
  + trivial: Do not load Flatpak repos when searching.
  + Correctly detect new AppStream applications in new directories.
  + Add elementary to list of project groups.
  + trivial: Fix make distcheck.
  + trivial: Fix several issues to ensure changed signal are sent.
  + Load metainfo files if present.
  + Release version 0.5.16.
- Drop
  0001-Add-yast2-branding-openSUSE-if-an-app-depends-on-yas.patch:
  fixed upstream.

OBS-URL: https://build.opensuse.org/request/show/401902
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/appstream-glib?expand=0&rev=76
2016-06-14 14:06:55 +00:00

59 lines
1.6 KiB
Bash

#!/bin/bash
SRC=$1
DEST=$2
URL=https://static.opensuse.org/appstream/tumbleweed
# Do not produce the html files - the biggest tasks are done
# Users interested in them can always produce them locally out of the appdata.xml.gz file
HTMLOUT=no
TMPDIR=$(mktemp -d)
/usr/bin/appstream-builder \
--enable-hidpi \
--include-failed \
--temp-dir=${TMPDIR}/apb \
--cache-dir=${TMPDIR}/apb/cache \
--origin=appdata \
--basename=appdata \
--packages-dir=${SRC} \
--output-dir=${DEST}
# clean up TMPDIR again
rm -rf ${TMPDIR}
# Change screenshot URLs to our own infrastructure; disabled, as infra not ready
# appstream-util mirror-screenshots \
# ${DEST}/appdata.xml.gz \
# ${URL} \
# /usr/share/app-screenshots \
# /tmp/apb-screenshots
if [ "$HTMLOUT" = "yes" ]; then
/usr/bin/appstream-util \
status-html \
${DEST}/appdata.xml.gz \
${DEST}/appdata.html
# compress the HTML file (boo#942985)
xz -9 ${DEST}/appdata.html
/usr/bin/appstream-util \
status-html \
${DEST}/appdata-failed.xml.gz \
${DEST}/appdata-failed.html
# compress the HTML file (boo#942985)
xz -9 ${DEST}/appdata-failed.html
fi
# rename the appdata-icons.tar.gz tarball to something like
# appdata-icons-${hash}.tar.gz, allowing mirrorbrain to send users
# off to a mirror to catch the file, improving performance
read md5 fn_catchall <<<$(md5sum ${DEST}/appdata-icons.tar.gz)
mv ${DEST}/appdata-icons.tar.gz ${DEST}/appdata-icons-${md5}.tar.gz
# also rename the appdata.xml.gz file in the same style
read md5 fn_catchall <<<$(md5sum ${DEST}/appdata.xml.gz)
mv ${DEST}/appdata.xml.gz ${DEST}/appdata-${md5}.xml.gz