2024-08-05 16:19:50 +02:00
|
|
|
#!/usr/bin/make -f
|
2024-08-05 15:57:49 +02:00
|
|
|
|
2024-08-05 16:19:50 +02:00
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
2024-08-05 15:57:49 +02:00
|
|
|
|
2024-08-05 16:19:50 +02:00
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
2024-08-05 15:57:49 +02:00
|
|
|
|
2024-08-05 16:19:50 +02:00
|
|
|
AbiVirtualPackageVersion = $(call dpkg_late_eval,AbiVirtualPackageVersion,echo '${DEB_VERSION_UPSTREAM}' | sed -e 's/\.[0-9]\+$$//')
|
|
|
|
pkgs_lib = $(filter-out %-dev %-dbg %-bin %-data,$(filter lib%,$(shell dh_listpackages)))
|
2024-08-05 15:57:49 +02:00
|
|
|
|
2024-08-05 16:19:50 +02:00
|
|
|
%:
|
|
|
|
dh $@ --with kf5
|
2024-08-05 15:57:49 +02:00
|
|
|
|
2024-08-05 16:19:50 +02:00
|
|
|
override_dh_makeshlibs:
|
|
|
|
for pkg in $(pkgs_lib); do \
|
|
|
|
name=$$( echo "$${pkg}" | sed -e 's/abi[0-9]\+\s*//'); \
|
|
|
|
echo "ABI:VirtualPackage=$${name}-${AbiVirtualPackageVersion}" >> debian/$${pkg}.substvars; \
|
|
|
|
dh_makeshlibs -p$${pkg} -V "$${pkg} (>= $(DEB_VERSION_EPOCH_UPSTREAM)), $${name}-${AbiVirtualPackageVersion}"; \
|
|
|
|
done
|
2024-08-05 15:57:49 +02:00
|
|
|
|
2024-08-05 16:19:50 +02:00
|
|
|
override_dh_auto_test:
|
|
|
|
- dh_auto_test --no-parallel
|