File: rules

package info (click to toggle)
listen 0.4.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,520 kB
  • ctags: 1,629
  • sloc: python: 12,303; ansic: 224; makefile: 87; sh: 10
file content (30 lines) | stat: -rwxr-xr-x 777 bytes parent folder | download
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
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM=pycentral

DEB_MAKE_BUILD_TARGET    := listen 
DEB_MAKE_INSTALL_TARGET  := install DESTDIR=$(CURDIR)/debian/listen/

PYVER=$(shell pyversions -vr)

include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk

DEB_INSTALL_MANPAGES_listen = listen.1

build/listen::
	docbook2x-man debian/listen.1.docbook
	convert -resize 32x32 $(CURDIR)/src/images/listen.png $(CURDIR)/debian/listen.xpm

install/listen::
	chmod 755 debian/listen/usr/lib/listen/mutagen/_sanity.sh
	sed -i 's,/env python,/python${PYVER},g' debian/listen/usr/lib/listen/listen.py

binary-install/listen::
	dh_pycentral
	dh_python usr/lib/listen

clean::
	rm -f listen.1
	rm -f debian/listen.xpm