File: rules

package info (click to toggle)
gedit-plugins 3.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 15,056 kB
  • ctags: 2,312
  • sloc: ansic: 9,148; python: 7,598; sh: 4,777; makefile: 544; xml: 61; awk: 4
file content (28 lines) | stat: -rwxr-xr-x 724 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
#!/usr/bin/make -f

include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

export PYTHON = /usr/bin/python3

%:
	dh $@ --with gnome,python3

override_dh_autoreconf:
	NOCONFIGURE=true dh_autoreconf ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-python \
		--enable-vala

override_dh_install:
	dh_install
	find debian/gedit-plugins -name '*.la' -delete

override_dh_python3:
	dh_python3 -pgedit-plugins --shebang=/usr/bin/python3 --no-ext-rename /usr/lib/$(DEB_HOST_MULTIARCH)/gedit/plugins
	dh_python3 -pgedit-plugins --shebang=/usr/bin/python3 --no-ext-rename /usr/share/gedit/plugins

override_dh_gencontrol:
	sh debian/description.sh >> debian/gedit-plugins.substvars
	dh_gencontrol