File: rules

package info (click to toggle)
python-xstatic-jquery-ui 1.12.0.1%2Bdebian%2Bdfsg3-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 116 kB
  • sloc: python: 39; makefile: 22; sh: 14
file content (29 lines) | stat: -rwxr-xr-x 1,106 bytes parent folder | download
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
#!/usr/bin/make -f

UPSTREAM_GIT = hg::https://bitbucket.org/thomaswaldmann/xstatic-jquery_ui
include /usr/share/openstack-pkg-tools/pkgos.make

%:
	dh $@ --buildsystem=python_distutils --with python3

override_dh_auto_clean:
	echo "Do nothing..."

override_dh_auto_build:
	echo "Do nothing..."

override_dh_auto_install:
	pkgos-dh_auto_install --no-py2
	set -ex ; for i in $(CURDIR)/debian/python3-xstatic-jquery-ui/usr/lib/python3/dist-packages/xstatic/pkg/jquery_ui/data ; do \
		mkdir -p $$i/ui ; \
		ln -s /usr/share/javascript/jquery-ui/jquery-ui.js 				$$i/jquery-ui.js ; \
		ln -s /usr/share/javascript/jquery-ui/jquery-ui.js				$$i/ui/jquery-ui.js ; \
		ln -s /usr/share/javascript/jquery-ui/jquery-ui.min.js				$$i/jquery-ui.min.js ; \
		ln -s /usr/share/javascript/jquery-ui/jquery-ui.min.js				$$i/ui/jquery-ui.min.js ; \
		ln -s /usr/share/javascript/jquery-ui/css/smoothness/jquery-ui.css 		$$i/jquery-ui.css ; \
		ln -s /usr/share/javascript/jquery-ui/css/smoothness/jquery-ui.css 		$$i/ui/jquery-ui.css ; \
	done

override_dh_clean:
	dh_clean -O--buildsystem=python_distutils
	rm -rf build