diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-03-15 18:24:18 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-03-15 18:24:18 -0300 |
commit | 176aee5840e5837d97a76165540c5f481eb5daf4 (patch) | |
tree | 6ed9f54a770e3688cf04fce91d7453c1bd84c444 /libre/iceape/PKGBUILD | |
parent | a5c6ecf62c0b49f8f0ae012551f7f4729d1fb91d (diff) |
iceape: use librsvg-stable instead of imagemagick since it's better to convert SVG to PNG files
Diffstat (limited to 'libre/iceape/PKGBUILD')
-rw-r--r-- | libre/iceape/PKGBUILD | 53 |
1 files changed, 24 insertions, 29 deletions
diff --git a/libre/iceape/PKGBUILD b/libre/iceape/PKGBUILD index 9fe71558c..e0e5a6369 100644 --- a/libre/iceape/PKGBUILD +++ b/libre/iceape/PKGBUILD @@ -12,7 +12,7 @@ pkgdesc="A libre version of Debian Iceape, the internet suite based on SeaMonkey arch=(i686 x86_64) license=(MPL GPL LGPL) depends=(alsa-lib dbus-glib desktop-file-utils gtk2 hunspell libevent libnotify libvpx libxt mime-types mozilla-common mozilla-searchplugins nss sqlite startup-notification libpulse icu gconf) -makedepends=(unzip zip pkg-config python2 imagemagick wireless_tools yasm mesa autoconf2.13 quilt imake python3 gst-plugins-base) +makedepends=(unzip zip pkg-config python2 librsvg-stable wireless_tools yasm mesa autoconf2.13 quilt imake python3 gst-plugins-base) optdepends=('gst-plugins-base: vorbis decoding, ogg demuxing' 'gst-plugins-bad: aac, vp8 and opus decoding' 'gst-plugins-good: webm and mp4 demuxing' @@ -69,44 +69,39 @@ prepare() { _brandingdir=$pkgname/branding brandingdir=suite/branding/nightly for i in 16 48; do - convert -background none $_brandingdir/${pkgname}_icon_plain.svg \ - -resize ${i}x${i}^ -gravity center -extent ${i}x${i} \ - $brandingdir/icons/gtk/default${i}.png - convert -background none $_brandingdir/${pkgname}_icon_plain.svg \ - -resize ${i}x${i}^ -gravity center -extent ${i}x${i} \ - $brandingdir/icons/gtk/main-window${i}.png + rsvg-convert -w $i -h $i $_brandingdir/${pkgname}_icon_plain.svg \ + -o $brandingdir/icons/gtk/default$i.png + rsvg-convert -w $i -h $i $_brandingdir/${pkgname}_icon_plain.svg \ + -o $brandingdir/icons/gtk/main-window$i.png done for i in 32 48 64; do - convert -background none $_brandingdir/${pkgname}_icon_plain.svg \ - -resize ${i}x${i}^ -gravity center -extent ${i}x${i} \ - $brandingdir/content/icon${i}.png + rsvg-convert -w $i -h $i $_brandingdir/${pkgname}_icon_plain.svg \ + -o $brandingdir/content/icon$i.png done - convert -background none $_brandingdir/${pkgname}_icon_plain.svg \ - -resize 32x32^ -gravity center -extent 32x32 \ - $brandingdir/icons/gtk/default.png - convert -background none $_brandingdir/${pkgname}_icon_plain.svg \ - -resize 32x32^ -gravity center -extent 32x32 \ - $brandingdir/icons/gtk/main-window.png - convert -background none $_brandingdir/${pkgname}_icon_plain.svg \ - -resize 128x128^ -gravity center -extent 128x128 \ - $brandingdir/icons/gtk/${pkgname}.png - convert -background none $_brandingdir/${pkgname}_icon_plain.svg \ - -resize 200x200^ -gravity center -extent 200x200 \ - $brandingdir/content/logo.gif - convert -background none $_brandingdir/${pkgname}_logo_plain.svg \ - -resize 300x280^ -gravity center -extent 300x280 \ - $brandingdir/content/about.png - + rsvg-convert -w 32 -h 32 $_brandingdir/${pkgname}_icon_plain.svg \ + -o $brandingdir/icons/gtk/default.png + + rsvg-convert -w 32 -h 32 $_brandingdir/${pkgname}_icon_plain.svg \ + -o $brandingdir/icons/gtk/main-window.png + + rsvg-convert -w 128 -h 128 $_brandingdir/${pkgname}_icon_plain.svg \ + -o $brandingdir/icons/gtk/${pkgname}.png + + rsvg-convert -w 200 -h 200 $_brandingdir/${pkgname}_icon_plain.svg \ + -o $brandingdir/content/logo.gif + + rsvg-convert -w 300 -h 280 $_brandingdir/${pkgname}_logo_plain.svg \ + -o $brandingdir/content/about.png + # Create app-icons folder for iceape*.png icons install -m755 -d $_brandingdir/app-icons # Icons for /usr/share/icons/hicolor for i in 16 32 48 64 128; do - convert -background none $_brandingdir/${pkgname}_icon_plain.svg \ - -resize ${i}x${i}^ -gravity center -extent ${i}x${i} \ - $_brandingdir/app-icons/$pkgname${i}.png + rsvg-convert -w $i -h $i $_brandingdir/${pkgname}_icon_plain.svg \ + -o $_brandingdir/app-icons/$pkgname${i}.png done cp "${srcdir}/mozconfig" .mozconfig |