more conform way. - Add new subpackages: + openSUSE-appstream-extras: - Contains additional appstream metadata to assist upstreams not yet shipping their own .appdata.xml file. + openSUSE-appstream-process: - The processor is an attempt to be used by kiwi to produce valid appstream metadata. - Update InstallAppdata.sh: the yast2 metadata structure got a slight change with the switch to appstream-builder. OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libzypp-plugin-appdata?expand=0&rev=4
29 lines
630 B
Bash
29 lines
630 B
Bash
#!/bin/bash
|
|
|
|
SRC=$1
|
|
DEST=$2
|
|
|
|
/usr/bin/appstream-builder \
|
|
--no-net \
|
|
--enable-hidpi \
|
|
--temp-dir=/tmp/apb \
|
|
--cache-dir=/tmp/apb/cache \
|
|
--origin=appdata \
|
|
--api-version=0.8 \
|
|
--basename=appdata \
|
|
--extra-appdata-dir=/usr/share/appstream-extra/ \
|
|
--packages-dir=${SRC} \
|
|
--output-dir=${DEST} \
|
|
--screenshot-uri=http://static.opensuse.org/screenshots/openSUSE-13.2
|
|
|
|
/usr/bin/appstream-util \
|
|
status-html \
|
|
${DEST}/appdata.xml.gz \
|
|
${DEST}/appdata.html
|
|
|
|
/usr/bin/appstream-util \
|
|
status-html \
|
|
${DEST}/appdata-failed.xml.gz \
|
|
${DEST}/appdata-failed.html
|
|
|