Warning, /libdbusmenu-qt/debian/rules is written in an unsupported language. File is not indexed.

0001 #!/usr/bin/make -f
0002 
0003 # Uncomment this to turn on verbose mode.
0004 #export DH_VERBOSE=1
0005 
0006 export DPKG_GENSYMBOLS_CHECK_LEVEL=4
0007 
0008 %:
0009         dh $@ --parallel --buildsystem=cmake
0010 
0011 override_dh_auto_configure:
0012         mkdir qt4
0013         mkdir qt5
0014         cd qt4 && QT_SELECT=qt4 cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_QT4=true -DCMAKE_BUILD_TYPE=RelWithDebInfo ../
0015         cd qt5 && QT_SELECT=qt5 cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_QT5=true -DCMAKE_BUILD_TYPE=RelWithDebInfo ../
0016 
0017 override_dh_auto_build:
0018         cd qt4 && make
0019         cd qt5 && make
0020 
0021 override_dh_clean:
0022         dh_clean
0023         rm -rf qt4
0024         rm -rf qt5
0025 
0026 override_dh_auto_install:
0027         cd qt4 && make DESTDIR=../debian/tmp install
0028         cd qt5 && make DESTDIR=../debian/tmp install
0029         echo "Removing embedded jquery javascript library..."
0030         rm debian/tmp/usr/share/doc/libdbusmenu-qt-doc/jquery.js
0031         rm debian/tmp/usr/share/doc/libdbusmenu-qt5-doc/jquery.js
0032 
0033 override_dh_install:
0034         dh_install --fail-missing
0035 
0036 override_dh_auto_test:
0037         echo "Skipping tests (can't test inside chroot)..."
0038 
0039 override_dh_gencontrol:
0040         # Ugly hack, since we don't want to have Qt5 as our depends, we prefer
0041         # those as Suggests for now
0042         sed -i '/^shlibs/s/libqt5[^,]*, //g' debian/libdbusmenu-qt5.substvars
0043         sed -i '/^shlibs/s/,[^,]* libqt5.*$$//' debian/libdbusmenu-qt5.substvars
0044 
0045         dh_gencontrol