deb-mock/debian/rules
robojerk c0a78ae9dd
Some checks failed
Build and Publish Debian Package / build-deb (push) Failing after 1m26s
Build Deb-Mock Package / build (push) Successful in 53s
Test Deb-Mock Build / test (push) Successful in 59s
fix debian build: create directories before installing files
2025-08-04 00:30:44 +00:00

26 lines
No EOL
902 B
Makefile
Executable file

#!/usr/bin/make -f
# dh_python3 will install the python modules
# and handle byte-compilation
export PYBUILD_NAME=deb-mock
%:
dh $@ --with python3
override_dh_auto_install:
dh_auto_install
# Create necessary directories
mkdir -p debian/deb-mock/usr/bin
mkdir -p debian/deb-mock/usr/share/deb-mock/configs
mkdir -p debian/deb-mock/usr/share/doc/deb-mock
# Install the deb-mock executable
install -D -m 755 deb_mock/cli.py debian/deb-mock/usr/bin/deb-mock
# Install configuration files
install -D -m 644 deb_mock/configs/*.yaml debian/deb-mock/usr/share/deb-mock/configs/
# Install documentation
install -D -m 644 README.md debian/deb-mock/usr/share/doc/deb-mock/README.md
install -D -m 644 docs/*.md debian/deb-mock/usr/share/doc/deb-mock/ 2>/dev/null || true
override_dh_auto_test:
# Skip tests during package build - they're run in CI/CD
@echo "Skipping tests during package build"