aboutsummaryrefslogtreecommitdiff
path: root/network/icecat/icecat.SlackBuild
diff options
context:
space:
mode:
authormelikamp <melikamp@melikamp.net>2015-07-12 09:08:06 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-07-12 09:08:06 +0700
commit8e2c597d3d850072291437d06eb235616a105186 (patch)
tree0fd9eec3531f83d5f67e7654bb17d9e3d9682fdb /network/icecat/icecat.SlackBuild
parent6c355d8a976134b3b083a804356757321512d642 (diff)
network/icecat: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/icecat/icecat.SlackBuild')
-rw-r--r--network/icecat/icecat.SlackBuild25
1 files changed, 23 insertions, 2 deletions
diff --git a/network/icecat/icecat.SlackBuild b/network/icecat/icecat.SlackBuild
index 6c91846040ff0..d21c5ed746ae1 100644
--- a/network/icecat/icecat.SlackBuild
+++ b/network/icecat/icecat.SlackBuild
@@ -26,7 +26,9 @@
PRGNAM="icecat"
VERSION=${VERSION:-31.7.0}
-BUILD=${BUILD:-1}
+RELEASEVER="$VERSION"
+RELEASEVERMAJ=$(echo $RELEASEVER | cut -f 1 -d .)
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -72,6 +74,7 @@ else
OPTIMIZE=" --enable-optimize=-O2 "
fi
+# When it works, it builds much faster.
#NUMJOBS=${NUMJOBS:-" -j7 "}
set -e
@@ -161,11 +164,28 @@ make -f client.mk build
make -f client.mk install DESTDIR=$PKG
# We don't need these (just symlinks anyway):
-rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/firefox-devel-$RELEASEVER
+rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/icecat-devel-$RELEASEVER
# Nor these:
rm -rf $PKG/usr/include
+# Desktop integration
+mkdir -p $PKG/usr/share/applications
+cat $CWD/icecat.desktop > $PKG/usr/share/applications/icecat.desktop
+# Need some default icons in the right place:
+for i in 16 22 24 32 48 256; do
+ install -m 0644 -D browser/branding/official/default${i}.png \
+ $PKG/usr/share/icons/hicolor/${i}x${i}/apps/icecat.png
+done
+mkdir -p $PKG/usr/share/pixmaps
+( cd $PKG/usr/share/pixmaps ; ln -sf /usr/share/icons/hicolor/256x256/apps/icecat.png . )
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/icecat-$RELEASEVER/chrome/icons/default
+install -m 644 browser/branding/official/default16.png \
+ $PKG/usr/lib$LIBDIRSUFFIX/icecat-$RELEASEVER/icons/
+install -m 644 browser/branding/official/default16.png \
+ $PKG/usr/lib$LIBDIRSUFFIX/icecat-$RELEASEVER/chrome/icons/default/
+
+# Stage documentation
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a Changelog.IceCat LEGAL LICENSE README.IceCat README.txt AUTHORS \
$PKG/usr/doc/$PRGNAM-$VERSION
@@ -173,6 +193,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}