summaryrefslogtreecommitdiff
path: root/libre/iceape-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/iceape-libre/PKGBUILD')
-rw-r--r--libre/iceape-libre/PKGBUILD35
1 files changed, 30 insertions, 5 deletions
diff --git a/libre/iceape-libre/PKGBUILD b/libre/iceape-libre/PKGBUILD
index 21afdb6ef..aeea756fd 100644
--- a/libre/iceape-libre/PKGBUILD
+++ b/libre/iceape-libre/PKGBUILD
@@ -32,8 +32,8 @@ source=("${_debrepo}/`debfile ${_debname}`_${_debver}.orig.tar.bz2"
gnuzilla-addons.patch)
md5sums=('aedc7546db1fdc50cc9c5f21a7ad6138'
'46908aec059166ac48592a8119badf3e'
- '3cbbe74f467e6d23f7fde508b30c139f'
- '0e981f6ce32fbe6407fe18a591bd3b41'
+ 'd62c6856f7aa393a86f7a614460a6269'
+ '7266333e31731af8bb50c2eca8d0bd26'
'25b6fe16ac24cd5c852213e5c1adb272'
'94d5cd599ccc4438f192d8daabf98b6a'
'c395d443a8c4c16880c7322bcf174743'
@@ -56,6 +56,28 @@ build() {
patch -Np1 -i "$srcdir/clrf.patch"
patch -Np1 -i "$srcdir/gnuzilla-addons.patch"
+ install -m755 -d "debian/branding/icons/gtk"
+ install -m755 -d "debian/branding/content"
+ install -m755 -d "debian/branding/app-icons"
+
+ # Converting svg file to png
+ rsvg-convert -w 300 -h 280 -o debian/branding/content/about.png debian/branding/iceape_logo_plain.svg
+ rsvg-convert -w 64 -h 64 -o debian/branding/content/icon64.png debian/branding/iceape_icon_plain.svg
+ rsvg-convert -w 128 -h 128 -o debian/branding/icons/gtk/iceape.png debian/branding/iceape_icon_plain.svg
+ rsvg-convert -w 32 -h 32 -o debian/branding/icons/gtk/default.png debian/branding/iceape_icon_plain.svg
+ rsvg-convert -w 32 -h 32 -o debian/branding/icons/gtk/main-window.png debian/branding/iceape_icon_plain.svg
+ rsvg-convert -w 16 -h 16 -o debian/branding/icons/gtk/default16.png debian/branding/iceape_icon_plain.svg
+ rsvg-convert -w 16 -h 16 -o debian/branding/icons/gtk/main-window16.png debian/branding/iceape_icon_plain.svg
+ rsvg-convert -w 48 -h 48 -o debian/branding/icons/gtk/default48.png debian/branding/iceape_icon_plain.svg
+ rsvg-convert -w 48 -h 48 -o debian/branding/icons/gtk/main-window48.png debian/branding/iceape_icon_plain.svg
+
+ # Icons for /usr/share/icons/hicolor
+ rsvg-convert -w 16 -h 16 -o debian/branding/app-icons/iceape16.png debian/branding/iceape_icon_plain.svg
+ rsvg-convert -w 32 -h 32 -o debian/branding/app-icons/iceape32.png debian/branding/iceape_icon_plain.svg
+ rsvg-convert -w 48 -h 48 -o debian/branding/app-icons/iceape48.png debian/branding/iceape_icon_plain.svg
+ rsvg-convert -w 64 -h 64 -o debian/branding/app-icons/iceape64.png debian/branding/iceape_icon_plain.svg
+ rsvg-convert -w 128 -h 128 -o debian/branding/app-icons/iceape128.png debian/branding/iceape_icon_plain.svg
+
cp "${srcdir}/mozconfig" .mozconfig
make -j1 -f client.mk build MOZ_MAKE_FLAGS="${MAKEFLAGS}"
}
@@ -74,8 +96,11 @@ package() {
install -m755 -d "$pkgdir/usr/share/pixmaps"
install -m644 moz-objdir/debian/branding/icons/gtk/iceape.png \
"$pkgdir/usr/share/pixmaps/"
- install -m644 "$srcdir/$_pkgname.desktop" "$pkgdir/usr/share/applications/"
- rm -f "$pkgdir/usr/lib/pkgconfig/"$_pkgname-ns{s,pr}.pc
- rm -r "$pkgdir"/usr/{include,lib/$_pkgname-devel,share/idl}
+ for i in 16x16 32x32 48x48 64x64 128x128; do
+ install -Dm644 "debian/app-icons/${_pkgname}${i/x*/}.png" "${pkgdir}/usr/share/icons/hicolor/$i/apps/${_pkgname}.png"
+ done
+ install -Dm644 "debian/app-icons/${_pkgname}_icon_plain.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg"
+
+ install -m644 "$srcdir/$_pkgname.desktop" "$pkgdir/usr/share/applications/"
}