Skip to content

Commit

Permalink
usdx: Install appstream metadata
Browse files Browse the repository at this point in the history
**Summary**

Install appstream metadata (Part of getsolus#1389)

**Test Plan**

Verify metadata with `appstream-builder --packages-dir=. --include-failed -v`

**Checklist**

- [x] Package was built and tested against unstable
  • Loading branch information
malfisya committed Jan 25, 2024
1 parent 998d281 commit 2a18c04
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
14 changes: 10 additions & 4 deletions packages/u/usdx/package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name : usdx
version : 2024.1.0
release : 8
release : 9
source :
- https://github.com/UltraStar-Deluxe/USDX/archive/refs/tags/v2024.1.0.tar.gz : 98486e03181c998031554e36c95ccbc75d692f3b75cf8f4d7e90b3dbe619e8cd
homepage : https://usdx.eu/
Expand All @@ -24,6 +24,12 @@ build : |
%make LDFLAGS="-O1 --sort-common --as-needed -z relro"
install : |
%make_install
mkdir -p $installdir/usr/share/icons/hicolor/256x256/apps
ln -sfv ../../../../../ultrastardx/resources/icons/ultrastardx-icon.png $installdir/usr/share/icons/hicolor/256x256/apps/ultrastardx.png
install -Dm00644 dists/ultrastardx.desktop $installdir/usr/share/applications/ultrastardx.desktop
# Install icons
install -d -m 00644 $installdir/usr/share/icons/hicolor
for i in 32 256 512; do
install -D -m644 icons/ultrastardx-icon_$i.png "$installdir/usr/share/icons/hicolor/${i}x$i/apps/ultrastardx.png"
done
install -Dm00644 icons/ultrastardx-icon.svg $installdir/usr/share/icons/hicolor/scalable/apps/ultrastardx.svg
# Install desktop file and appstream metadata
install -Dm00644 dists/ultrastardx.desktop -t $installdir/usr/share/applications
install -Dm00644 dists/ultrastardx.appdata.xml -t $installdir/usr/share/metainfo
16 changes: 10 additions & 6 deletions packages/u/usdx/pspec_x86_64.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<Name>usdx</Name>
<Homepage>https://usdx.eu/</Homepage>
<Packager>
<Name>Reilly Brogan</Name>
<Email>solus@reillybrogan.com</Email>
<Name>Muhammad Alfi Syahrin</Name>
<Email>malfisya.dev@hotmail.com</Email>
</Packager>
<License>GPL-2.0-or-later</License>
<PartOf>games</PartOf>
Expand All @@ -23,6 +23,10 @@
<Path fileType="executable">/usr/bin/ultrastardx</Path>
<Path fileType="data">/usr/share/applications/ultrastardx.desktop</Path>
<Path fileType="data">/usr/share/icons/hicolor/256x256/apps/ultrastardx.png</Path>
<Path fileType="data">/usr/share/icons/hicolor/32x32/apps/ultrastardx.png</Path>
<Path fileType="data">/usr/share/icons/hicolor/512x512/apps/ultrastardx.png</Path>
<Path fileType="data">/usr/share/icons/hicolor/scalable/apps/ultrastardx.svg</Path>
<Path fileType="data">/usr/share/metainfo/ultrastardx.appdata.xml</Path>
<Path fileType="data">/usr/share/ultrastardx/LICENSE</Path>
<Path fileType="data">/usr/share/ultrastardx/avatars/1.png</Path>
<Path fileType="data">/usr/share/ultrastardx/avatars/2.png</Path>
Expand Down Expand Up @@ -752,12 +756,12 @@
</Files>
</Package>
<History>
<Update release="8">
<Date>2024-01-17</Date>
<Update release="9">
<Date>2024-01-25</Date>
<Version>2024.1.0</Version>
<Comment>Packaging update</Comment>
<Name>Reilly Brogan</Name>
<Email>solus@reillybrogan.com</Email>
<Name>Muhammad Alfi Syahrin</Name>
<Email>malfisya.dev@hotmail.com</Email>
</Update>
</History>
</PISI>

0 comments on commit 2a18c04

Please sign in to comment.