File: rules

package info (click to toggle)
lua-lgi 0.9.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,368 kB
  • sloc: ansic: 5,082; makefile: 169; sh: 31
file content (26 lines) | stat: -rwxr-xr-x 605 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
#!/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:
	make -C tests all
	unset DBUS_SESSION_BUS_ADDRESS && GI_TYPELIB_PATH=tests LD_LIBRARY_PATH=tests xvfb-run dh_auto_test

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

override_dh_auto_clean:
	make -C tests clean
	dh_auto_clean