| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode. |
| 5 |
#export DH_VERBOSE=1 |
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ |
| 11 |
|
| 12 |
override_dh_auto_configure: |
| 13 |
dh_auto_configure -- BINDIR=/usr/bin LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) DATADIR=/usr/share |
| 14 |
|
| 15 |
override_dh_install: |
| 16 |
dh_install |
| 17 |
# workaround for missing desktop file substitution upstream |
| 18 |
sed -i \ |
| 19 |
-e '/^Exec=/s, UBsync-ui/, /usr/share/UBsync-ui/,' \ |
| 20 |
debian/lomiri-cloudsync-app/usr/share/applications/lomiri-cloudsync-app.desktop |
| 21 |
# install wrapper script, so we can launch lomiri-cloudsync-app from the terminal |
| 22 |
mkdir -p debian/lomiri-cloudsync-app/usr/bin/ |
| 23 |
cp debian/bin/lomiri-cloudsync-app debian/lomiri-cloudsync-app/usr/bin/ |
| 24 |
|
| 25 |
override_dh_auto_test: |
| 26 |
# broken upstream |
| 27 |
|
| 28 |
override_dh_auto_clean: |
| 29 |
dh_auto_clean |
| 30 |
rm -fv po/*.po.updated |
| 31 |
rm -f UBsync-ui/lomiri-cloudsync-app.desktop |
| 32 |
rm -f UBsync-ui/lomiri-cloudsync-app.desktop.in.h |
| 33 |
-find po/ -name '*.mo' -delete |
| 34 |
|
| 35 |
get-orig-source: |
| 36 |
uscan --noconf --force-download --rename --download-current-version --destdir=.. |