File: rules

package info (click to toggle)
calligra-transitional 2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 40 kB
  • sloc: makefile: 8
file content (13 lines) | stat: -rwxr-xr-x 326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

CALLIGRA_VERSION := 1:2.4.3

BINARY_VERSION_NO_EPOCH := $(shell dpkg-parsechangelog | grep '^Version: ' | sed 's/^Version: \(\([[:digit:]]\+\):\)\?/\2/')
PACKAGES_VERSION := $(CALLIGRA_VERSION)+$(BINARY_VERSION_NO_EPOCH)

override_dh_gencontrol:
	dh_gencontrol -- \
	    '-v$(PACKAGES_VERSION)'

%:
	dh $@