| 1 |
|
| 2 |
|
| 3 |
PACKAGE = $(firstword $(shell grep Package debian/control | cut -d: -f2)) |
| 4 |
|
| 5 |
include /usr/share/dpkg/default.mk |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ --buildsystem=meson |
| 9 |
|
| 10 |
execute_after_dh_auto_build: |
| 11 |
@upstream_ver=$(shell meson introspect --projectinfo obj-*/ | jq -r .version); \ |
| 12 |
deb_ver=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/+.*//'); \ |
| 13 |
[ $$upstream_ver = $$deb_ver ] || \ |
| 14 |
( echo ; echo ERROR: Upstream version needs to be bumped: metadata says $$upstream_ver, packaging says $(DEB_VERSION_UPSTREAM); echo ; exit 1 ) |
| 15 |
|
| 16 |
execute_after_dh_auto_install: |
| 17 |
mv debian/$(PACKAGE)/usr/share/$(PACKAGE)/*/ debian/$(PACKAGE)/usr/lib/python3/dist-packages/ |
| 18 |
|
| 19 |
execute_before_dh_installchangelogs: |
| 20 |
appstreamcli metainfo-to-news --format=text $(firstword $(wildcard debian/*/usr/share/metainfo/*.xml)) debian/NEWS.upstream |