File: rules

package info (click to toggle)
lua-lgi 0.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 1,344 kB
  • sloc: ansic: 5,082; makefile: 174; sh: 31
file content (32 lines) | stat: -rwxr-xr-x 758 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
30
31
32
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem=lua --with lua

override_dh_auto_configure:
	make -C lgi version.lua VERSION=$(DEB_VERSION_UPSTREAM)
	if [ ! -e /usr/share/gobject-introspection-1.0/tests/config.h ]; then\
		touch config.h;\
	fi
	dh_auto_configure

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	make -C tests all
	unset DBUS_SESSION_BUS_ADDRESS && GI_TYPELIB_PATH=tests LD_LIBRARY_PATH=tests xvfb-run dh_auto_test
endif

override_dh_compress:
	dh_compress -X.ui -X.md -X.lua

override_dh_auto_clean:
	rm -f lgi/version.lua
	make -C tests clean
	dh_auto_clean

override_dh_strip:
	dh_strip --dbgsym-migration='lua-lgi-dbg (<< 0.9.2-1~)'