Skip to content

Commit

Permalink
bombermaaan: Install appdata.xml
Browse files Browse the repository at this point in the history
**Summary**

- Install appdata.xml
- Move icon install directory to hicolor
- Part of #1389

**Test Plan**

- Rebuild package
- 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 22, 2024
1 parent 23f744d commit 7dae011
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
18 changes: 12 additions & 6 deletions packages/b/bombermaaan/package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name : bombermaaan
version : 2.2.8.2275
release : 6
release : 7
source :
- https://github.com/bjaraujo/Bombermaaan/archive/refs/tags/v2.2.8.2275.tar.gz : 34a867305d8db32797d0d103d915103be1fabd78305b1bad4b359de9976c35c0
homepage : https://github.com/bjaraujo/Bombermaaan
Expand All @@ -14,14 +14,20 @@ builddeps :
- pkgconfig(sdl2)
setup : |
cd trunk
%cmake -DLOAD_RESOURCES_FROM_FILES:BOOL=ON
%cmake_ninja -DLOAD_RESOURCES_FROM_FILES:BOOL=ON
build : |
%make -C trunk
cd trunk
%ninja_build
install : |
install -Dm00755 trunk/bin/Bombermaaan $installdir/usr/share/Bombermaaan/bombermaaan
# Install binary file and game data to usr
install -Dm00755 trunk/solusBuildDir/bin/Bombermaaan $installdir/usr/share/Bombermaaan/bombermaaan
install -dm00755 $installdir/usr/bin
ln -sv ../share/Bombermaaan/bombermaaan $installdir/usr/bin/bombermaaan
cp -r trunk/res/{images,sounds} $installdir/usr/share/Bombermaaan
cp -r trunk/levels $installdir/usr/share/Bombermaaan
install -Dm00644 installers/bombermaaan.png -t $installdir/usr/share/pixmaps
install -Dm00644 installers/bombermaaan.desktop -t $installdir/usr/share/applications
# Install icon, desktop file and appstream metadata
install -Dm00644 installers/bombermaaan.png -t $installdir/usr/share/icons/hicolor/32x32/apps
install -Dm00644 installers/bombermaaan.svg -t $installdir/usr/share/icons/hicolor/scalabe/apps
install -Dm00644 installers/bombermaaan.desktop $installdir/usr/share/applications/com.github.bjaraujo.Bombermaaan.desktop
sed -i 's/release version="2.1.8.2208" date="2021-01-24"/release version="2.2.8.2275" date="2023-12-24"/' installers/bombermaaan.appdata.xml #Update version accordingly
install -Dm00644 installers/bombermaaan.appdata.xml -t $installdir/usr/share/appdata
18 changes: 10 additions & 8 deletions packages/b/bombermaaan/pspec_x86_64.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<Name>bombermaaan</Name>
<Homepage>https://github.com/bjaraujo/Bombermaaan</Homepage>
<Packager>
<Name>Algent Albrahimi</Name>
<Email>algent@protonmail.com</Email>
<Name>Muhammad Alfi Syahrin</Name>
<Email>malfisya.dev@hotmail.com</Email>
</Packager>
<License>GPL-3.0-or-later</License>
<PartOf>games.arcade</PartOf>
Expand Down Expand Up @@ -353,17 +353,19 @@
<Path fileType="data">/usr/share/Bombermaaan/sounds/wall_clap_1.ogg</Path>
<Path fileType="data">/usr/share/Bombermaaan/sounds/wall_clap_2.ogg</Path>
<Path fileType="data">/usr/share/Bombermaaan/sounds/winner.ogg</Path>
<Path fileType="data">/usr/share/applications/bombermaaan.desktop</Path>
<Path fileType="data">/usr/share/pixmaps/bombermaaan.png</Path>
<Path fileType="data">/usr/share/appdata/bombermaaan.appdata.xml</Path>
<Path fileType="data">/usr/share/applications/com.github.bjaraujo.Bombermaaan.desktop</Path>
<Path fileType="data">/usr/share/icons/hicolor/32x32/apps/bombermaaan.png</Path>
<Path fileType="data">/usr/share/icons/hicolor/scalabe/apps/bombermaaan.svg</Path>
</Files>
</Package>
<History>
<Update release="6">
<Date>2023-12-24</Date>
<Update release="7">
<Date>2024-01-22</Date>
<Version>2.2.8.2275</Version>
<Comment>Packaging update</Comment>
<Name>Algent Albrahimi</Name>
<Email>algent@protonmail.com</Email>
<Name>Muhammad Alfi Syahrin</Name>
<Email>malfisya.dev@hotmail.com</Email>
</Update>
</History>
</PISI>

0 comments on commit 7dae011

Please sign in to comment.