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
|
#!/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
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
DEB_COMPRESS_EXCLUDE := .py
install/$(DEB_PYTHON_MODULE_PACKAGE)::
# fix unnecessary versionned shebang
sed -i 's/^#! *\/usr\/bin\/python[0-9.]\+/#! \/usr\/bin\/python/' debian/$(cdbs_curpkg)/usr/bin/*
binary-install/$(DEB_PYTHON_MODULE_PACKAGE)::
mv debian/$(cdbs_curpkg)/$(cdbs_python_support_path)/soya/data/* \
debian/$(cdbs_curpkg)/usr/share/$(cdbs_curpkg)
rmdir debian/$(cdbs_curpkg)/$(cdbs_python_support_path)/soya/data
# avoid font duplication
rm -f debian/$(cdbs_curpkg)/usr/share/python-soya/FreeSans.ttf
dh_link -p$(cdbs_curpkg) usr/share/fonts/truetype/freefont/FreeSans.ttf \
usr/share/python-soya/FreeSans.ttf
#
find debian/$(cdbs_curpkg)/usr/share/ -type f -exec chmod -R a-x {} \;
|