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 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
CXXFLAGS += -std=c++11
%:
dh $@
override_dh_autoreconf:
dh_autoreconf ./autogen.sh
override_dh_auto_configure:
dh_auto_configure -- \
--libexecdir=\$${prefix}/lib/gnome-applets \
--disable-dependency-tracking \
--disable-static \
--enable-dbus \
--enable-gnome45 \
--enable-gsettings \
--enable-indicator \
--enable-exercises \
--enable-mate \
--enable-xfce \
--disable-gconf
override_dh_compress:
dh_compress --exclude=gnuplot-workrave --exclude=workrave-dump
override_dh_install:
find debian -name '*.la' -print -delete
find debian -name 'libworkrave-*private*.so' -print -delete
dh_install
override_dh_missing:
dh_missing --fail-missing
override_dh_installexamples-arch:
dh_installexamples
chmod +x $(CURDIR)/debian/workrave/usr/share/doc/workrave/examples/gnuplot-workrave
chmod +x $(CURDIR)/debian/workrave/usr/share/doc/workrave/examples/workrave-dump
override_dh_auto_test:
override_dh_gencontrol:
dh_gencontrol -- \
-Vgnome:MinimumVersion=$(shell python3 -c "import json; \
print(min(int(x) for x in json.load(open('frontend/applets/gnome-shell-45/src/metadata.json.in', 'rt'))['shell-version']))") \
-Vgnome:MaximumVersion=$(shell python3 -c "import json; \
print(1+max(int(x) for x in json.load(open('frontend/applets/gnome-shell-45/src/metadata.json.in', 'rt'))['shell-version']))")
|