#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 # see FEATURE AREAS in dpkg-buildflags(1) export DEB_BUILD_MAINT_OPTIONS = hardening=+all export QT_SELECT := 6 include /usr/share/dpkg/default.mk # for SOURCE_DATE_EPOCH include /usr/share/dpkg/pkg-info.mk # For transition from goldendict to goldendict-ng # see https://bugs.debian.org/1093551 # # To ensure ascending version string, use the date from # SOURCE_DATE_EPOCH. See https://bugs.debian.org/1096751 # Keep the unstable date prefix so the backport version sorts below unstable. _VERSION_DATE := 20261023 VERSION_GOLDENDICT = 1.5.0+git$(_VERSION_DATE)+rm _DEB_VERSION_REVISION = $(shell echo $(DEB_VERSION) | sed -e 's/^.*-//g') %: dh $@ --buildsystem=cmake override_dh_auto_configure: dh_auto_configure -- \ -DWITH_ZIM=ON \ -DWITH_FFMPEG_PLAYER=ON \ -DWITH_EPWING_SUPPORT=ON \ $(NULL) execute_before_dh_auto_configure: # Use the packaged jQuery. ln -sf /usr/share/javascript/jquery/jquery.min.js src/scripts/jquery-3.6.0.slim.min.js override_dh_gencontrol: dh_gencontrol -pgoldendict -- -v$(VERSION_GOLDENDICT)-$(_DEB_VERSION_REVISION) dh_gencontrol --remaining-packages