2023-02-23 21:01:01 +01:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2024-11-26 16:24:41 +01:00
|
|
|
include /usr/share/dpkg/architecture.mk
|
|
|
|
DEBARCH:=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
2023-02-23 21:01:01 +01:00
|
|
|
|
|
|
|
%:
|
2024-11-26 16:24:41 +01:00
|
|
|
dh $@
|
2023-02-23 21:01:01 +01:00
|
|
|
|
2024-11-23 02:26:39 +01:00
|
|
|
override_dh_auto_configure:
|
2024-11-26 16:24:41 +01:00
|
|
|
dh_auto_configure -- \
|
|
|
|
-DCatch2_DIR=/usr/lib/cmake/Catch2 \
|
|
|
|
-DBUILD_TESTING=ON
|
2024-11-23 02:26:39 +01:00
|
|
|
|
2024-11-26 16:24:41 +01:00
|
|
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
dh_auto_install
|
|
|
|
mkdir -p debian/corectrl/usr/lib/$(DEBARCH)/corectrl/
|
|
|
|
mv debian/corectrl/usr/lib/$(DEBARCH)/libcorectrl.so debian/corectrl/usr/lib/$(DEBARCH)/corectrl/
|
|
|
|
|
|
|
|
execute_after_dh_install:
|
|
|
|
patchelf --replace-needed libcorectrl.so /usr/lib/$(DEBARCH)/corectrl/libcorectrl.so debian/corectrl/usr/bin/corectrl
|
|
|
|
|
|
|
|
override_dh_dwz:
|
|
|
|
@echo "BYE DWZ"
|