File: rules

package info (click to toggle)
songwrite 0.14-8
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,452 kB
  • ctags: 993
  • sloc: python: 7,059; xml: 850; makefile: 11
file content (19 lines) | stat: -rwxr-xr-x 702 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

include /usr/share/cdbs/1/rules/debhelper.mk
DEB_PYTHON_SYSTEM = pysupport
include /usr/share/cdbs/1/class/python-distutils.mk

DEB_PYTHON_INSTALL_ARGS_ALL += --install-lib=/usr/share

binary-install/songwrite::
	find debian/$(cdbs_curpkg)/usr/share/ -type f -exec chmod -R a-x {} \;
	#
	mkdir -p debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/
	mv debian/$(cdbs_curpkg)/usr/share/$(cdbs_curpkg)/doc/* debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/
	rmdir debian/$(cdbs_curpkg)/usr/share/$(cdbs_curpkg)/doc
	#
	find debian/$(cdbs_curpkg)/usr/share/locale -name "*.po" -exec rm {} \;
	#
	rm debian/$(cdbs_curpkg)/usr/share/*.egg-info