File: rules

package info (click to toggle)
terminator 1.91-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,128 kB
  • sloc: python: 8,721; sh: 37; makefile: 28
file content (38 lines) | stat: -rwxr-xr-x 1,009 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
35
36
37
38
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1
export PYBUILD_NAME=terminator

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

override_dh_auto_install:
	python3 setup.py \
	--without-icon-cache \
	install \
	--install-lib=usr/share/terminator/ \
	--install-data=usr/ \
	--install-scripts=usr/share/terminator/ \
	--root=$(CURDIR)/debian/terminator/ \
	--no-compile -O0

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_clean:
	rm -rf build/
	rm -f data/terminator.desktop
	rm -f po/.intltool-merge-cache
	find . -name '*.pyc' -delete

# version should be X.Y+bzr-REV-1, e.g. 1.90+bzr-1705-1 for bzr r1705
DEBVERSION := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
REV := $(shell echo $(DEBVERSION) | cut -d'-' -f2)
VER := $(shell echo $(DEBVERSION) | cut -d'-' -f-2)

get-orig-source:
	bzr branch -r $(REV) lp:terminator/gtk3
	rm -rf gtk3/.bzr*
	mv gtk3 terminator-$(VER)
	tar cJf terminator_$(VER).orig.tar.xz terminator-$(VER)
	rm -rf terminator-$(VER)