File: rules

package info (click to toggle)
update-manager 0.42.2ubuntu22-11
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,908 kB
  • ctags: 753
  • sloc: python: 3,738; sh: 2,971; xml: 1,571; makefile: 690; ansic: 38
file content (48 lines) | stat: -rwxr-xr-x 1,976 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM := pysupport

GNOME_DOWNLOAD_URL = http://archive.ubuntu.com/ubuntu/pool/main/u/update-manager/$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).tar.gz

include /usr/share/cdbs/1/rules/buildcore.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

clean::
	-find po/mo -name \*mo -exec rm {} \;
	for pofile in po/*.debackup; do \
		if [ $${pofile} = 'po/*.debackup' ]; then break; fi; \
		mv $${pofile} $$(echo $${pofile} | sed 's,.debackup$$,,'); \
	done

post-patches::
	for pofile in debian/pos/*.po; do \
		poname=$$(basename $${pofile}); \
		test -f po/$${poname}.debackup || \
			mv po/$${poname} po/$${poname}.debackup || true; \
		cp -af $${pofile} po/; \
	done

binary-post-install/update-manager::
	# replace Ubuntu logo with Debian one
	uudecode < debian/software-properties.png.uu && \
		mv software-properties.png \
			debian/update-manager/usr/share/icons/hicolor/48x48/apps/
	# install default configuration for the APT::Periodic feature
	install -D -m 644 -o root -g root debian/10periodic \
		debian/update-manager/etc/apt/apt.conf.d/10periodic

	rm -rf debian/update-manager/usr/share/gnome/help/update-manager/C
	uudecode < debian/manual.tar.uu && \
		tar -C debian/update-manager/usr/share/gnome/help/update-manager/ -xpf manual.tar && \
		rm manual.tar

# copied from CDBS; I cannot use gnome.mk, for it includes autotools.mk
# although this package does not use autotools; the build, thus, fails.
$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
	dh_scrollkeeper -p$(cdbs_curpkg) $(DEB_DH_SCROLLKEEPER_ARGS)
	$(if $(wildcard /usr/bin/dh_gconf),dh_gconf -p$(cdbs_curpkg) $(DEB_DH_GCONF_ARGS))
	$(if $(wildcard /usr/bin/dh_desktop),dh_desktop -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS))