1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
#!/usr/bin/make -f
ICONDIR=usr/share/icons
WRAPPERDIR=etc/X11/cursors
PKG=chameleon-cursor-theme
build: build-indep
build-arch:
build-indep:
clean:
dh_testdir
dh_testroot
rm -rf Chameleon-Mint-* Chameleon-Purple-*
dh_clean
install:
dh_testdir
dh_testroot
dh_prep
dh_installdirs
rm -rf Chameleon-Mint-* Chameleon-Purple-*
set -e; \
for y in Large Regular Small; \
do \
cp -pr Chameleon-DarkSkyBlue-$$y-0.5 Chameleon-Mint-$$y-0.5; \
find Chameleon-Mint-$$y-0.5 -name '*.png'|while read f; \
do \
convert "$$f" -fill '#00ff00' -colorspace HSV -colorize 50,0,0 "$$f"; \
done; \
cp -pr Chameleon-DarkSkyBlue-$$y-0.5 Chameleon-Purple-$$y-0.5; \
find Chameleon-Purple-$$y-0.5 -name '*.png'|while read f; \
do \
convert "$$f" -fill '#ff0000' -colorspace HSV -colorize 50,0,0 "$$f"; \
done; \
done; \
for x in Anthracite DarkSkyBlue Pearl SkyBlue White Mint Purple; \
do \
for y in Large Regular Small; \
do \
scheme="Chameleon-$$x-$$y"; \
dest="$(CURDIR)/debian/$(PKG)/$(ICONDIR)/$$scheme/cursors/"; \
mkdir -p "$$dest"; \
export dest; \
echo "dest=$$dest";echo "scheme=$$scheme";echo "CURDIR=$(CURDIR)"; \
(cd "$$scheme-0.5/cursors" && \
export dest && \
$(MAKE) -f "$(CURDIR)/debian/cursors-Makefile"); \
sed <"$$scheme-0.5/index.theme" >"$$dest/../cursor.theme" \
"s/^Inherits=.*/Inherits=$$scheme/"; \
ln -s "/usr/share/icons/$$scheme/cursor.theme" \
"$(CURDIR)/debian/$(PKG)/etc/X11/cursors/$$scheme.theme"; \
done; \
done
binary-indep: install
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs
dh_install debian/lintian-overrides/$(PKG) /usr/share/lintian/overrides/
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch:
binary: binary-indep binary-arch
get-orig-source:
sh debian/makeorig
.PHONY: clean binary-indep binary-arch binary install
|