~mestrelion/ubuntu/+source/branding-ubuntu:use_svgz_cards

Last commit made on 2022-11-06
Get this branch:
git clone -b use_svgz_cards https://git.launchpad.net/~mestrelion/ubuntu/+source/branding-ubuntu
Only MestreLion can upload to this branch. If you are MestreLion please log in for upload directions.

Branch merges

Branch information

Name:
use_svgz_cards
Repository:
lp:~mestrelion/ubuntu/+source/branding-ubuntu

Recent commits

cba5ff9... by MestreLion

compress Aisleriot bonded.svg card theme to SVGZ

Upstream Aisleriot switched to SGVZ (gzipped SVG) format for their card themes in 2011:
https://gitlab.gnome.org/GNOME/aisleriot/-/commit/37106f3670fd0d76c8e8320525879ae574608bba

Since then, Ubuntu-branded Bonded is ignored by Aisleriot, which uses the un-branded bonded.svgz
when Bonded card style is selected in-game.

Compress the branded theme using the same arguments as upstream does:
gzip -9 -n branding/aisleriot/cards/*.svg

Then rename it to SVGZ:
rename 's/\.svg\.gz$/.svgz/' branding/aisleriot/cards/*.svg.gz

Note that in aisleriot package this SVG->SVGZ convertion is done at build-time,
so the source package still contains the original SVGs.

Doing the same in branding-ubuntu would be tricky due to the how override_dh_install creates
the symlinks in debian/rules, so convert to SVGZ directly in the source package, leaving
debian/rules untouched. The 'scour' optimization tool that runs afterwards will handle the SVGZ
automatically.

188c347... by MestreLion

fix XML IDs in Aisleriot SVG card theme branding/aisleriot/cards/bonded.svg

Invalid XML IDs in SVG card themes were fixed in upstream Aisleriot in 2011:
https://gitlab.gnome.org/GNOME/aisleriot/-/commit/950318551392b42967841b63cb7d01cc15495a40

Since then, Ubuntu-branded bonded.svg fails to render properly in Aisleriot.

The fixing tool is available in upstream repository, so use it to fix the branded theme:

ed branding/aisleriot/cards/bonded.svg < <(
wget -O- -- https://gitlab.gnome.org/GNOME/aisleriot/-/raw/master/cards/fix-card-ids.ed)

27c287e... by Jeremy Bícha

0.10 (patches unapplied)

Imported using git-ubuntu import.

fddf4f4... by Jeremy Bícha

0.9 (patches unapplied)

Imported using git-ubuntu import.

6120ed5... by Scott Sweeny

0.8 (patches unapplied)

Imported using git-ubuntu import.

ace1205... by Martin Pitt

0.7 (patches unapplied)

Imported using git-ubuntu import.

c2a23d1... by Scott Ritchie

0.6 (patches unapplied)

Imported using git-ubuntu import.

aa12e6b... by Martin Pitt

0.5 (patches unapplied)

Imported using git-ubuntu import.

3b60e78... by Scott Ritchie

0.4-0ubuntu1 (patches unapplied)

Imported using git-ubuntu import.

bbbcc75... by Scott Ritchie

0.3-0ubuntu1 (patches unapplied)

Imported using git-ubuntu import.