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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
#
UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -n -e's/^Version: \(.*\)-[^-]\+/\1/p')
%:
dh $@
override_dh_auto_install:
slimit -m \
jquery.colorbox.js \
> \
debian/libjs-jquery-colorbox/usr/share/javascript/jquery-colorbox/jquery.colorbox-min.js
override_dh_installexamples:
dh_installexamples
find debian/libjs-jquery-colorbox/usr/share/doc/libjs-jquery-colorbox/examples \
-name "*.html" \
-type f \
-exec sed \
-i 's@script src=".*jquery.min.js"@script src="/usr/share/javascript/jquery/jquery.min.js"@g;s@script src="../jquery.colorbox.js"@script src="/usr/share/javascript/jquery-colorbox/jquery.colorbox.js"@g' \
'{}' \;
override_dh_installchangelogs:
dh_installchangelogs README.md
get-orig-source:
@if [ ! -d "debian" ] ; then \
echo 'Run this from the top directory of the Debian source' >&2; \
exit 1; \
fi
wget https://github.com/jackmoore/colorbox/archive/$(UPSTREAM_VERSION).tar.gz \
-O ../jquery-colorbox_$(UPSTREAM_VERSION).orig.tar.gz;
|