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 32 33 34 35 36 37 38 39 40
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2006-2008 Sergio Talens-Oliag <sto@debian.org>
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
# Use dh_pysupport and dh_python
binary-install/gvrng::
dh_pysupport -p$(cdbs_curpkg) usr/share/GvRng
dh_python -p$(cdbs_curpkg) usr/share/GvRng
# Recompress manpage to get max compression
manpage = debian/$(cdbs_curpkg)/usr/share/man/man1/gvrng.1
binary-install/gvrng::
[ -f $(manpage).gz ] && gunzip $(manpage).gz && gzip -9 $(manpage) || true
# Fix file permisions
binary-install/gvrng::
chmod +x debian/$(cdbs_curpkg)/usr/share/GvRng/gvrng.py
chmod +x debian/$(cdbs_curpkg)/usr/share/GvRng/po/generate_pot.py
chmod -x debian/$(cdbs_curpkg)/usr/share/GvRng/bitmaps/*
# Build locale files
binary-install/gvrng::
for f in gvrng gvr_gtk; do \
for po in `ls po/*/$$f.po`; do \
lang=`echo $$po | sed -e "s%po/%%;s%/$$f.po%%"`; \
mkdir -p debian/$(cdbs_curpkg)/usr/share/locale/$$lang/LC_MESSAGES/; \
msgfmt $$po -o debian/$(cdbs_curpkg)/usr/share/locale/$$lang/LC_MESSAGES/$$f.mo; \
done \
done
# Register the .desktop file
install/gvrng::
dh_desktop
# Remove unneded files for gvr-lessons metapackage
binary-predeb/gvr-lessons::
rm -f debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/changelog.gz
|