File root-installation.diff of Package Crystalcursors

--- Makefile
+++ Makefile
@@ -19,12 +19,6 @@
 	@echo -e "\nGrayscale version of CrystalCursors is correctly installed.\n"
 
 	$(MAKE) install -C white_src
-	cp -f  ./blue_src/index.theme.default $(HOME)/.icons/default/index.theme
-	@echo -e "\nWhite version of CrystalCursors is correctly installed.\n"
-
-	@echo -e "The blue version will be used; in order to change this you can run ./choose.sh"
-	@echo -e "in the current folder or copy the proper index.theme in ~/.icons/default."
-	@echo -e "Have Fun!\n"
 clean:
 	rm blue_cursors/*
 	rm blue_cursors_nonanim/*
--- blue_src/Makefile
+++ blue_src/Makefile
@@ -1,4 +1,4 @@
-CURSORDIR=$(HOME)/.icons/crystalblue/cursors
+CURSORDIR=$(DESTDIR)/usr/share/icons/crystalblue/cursors
 BUILDDIR=../blue_cursors
 
 #Define here the animation cursor directories
@@ -35,16 +35,13 @@
 install: all
 	#Create necessary directories
 
-	if test ! -d $(HOME)/.icons ;then mkdir $(HOME)/.icons; fi
-	if test ! -d $(HOME)/.icons/default ;then mkdir $(HOME)/.icons/default;fi
-	if test ! -d $(HOME)/.icons/crystalblue ;then mkdir $(HOME)/.icons/crystalblue; fi
-	if test ! -d $(HOME)/.icons/crystalblue/cursors ;then mkdir $(HOME)/.icons/crystalblue/cursors; fi
+	if test ! -d $(CURSORDIR) ;then mkdir -p $(CURSORDIR); fi
 	#Copy the cursors
 
 	cp -Rf $(BUILDDIR)/* $(CURSORDIR)
 
 	#Copy the configuration file
-	cp -f  index.theme $(HOME)/.icons/crystalblue/
+	cp -f  index.theme $(DESTDIR)/usr/share/icons/crystalblue
 
 	#Create some symlinks
 	ln -sf hand $(CURSORDIR)/hand1
--- blue_src/nonanim/Makefile
+++ blue_src/nonanim/Makefile
@@ -1,4 +1,4 @@
-CURSORDIR=$(DESTDIR)/usr/X11R6/lib/X11/icons/crystalblue_nonanim/cursors
+CURSORDIR=$(DESTDIR)/usr/share/icons/crystalblue_nonanim/cursors
 BUILDDIR=../../blue_cursors_nonanim
 
 
@@ -51,7 +51,6 @@
 
 watch.png: ../watch/watch12.png
 	ln -sf ../watch/watch12.png watch.png
-CURSORDIR=$(HOME)/.icons/crystalblue_nonanim/cursors
 BUILDDIR=../../blue_cursors_nonanim
 
 
@@ -78,16 +77,13 @@
 install: all
 	#Create necessary directories
 
-	if test ! -d $(HOME)/.icons ;then mkdir $(HOME)/.icons; fi
-	if test ! -d $(HOME)/.icons/default ;then mkdir $(HOME)/.icons/default;fi
-	if test ! -d $(HOME)/.icons/crystalblue_nonanim ;then mkdir $(HOME)/.icons/crystalblue_nonanim; fi
-	if test ! -d $(HOME)/.icons/crystalblue_nonanim/cursors ;then mkdir $(HOME)/.icons/crystalblue_nonanim/cursors; fi
+	if test ! -d $(CURSORDIR) ;then mkdir -p $(CURSORDIR); fi
 	#Copy the cursors
 
 	cp -Rf $(BUILDDIR)/* $(CURSORDIR)
 
 	#Copy the configuration file
-	cp -f  index.theme $(HOME)/.icons/crystalblue_nonanim/
+	cp -f  index.theme $(CURSORDIR)/../
 
 	#Create some symlinks
 	ln -sf left_ptr_watch $(CURSORDIR)/3ecb610c1bf2410f44200f48c40d3599 # left_ptr_watch
--- gray_src/Makefile
+++ gray_src/Makefile
@@ -1,4 +1,4 @@
-CURSORDIR=$(HOME)/.icons/crystalgray/cursors
+CURSORDIR=$(DESTDIR)/usr/share/icons/crystalgray/cursors
 BUILDDIR=../gray_cursors
 
 #Define here the animation cursor directories
@@ -34,16 +34,13 @@
 install: all
 	#Create necessary directories
 
-	if test ! -d $(HOME)/.icons ;then mkdir $(HOME)/.icons; fi
-	if test ! -d $(HOME)/.icons/default ;then mkdir $(HOME)/.icons/default;fi
-	if test ! -d $(HOME)/.icons/crystalgray ;then mkdir $(HOME)/.icons/crystalgray; fi
-	if test ! -d $(HOME)/.icons/crystalgray/cursors ;then mkdir $(HOME)/.icons/crystalgray/cursors; fi
+	if test ! -d $(CURSORDIR) ;then mkdir -p $(CURSORDIR); fi
 	#Copy the cursors
 
 	cp -Rf $(BUILDDIR)/* $(CURSORDIR)
 
 	#Copy the configuration file
-	cp -f  index.theme $(HOME)/.icons/crystalgray/
+	cp -f  index.theme $(DESTDIR)/usr/share/icons/crystalgray/
 
 	#Create some symlinks
 	ln -sf hand $(CURSORDIR)/hand1
--- gray_src/nonanim/Makefile
+++ gray_src/nonanim/Makefile
@@ -1,4 +1,4 @@
-CURSORDIR=$(DESTDIR)/usr/X11R6/lib/X11/icons/crystalgray_nonanim/cursors
+CURSORDIR=$(DESTDIR)/usr/share/icons/crystalgray_nonanim/cursors
 BUILDDIR=../../gray_cursors_nonanim
 
 
@@ -51,7 +51,6 @@
 
 watch.png: ../watch/watch12.png
 	ln -sf ../watch/watch12.png watch.png
-CURSORDIR=$(HOME)/.icons/crystalgray_nonanim/cursors
 BUILDDIR=../../gray_cursors_nonanim
 
 
@@ -78,16 +77,13 @@
 install: all
 	#Create necessary directories
 
-	if test ! -d $(HOME)/.icons ;then mkdir $(HOME)/.icons; fi
-	if test ! -d $(HOME)/.icons/default ;then mkdir $(HOME)/.icons/default;fi
-	if test ! -d $(HOME)/.icons/crystalgray_nonanim ;then mkdir $(HOME)/.icons/crystalgray_nonanim; fi
-	if test ! -d $(HOME)/.icons/crystalgray_nonanim/cursors ;then mkdir $(HOME)/.icons/crystalgray_nonanim/cursors; fi
+	if test ! -d $(CURSORDIR) ;then mkdir -p $(CURSORDIR); fi
 	#Copy the cursors
 
 	cp -Rf $(BUILDDIR)/* $(CURSORDIR)
 
 	#Copy the configuration file
-	cp -f  index.theme $(HOME)/.icons/crystalgray_nonanim/
+	cp -f  index.theme $(CURSORDIR)/../
 
 	#Create some symlinks
 	ln -sf left_ptr_watch $(CURSORDIR)/3ecb610c1bf2410f44200f48c40d3599 # left_ptr_watch
--- green_src/Makefile
+++ green_src/Makefile
@@ -1,4 +1,4 @@
-CURSORDIR=$(HOME)/.icons/crystalgreen/cursors
+CURSORDIR=$(DESTDIR)/usr/share/icons/crystalgreen/cursors
 BUILDDIR=../green_cursors
 
 #Define here the animation cursor directories
@@ -35,16 +35,13 @@
 install: all
 	#Create necessary directories
 
-	if test ! -d $(HOME)/.icons ;then mkdir $(HOME)/.icons; fi
-	if test ! -d $(HOME)/.icons/default ;then mkdir $(HOME)/.icons/default;fi
-	if test ! -d $(HOME)/.icons/crystalgreen ;then mkdir $(HOME)/.icons/crystalgreen; fi
-	if test ! -d $(HOME)/.icons/crystalgreen/cursors ;then mkdir $(HOME)/.icons/crystalgreen/cursors; fi
+	if test ! -d $(CURSORDIR) ;then mkdir -p $(CURSORDIR); fi
 	#Copy the cursors
 
 	cp -Rf $(BUILDDIR)/* $(CURSORDIR)
 
 	#Copy the configuration file
-	cp -f  index.theme $(HOME)/.icons/crystalgreen/
+	cp -f  index.theme $(DESTDIR)/usr/share/icons/crystalgreen
 
 	#Create some symlinks
 	ln -sf hand $(CURSORDIR)/hand1
--- green_src/nonanim/Makefile
+++ green_src/nonanim/Makefile
@@ -1,4 +1,4 @@
-CURSORDIR=$(DESTDIR)/usr/X11R6/lib/X11/icons/crystalgreen_nonanim/cursors/
+CURSORDIR=$(DESTDIR)/usr/share/icons/crystalgreen_nonanim/cursors/
 BUILDDIR=../../green_cursors_nonanim
 
 
@@ -51,7 +51,6 @@
 
 watch.png: ../watch/watch12.png
 	ln -sf ../watch/watch12.png watch.png
-CURSORDIR=$(HOME)/.icons/crystalgreen_nonanim/cursors
 BUILDDIR=../../green_cursors_nonanim
 
 
@@ -78,16 +77,13 @@
 install: all
 	#Create necessary directories
 
-	if test ! -d $(HOME)/.icons ;then mkdir $(HOME)/.icons; fi
-	if test ! -d $(HOME)/.icons/default ;then mkdir $(HOME)/.icons/default;fi
-	if test ! -d $(HOME)/.icons/crystalgreen_nonanim ;then mkdir $(HOME)/.icons/crystalgreen_nonanim; fi
-	if test ! -d $(HOME)/.icons/crystalgreen_nonanim/cursors ;then mkdir $(HOME)/.icons/crystalgreen_nonanim/cursors; fi
+	if test ! -d $(CURSORDIR) ;then mkdir -p $(CURSORDIR); fi
 	#Copy the cursors
 
 	cp -Rf $(BUILDDIR)/* $(CURSORDIR)
 
 	#Copy the configuration file
-	cp -f  index.theme $(HOME)/.icons/crystalgreen_nonanim/
+	cp -f  index.theme $(CURSORDIR)/../
 
 	#Create some symlinks
 	ln -sf left_ptr_watch $(CURSORDIR)/3ecb610c1bf2410f44200f48c40d3599 # left_ptr_watch
--- white_src/Makefile
+++ white_src/Makefile
@@ -1,4 +1,4 @@
-CURSORDIR=$(HOME)/.icons/crystalwhite/cursors
+CURSORDIR=$(DESTDIR)/usr/share/icons/crystalwhite/cursors
 BUILDDIR=../white_cursors
 
 #Define here the animation cursor directories
@@ -34,16 +34,13 @@
 install: all
 	#Create necessary directories
 
-	if test ! -d $(HOME)/.icons ;then mkdir $(HOME)/.icons; fi
-	if test ! -d $(HOME)/.icons/default ;then mkdir $(HOME)/.icons/default;fi
-	if test ! -d $(HOME)/.icons/crystalwhite ;then mkdir $(HOME)/.icons/crystalwhite; fi
-	if test ! -d $(HOME)/.icons/crystalwhite/cursors ;then mkdir $(HOME)/.icons/crystalwhite/cursors; fi
+	if test ! -d $(CURSORDIR) ;then mkdir -p $(CURSORDIR); fi
 	#Copy the cursors
 
 	cp -Rf $(BUILDDIR)/* $(CURSORDIR)
 
 	#Copy the configuration file
-	cp -f  index.theme $(HOME)/.icons/crystalwhite/
+	cp -f  index.theme $(DESTDIR)/usr/share/icons/crystalwhite/
 
 	#Create some symlinks
 	ln -sf hand $(CURSORDIR)/hand1
--- white_src/nonanim/Makefile
+++ white_src/nonanim/Makefile
@@ -1,4 +1,4 @@
-CURSORDIR=$(DESTDIR)/usr/X11R6/lib/X11/icons/crystalwhite_nonanim/cursors
+CURSORDIR=$(DESTDIR)/usr/share/icons/crystalwhite_nonanim/cursors
 BUILDDIR=../../white_cursors_nonanim
 
 
@@ -51,7 +51,6 @@
 
 watch.png: ../watch/watch12.png
 	ln -sf ../watch/watch12.png watch.png
-CURSORDIR=$(HOME)/.icons/crystalwhite_nonanim/cursors
 BUILDDIR=../../white_cursors_nonanim
 
 
@@ -78,16 +77,13 @@
 install: all
 	#Create necessary directories
 
-	if test ! -d $(HOME)/.icons ;then mkdir $(HOME)/.icons; fi
-	if test ! -d $(HOME)/.icons/default ;then mkdir $(HOME)/.icons/default;fi
-	if test ! -d $(HOME)/.icons/crystalwhite_nonanim ;then mkdir $(HOME)/.icons/crystalwhite_nonanim; fi
-	if test ! -d $(HOME)/.icons/crystalwhite_nonanim/cursors ;then mkdir $(HOME)/.icons/crystalwhite_nonanim/cursors; fi
+	if test ! -d $(CURSORDIR) ;then mkdir -p $(CURSORDIR); fi
 	#Copy the cursors
 
 	cp -Rf $(BUILDDIR)/* $(CURSORDIR)
 
 	#Copy the configuration file
-	cp -f  index.theme $(HOME)/.icons/crystalwhite_nonanim/
+	cp -f  index.theme $(CURSORDIR)/../
 
 	#Create some symlinks
 	ln -sf left_ptr_watch $(CURSORDIR)/3ecb610c1bf2410f44200f48c40d3599 # left_ptr_watch