corectrl/debian/rules
ferreo 70e1481ce6
Some checks failed
PikaOS Package Build & Release (amd64-v3) / build (push) Failing after 1m28s
Update debian packaging: add README, clean rules, include patches, and adjust dependencies for cross-building and testing
2024-11-26 15:24:41 +00:00

25 lines
619 B
Makefile
Executable File

#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
DEBARCH:=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
-DCatch2_DIR=/usr/lib/cmake/Catch2 \
-DBUILD_TESTING=ON
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"