File: rules

package info (click to toggle)
razercfg 0.43-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 860 kB
  • sloc: ansic: 12,178; python: 1,825; sh: 183; makefile: 26
file content (34 lines) | stat: -rwxr-xr-x 1,490 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
33
34
#!/usr/bin/make -f

export LC_ALL=C.UTF-8
export RAZERCFG_PKG_BUILD=1
export systemdsystemunitdir=$(shell pkg-config --variable=systemdsystemunitdir systemd | sed s,^/,,)
export udevrulesdir=$(shell pkg-config --variable=udevdir udev | sed s,^/,,)

override_dh_auto_configure:
	dh_auto_configure -- -DLIBRAZER_SHARED=OFF

execute_after_dh_clean:
	rm -rf ui/build ui/pyrazer/__pycache__ ui/setup.py ui/razercfg.egg-info

override_dh_install:
	dh_install --exclude=librazer.a
	# The upstream tarball has several files with the timestamp set at epoch, fix them
	touch -m --no-create --date="$(shell dpkg-parsechangelog -Sdate)" \
		$(CURDIR)/debian/razercfg/etc/razer.conf \
		$(CURDIR)/debian/razercfg/usr/bin/razer-gamewrapper \
		$(CURDIR)/debian/razercfg/usr/lib/python3/dist-packages/pyrazer/__init__.py \
		$(CURDIR)/debian/razercfg/usr/lib/python3/dist-packages/pyrazer/main.py \
		$(CURDIR)/debian/razercfg/usr/lib/python3/dist-packages/pyrazer/ui.py \
		$(CURDIR)/debian/razercfg/usr/lib/tmpfiles.d/razerd.conf \
		$(CURDIR)/debian/qrazercfg/usr/share/icons/hicolor/scalable/apps/razercfg-alt.svg \
		$(CURDIR)/debian/qrazercfg/usr/share/icons/hicolor/scalable/apps/razercfg-snake.svg \
		$(CURDIR)/debian/qrazercfg/usr/share/icons/hicolor/scalable/apps/razercfg.svg

override_dh_installinit:
	dh_installinit --name=razerd
	touch -m --no-create --date="$(shell dpkg-parsechangelog -Sdate)" \
		$(CURDIR)/debian/razercfg/etc/init.d/razerd

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