| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 7 |
export DEB_PYTHON_INSTALL_LAYOUT=deb_system |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --with python3 |
| 11 |
|
| 12 |
override_dh_auto_configure: |
| 13 |
dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR=lib/ledger -DBUILD_DOCS=1 -DBUILD_WEB_DOCS=1 -DUSE_PYTHON=ON |
| 14 |
|
| 15 |
override_dh_auto_build: |
| 16 |
dh_auto_build -- all doc |
| 17 |
|
| 18 |
override_dh_auto_install: |
| 19 |
# do not care about shipping convenience library |
| 20 |
# as a public one, it's for private eyes only |
| 21 |
dh_auto_install |
| 22 |
rm -rf debian/*/usr/include/ |
| 23 |
rm -rf debian/*/usr/lib/ledger/libledger.so |
| 24 |
|
| 25 |
execute_after_dh_install: |
| 26 |
find debian/python3-ledger -name "ledger*.so" -exec chrpath -d {} \; |
| 27 |
rm -f debian/ledger/usr/share/doc/ledger/contrib/non-profit-audit-reports/GPLv3 |
| 28 |
rm -f debian/ledger/usr/share/doc/ledger/contrib/non-profit-audit-reports/LICENSE |
| 29 |
|
| 30 |
override_dh_compress: |
| 31 |
dh_compress -X.pdf |
| 32 |
|
| 33 |
override_dh_makeshlibs: |
| 34 |
dh_makeshlibs -Xusr/lib/ledger/ |