You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.7 KiB
39 lines
1.7 KiB
#!/usr/bin/make -f
|
|
|
|
DEB_PYTHON3_MODULE_PACKAGES=fusion-icon-trinity
|
|
|
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
|
include /usr/share/cdbs/1/class/python-distutils.mk
|
|
|
|
# The default gzip compressor has been changed in dpkg >= 1.17.0.
|
|
deb_default_compress = $(shell LANG=C dpkg-deb --version | head -n1 | \
|
|
sed -e "s|.*version ||" -e "s| .*||" | \
|
|
xargs -r dpkg --compare-versions 1.17.0 lt \
|
|
&& echo xz || echo gzip)
|
|
ifeq ($(deb_default_compress),gzip)
|
|
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
|
|
&& echo xz || echo bzip2)
|
|
endif
|
|
|
|
binary-install/fusion-icon-trinity::
|
|
mkdir -p debian/$(cdbs_curpkg)/usr/local/lib
|
|
cp -Rp debian/$(cdbs_curpkg)/usr/local/* debian/$(cdbs_curpkg)/usr/
|
|
rm -rf debian/$(cdbs_curpkg)/usr/local
|
|
mkdir -p debian/$(cdbs_curpkg)/temp
|
|
mv debian/$(cdbs_curpkg)/usr/lib debian/$(cdbs_curpkg)/temp
|
|
mkdir -p debian/$(cdbs_curpkg)/opt/trinity
|
|
cp -Rp debian/$(cdbs_curpkg)/usr/* debian/$(cdbs_curpkg)/opt/trinity/
|
|
rm -rf debian/$(cdbs_curpkg)/usr
|
|
dh_python3 -p $(cdbs_curpkg) --shebang=/usr/bin/python3 /opt/trinity/bin
|
|
###
|
|
# Must be done after invoking dh_pysupport, otherwise python scripts will
|
|
# end up in /usr/share/pyshare instead of dist-packages
|
|
mkdir -p debian/$(cdbs_curpkg)/usr
|
|
mv debian/$(cdbs_curpkg)/temp/lib debian/$(cdbs_curpkg)/usr
|
|
rm -rf debian/$(cdbs_curpkg)/temp
|
|
###
|
|
mkdir -p debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)
|
|
mv debian/$(cdbs_curpkg)/opt/trinity/share/doc/$(cdbs_curpkg)/* debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/
|
|
rmdir -p --ignore-fail-on-non-empty debian/$(cdbs_curpkg)/opt/trinity/share/doc/$(cdbs_curpkg)
|
|
dh_icons
|