#!/usr/bin/make -f # # $Id$ TOPDIR=$(shell /bin/pwd) DEB_DH_ALWAYS_EXCLUDE := .svn:downloads srcname = openlayers6 package = dojo-$(srcname) # docdir = debian/tmp/usr/share/doc/$(package) DESTDIR = $(TOPDIR)/debian/$(package)/usr/share/dojo/htdocs/openlayers6 TMPDIR = $(TOPDIR)/debian/tmp ol6_version=v6.2.1 INSTALL_PROGRAM = install %: dh $@ clean:: cd debian && rm -rf *.substvars *.log devhost.txt.gz files dojo-openlayers6 tmp rm -f common-install-indep override_dh_auto_install:: rm -rf $(TMPDIR) rm -rf $(DESTDIR) mkdir -pv $(TMPDIR) mkdir -pv $(DESTDIR) cd $(TMPDIR); wget https://github.com/openlayers/openlayers/releases/download/$(ol6_version)/$(ol6_version)-dist.zip cd $(TMPDIR); unzip $(ol6_version)-dist.zip mv $(TMPDIR)/$(ol6_version)-dist/*.js $(TMPDIR)/$(ol6_version)-dist/*.css $(DESTDIR) touch common-install-indep