hata_ph avatar hata_ph committed 069a1c8

update fox.SlackBuild

Signed-off-by: hata_ph <hata.ph@gmail.com>;

Comments (0)

Files changed (9)

var/vabs/fox/src/adie.desktop

+[Desktop Entry]
+GenericName=Text Editor
+MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;text/x-diff;text/rdf;
+InitialPreference=3
+Exec=adie
+Icon=fox-adie.png
+Name=Adie
+Categories=Application;Utility;TextEditor;
+Terminal=0
+Type=Application
+X-KDE-SubstituteUID=false
+X-KDE-Username=

var/vabs/fox/src/calculator.desktop

+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=FOX Calculator
+Comment=Calculator
+Categories=Application;Qt;Accessories;Office;
+Exec=calculator
+Icon=fox-calc.png
+Terminal=false
+Type=Application
+StartupNotify=true
+GenericName=
Add a comment to this file

var/vabs/fox/src/fox-adie.png

Added
New image
Add a comment to this file

var/vabs/fox/src/fox-calc.png

Added
New image
Add a comment to this file

var/vabs/fox/src/fox-pathfinder.png

Added
New image
Add a comment to this file

var/vabs/fox/src/fox-shutterbug.png

Added
New image

var/vabs/fox/src/fox.SlackBuild

 # AUTHORS = 
 
 NAME="fox"            #Enter package Name!
-VERSION=${VERSION:-"1.6.43"}      #Enter package Version!
+VERSION=${VERSION:-"1.7.33"}      #Enter package Version!
 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"hata_ph"}   #Enter your Name!
-#LINK=${LINK:-"http://www.agroman.net/$NAME/$NAME-$VERSION.tar.gz"}  #Enter URL for package here!
+LINK=${LINK:-"http://ftp.fox-toolkit.org/pub/$NAME-$VERSION.tar.gz"}  #Enter URL for package here!
 
 
 #SYSTEM VARIABLES
 LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
 ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
+MAKEDEPENDS=${MAKEDEPENDS:-""} #Add make deps for packaging
 #----------------------------------------------------------------------------
 
 
 EOF
 fi
 
+# Add schemas install to the doinst.sh if schemas are found.
+[ -d $PKG/etc/gconf/schemas ] && {
+# Make sure we have gconftool installed
+echo "if [ -x usr/bin/gconftool-2 ]; then" >> $PKG/install/doinst.sh
+( cd $PKG/etc/gconf/schemas
+for schema in *.schemas; do
+ # Install schemas
+ echo "GCONF_CONFIG_SOURCE=\"xml::etc/gconf/gconf.xml.defaults\" \
+   usr/bin/gconftool-2 --makefile-install-rule \
+   etc/gconf/schemas/${schema} >/dev/null 2>&1" \
+   >> $PKG/install/doinst.sh
+done;
+)
+# Finish off gconf block
+echo "fi" >> $PKG/install/doinst.sh
+}
+
 mkdir -p $PKG/install
+cat >> $PKG/install/doinst.sh << EOF
+# update rarian database
+if [ -x usr/bin/rarian-sk-update ]; then
+  usr/bin/rarian-sk-update 1> /dev/null 2> /dev/null
+fi
+
+# update mime database
+if [ -x usr/bin/update-mime-database ]; then
+  usr/bin/update-mime-database usr/share/mime 1> /dev/null 2> /dev/null
+fi
+
+# update desktop entries
+if [ -x usr/bin/update-desktop-database ]; then
+  usr/bin/update-desktop-database 1> /dev/null 2> /dev/null
+fi
+
+# update hicolor icons
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+	rm -f usr/share/icons/hicolor/icon-theme.cache
+fi
+usr/bin/gtk-update-icon-cache -f -q usr/share/icons/hicolor 1>/dev/null 2>/dev/null
+
+if [ -x /usr/bin/glib-compile-schemas ]; then
+  /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas/ >/dev/null 2>&1
+fi
+
+# Restart gconfd-2 if running to reload new gconf settings
+if ps acx | grep -q gconfd-2 ; then
+        killall -HUP gconfd-2 ;
+fi
+
+# A good idea whenever kernel modules are added or changed:
+if [ -x sbin/depmod ]; then
+  /sbin/depmod -a 1> /dev/null 2> /dev/null
+fi
+EOF
 
 
 #if there is a slack-desc in src dir use it

var/vabs/fox/src/pathfinder.desktop

+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=Pathfinder
+Comment=PathFinder
+Categories=Application;Accessories;Utility;
+Exec=PathFinder
+Icon=fox-pathfinder.png
+Terminal=false
+Type=Application
+StartupNotify=true
+GenericName=

var/vabs/fox/src/shutterbug.desktop

+[Desktop Entry]
+GenericName=text editor
+InitialPreference=3
+Exec=shutterbug
+Icon=fox-shutterbug.png
+Name=Shutterbug
+Terminal=0
+Categories=Application;Graphics;
+X-KDE-SubstituteUID=false
+X-KDE-Username=
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.