diff options
author | XZS | 2015-12-06 21:06:44 +0100 |
---|---|---|
committer | XZS | 2015-12-06 21:06:44 +0100 |
commit | 9dec3e5adff0e0ce168eca3a04e99b89c0e54396 (patch) | |
tree | e8cc3779c0a722e772e77f509331a1a98b1da646 /PKGBUILD | |
parent | 7aec441a9bac7f3b26ab34b73e167946bb0d6f15 (diff) | |
download | aur-9dec3e5adff0e0ce168eca3a04e99b89c0e54396.tar.gz |
patch up unreadable image
Due to a bug with librsvg[1] GTK is unable to process the image
logo.svg. As ImageMagic still can handle it without any hiccups, it can
be converted to a PNG before GTK ever sees it until the bug is fixed.
[1]: https://bugs.archlinux.org/index.php?do=details&task_id=47245
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -28,6 +28,15 @@ pkgver() { printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +prepare() { + cd "$_gitname" + grep -lZr logo.svg | while IFS= read -rd $'\0' file + do + sed -i 's/\(logo\.\)svg/\1png/' "$file" + done + convert media/logo.{svg,png} +} + build() { cd "$_gitname" make _build |