1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DH_OPTIONS =
export DH_GOLANG_INSTALL_ALL = 1
export DH_GOLANG_GO_GENERATE = 1
%:
dh $@ --builddirectory=_build --buildsystem=golang --with=golang
override_dh_auto_build:
dh_auto_build -- -ldflags "-X 'main.defaultQmlPath=/usr/share/ciborium/qml'"
override_dh_auto_install:
dh_auto_install --destdir=debian/tmp
# translations
appname=ciborium; \
for pofile in po/*.po; do \
pofilename="$${pofile##*/}"; \
langcode="$${pofilename%.*}"; \
localedir="debian/tmp/usr/share/locale/$$langcode/LC_MESSAGES"; \
mkdir -p $$localedir; \
mofile="$$localedir/$$appname.mo"; \
msgfmt -o $$mofile $$pofile; \
done
get-orig-source:
uscan --noconf --force-download --rename --download-current-version --destdir=..
|