| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
%: |
| 4 |
dh $@ --with python3 |
| 5 |
|
| 6 |
clean: |
| 7 |
./waf distclean |
| 8 |
rm -fr build .lock-waf* po/.intlcache |
| 9 |
find Documentation -name "*.html" -delete |
| 10 |
find waflib -name "*.pyc" -delete |
| 11 |
dh $@ |
| 12 |
|
| 13 |
override_dh_auto_configure: |
| 14 |
PYTHONDIR=/usr/share/kupfer ./waf configure --prefix=/usr --nopyc --nopyo \ |
| 15 |
--bindir=/usr/share/kupfer --no-runtime-deps --no-hooks |
| 16 |
|
| 17 |
override_dh_auto_install: |
| 18 |
./waf install --destdir=$(CURDIR)/debian/kupfer |
| 19 |
install -m 0755 $(CURDIR)/build/bin/kupfer $(CURDIR)/debian/kupfer/usr/share/kupfer/kupfer-activate.sh |
| 20 |
mkdir -p $(CURDIR)/debian/kupfer/usr/share/icons/hicolor/16x16/apps/ |
| 21 |
install -m 0644 $(CURDIR)/debian/hicolor/16x16/apps/kupfer.png \ |
| 22 |
$(CURDIR)/debian/kupfer/usr/share/icons/hicolor/16x16/apps/kupfer.png |
| 23 |
rm -fv $(CURDIR)/debian/kupfer/usr/share/kupfer/kupfer/kupfer |
| 24 |
rm -fv $(CURDIR)/debian/kupfer/usr/share/gnome/help/kupfer/*/license.page |
| 25 |
rm -fv $(CURDIR)/debian/kupfer/usr/share/kupfer/art/COPYING |
| 26 |
|
| 27 |
execute_before_dh_installdocs: |
| 28 |
make -C Documentation |
| 29 |
|
| 30 |
# Do not build man page by ourselves now |
| 31 |
#execute_before_dh_installman: |
| 32 |
# rst2man Documentation/Manpage.rst build/kupfer.1 |
| 33 |
|
| 34 |
override_dh_installchangelogs: |
| 35 |
dh_installchangelogs NEWS |