notcurses/debian/rules

24 lines
695 B
Plaintext
Raw Normal View History

2019-11-17 10:15:40 +00:00
#!/usr/bin/make -f
DEB_HOST_MULTIARCH?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
2019-11-17 10:15:40 +00:00
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME=notcurses
2019-11-17 10:15:40 +00:00
%:
2020-02-01 19:35:38 +00:00
dh $@ --buildsystem=cmake
2019-11-17 10:15:40 +00:00
override_dh_auto_configure:
dh_auto_configure -- -DDFSG_BUILD=ON
override_dh_auto_build:
dh_auto_build
cd python && python3 setup.py build_ext -L../obj-$(DEB_HOST_MULTIARCH) -I../include
cd python && python3 setup.py build_py
2020-01-28 21:43:02 +00:00
override_dh_auto_install:
dh_auto_install -B $(BUILDDIR)
cd python && python3 setup.py install --prefix=/usr --skip-build --root=../debian/tmp --install-layout=deb --single-version-externally-managed
2020-02-09 01:49:33 +00:00
rm -rf debian/tmp/usr/lib/python3/dist-packages/__pycache__