| 1 |
#!/usr/bin/make -f
|
| 2 |
|
| 3 |
%:
|
| 4 |
dh $@ --with quilt
|
| 5 |
|
| 6 |
override_dh_auto_configure:
|
| 7 |
lrelease global_resources/translations/*.ts
|
| 8 |
qmake-qt4 -r -config release "CONFIG+=LINUX_INTEGRATED" "INSTALL_ROOT_PATH=$(CURDIR)/debian/tmp/usr/" freediams.pro
|
| 9 |
|
| 10 |
# Upstream does not seem to provide a proper clean target - clean up here
|
| 11 |
override_dh_auto_clean:
|
| 12 |
rm -rf bin/plugins/* bin/freediams
|
| 13 |
find build -type d -name "\.*" -exec rm -rf \{\} \; 2> /dev/null || true
|
| 14 |
rm -rf contrib/quazip/libz.a
|
| 15 |
test ! -f Makefile || make distclean
|
| 16 |
|
| 17 |
override_dh_auto_install:
|
| 18 |
make install
|
| 19 |
|
| 20 |
override_dh_install:
|
| 21 |
# Install documentation
|
| 22 |
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/freediams/en
|
| 23 |
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/freediams/fr
|
| 24 |
cp -a global_resources/doc/freediams/en/html/* $(CURDIR)/debian/tmp/usr/share/doc/freediams/en
|
| 25 |
cp -a global_resources/doc/freediams/fr/html/* $(CURDIR)/debian/tmp/usr/share/doc/freediams/fr
|
| 26 |
|
| 27 |
# Remove those Links to dynamic libraries which have no version number (this should only
|
| 28 |
# be provided in -dev packages. But some *.so files are real files without version number
|
| 29 |
# FIXME
|
| 30 |
# find $(CURDIR)/debian/tmp/usr/lib/freediams -type l -name "*.so" -exec rm -f \{\} \;
|
| 31 |
|
| 32 |
# remove doc files from /usr/bin
|
| 33 |
rm -f debian/tmp/usr/bin/[CR]*
|
| 34 |
|
| 35 |
dh_install --autodest
|
| 36 |
|
| 37 |
override_dh_shlibdeps::
|
| 38 |
LD_LIBRARY_PATH=debian/tmp/usr/lib/freediams dh_shlibdeps -l/usr/lib/freediams
|
| 39 |
|
| 40 |
override_dh_installdeb:
|
| 41 |
# remove extra license file
|
| 42 |
rm -f $(CURDIR)/debian/freediams-data/usr/share/freediams/textfiles/COPYING.txt
|
| 43 |
dh_installdeb
|