Codebase list sugar-log-activity / 99cf0e0
simplify build; build-depend on dh-linktree dh-sequence-python3 (not cdbs dh-python) Jonas Smedegaard 3 years ago
5 changed file(s) with 20 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
55 Jonas Smedegaard <dr@jones.dk>,
66 Elías Alejandro Año Mendoza <ealmdz@gmail.com>,
77 Build-Depends:
8 cdbs,
98 debhelper,
10 dh-python,
9 dh-linktree,
10 dh-sequence-python3,
1111 python3,
1212 python3-sugar3,
1313 unzip,
0 NEWS
1 README.md
0 usr/share
0 embed-weakdep usr/share/common-licenses/GPL-2 usr/share/sugar/activities/Log.activity/COPYING
00 #!/usr/bin/make -f
11
2 include /usr/share/cdbs/1/class/python-sugar.mk
3 include /usr/share/cdbs/1/rules/debhelper.mk
2 include /usr/share/dpkg/pkg-info.mk
43
5 pkg = $(DEB_SOURCE_PACKAGE)
4 PKG = $(DEB_SOURCE)
65
6 export PYBUILD_SYSTEM = custom
7 export PYBUILD_INSTALL_ARGS = HOME=debian/fakehome \
8 && mkdir --parents "$$HOME" \
9 && /usr/bin/python3 setup.py install --destdir debian/tmp \
10 && rm -rf "$$HOME"
11
12 # omit git hint files
13 %:
14 dh $@ --with linktree --buildsystem=pybuild -X.git
15
16 execute_after_dh_install:
717 # Fix broken paths in desktop file
818 # * TODO: drop when fixed in sugar-toolkit-gtk3
9 binary-fixup/$(pkg)::
10 find $(cdbs_curdestdir)/usr/share -type f -name '*.desktop' \
19 find debian/*/usr/share -type f -name '*.desktop' \
1120 -execdir perl -pi -e 's,^\S+\s*=\s*\K\S*(?=/usr/share),,g' '{}' ';'