Rev 3 | Rev 8 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/usr/bin/make -f# -*- makefile -*-# Uncomment this to turn on verbose mode.#export DH_VERBOSE=1# set some variablesICONDIR=usr/share/iconsSHAREDIR=usr/share/crystalcursorsWRAPPERDIR=etc/X11/cursorsbuild: build-indepbuild-indep: build-stampbuild-stamp:dh_testdir$(MAKE)touch build-stampclean:dh_testdirdh_testrootrm -f build-stamp configure-stamp$(MAKE) cleandh_cleaninstall: build-indepdh_testdirdh_testrootdh_prepdh_installdirs# Add here commands to install the package into debian/crystalcursors.$(MAKE) install PREFIX=$(CURDIR)/debian/crystalcursors/$(ICONDIR)find $(CURDIR)/debian/crystalcursors/$(ICONDIR) -type f -exec chmod 644 {} \;find $(CURDIR)/debian/crystalcursors/$(ICONDIR) -type d -exec chmod 755 {} \;# Don't overwrite system's default xcursor, just provide the directoryrm -r $(CURDIR)/debian/crystalcursors/$(ICONDIR)/default/*# Find *.theme and copy 'em to wrapper-location (see #365072)# We have to change the Inherits line in (only) in the wrapper *.themes:# 1) find .themes# 2) remove lines with "Inherits" and save as tmp# 3) write new Inherits-line with name of the directory in /usr/share/icons# -- I know this is tricky, but I have not yet found a more elegant way to make# crystalcursors work with debian's update-alternativeOLDDIR=`pwd` ;\cd $(CURDIR)/debian/crystalcursors/$(ICONDIR); \for theme in crystal*; do \grep -v Inherits $(CURDIR)/debian/crystalcursors/$(ICONDIR)/$${theme}/index.theme > tmp ; \echo "Inherits = $${theme}" >> tmp ; \install -m 644 tmp $(CURDIR)/debian/crystalcursors/$(WRAPPERDIR)/$${theme}.theme; \rm tmp; \done ; \cd $${OLDDIR}binary-indep: build-indep installdh_testdirdh_testrootdh_installchangelogs CHANGELOGdh_installdocs# dh_installdh_compressdh_fixpermsdh_installdebdh_shlibdepsdh_gencontroldh_md5sumsdh_builddebbinary-arch:# No arch-dependent packagesbinary: binary-indep.PHONY: build-indep build clean binary-indep binary-arch binary install configure