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