Commits

Anonymous committed b09a891

Rebuild faenza-icon-theme with smaller size

Signed-off-by: Lee Pak Hong <benreilly@vector.Linux.net>

  • Participants
  • Parent commits cbd523e

Comments (0)

Files changed (1)

var/vabs/faenza-icon-theme/src/faenza-icon-theme.SlackBuild

 
 #SYSTEM VARIABLES
 #----------------------------------------------------------------------------
-BUILDNUM=${BUILDNUM:-"1"}
+BUILDNUM=${BUILDNUM:-"2"}
 VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}
 BUILD=${BUILD:-"$BUILDNUM""$VL_VERSION"}
 ARCH="noarch" ## hardcode ARCH
 
 echo "Configuring source..."
 
-TARBALLS="Faenza-Ambiance Faenza-Dark Faenza-Darker Faenza-Darkest Faenza-Radiance Faenza"
+#TARBALLS="Faenza-Ambiance Faenza-Dark Faenza-Darker Faenza-Darkest Faenza-Radiance Faenza"
+TARBALLS="Faenza"
 
 for i in $TARBALLS; do
   tar -xvf $i.tar.gz
 
 mkdir -p $PKG/usr/share/icons/
 
-cp -a Faenza \
-  Faenza-Dark \
-  Faenza-Darker \
-  Faenza-Darkest \
-  Faenza-Ambiance \
-  Faenza-Radiance \
-  $PKG/usr/share/icons
+cp -a $TARBALLS $PKG/usr/share/icons
+
+#cp -a Faenza \
+#  Faenza-Dark \
+#  Faenza-Darker \
+#  Faenza-Darkest \
+#  Faenza-Ambiance \
+#  Faenza-Radiance \
+#  $PKG/usr/share/icons
 
 if [ "$EMESENE" = "yes" ]; then
   tar -xvf emesene-faenza-theme.tar.gz
 		$PKG/usr/share/icons/Faenza/emblems/${icons}/emblem-photos.png
 done
 
+# remove icons that is above 48 pixels to reduce size
+for a in $TARBALLS; do
+	#rm -r $PKG/usr/share/icons/$a/{extras,stock}
+	rm -r $PKG/usr/share/icons/$a/*/{64,96,scalable}
+done
+
 mkdir -p $PKG/usr/doc/$NAME-$VERSION
 cp -a AUTHORS COPYING ChangeLog README INSTALL UNINSTALL \
 	$PKG/usr/doc/$NAME-$VERSION
 $NAME: $NAME (gnome icon theme)
 $NAME:
 $NAME: Repackaging of popular Faenza icon theme for Slackware.
-$NAME: 
-$NAME: 
+$NAME: This is a lighter version with Faenza icon with the removal of 64 
+$NAME: pixel or above.
 $NAME: 
 $NAME:
 $NAME: