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