diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-03 23:02:46 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-03 23:02:46 +0900 |
commit | fcad8b8d150fb9f508973e3044a103de74ec3877 (patch) | |
tree | ca34a8cf3bfbe08335d40c47863b4901e1d19609 /ubuntu/_base/applications/fusion-icon/debian/rules | |
parent | 5d8ed1fab813d86b04383f7fcf8ab2c994cbea30 (diff) | |
download | tde-packaging-fcad8b8d150fb9f508973e3044a103de74ec3877.tar.gz tde-packaging-fcad8b8d150fb9f508973e3044a103de74ec3877.zip |
DEB: use _base folder for a distro instead of specific distros (squeeze and maverick).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ubuntu/_base/applications/fusion-icon/debian/rules')
-rwxr-xr-x | ubuntu/_base/applications/fusion-icon/debian/rules | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ubuntu/_base/applications/fusion-icon/debian/rules b/ubuntu/_base/applications/fusion-icon/debian/rules new file mode 100755 index 000000000..f1b2fcb21 --- /dev/null +++ b/ubuntu/_base/applications/fusion-icon/debian/rules @@ -0,0 +1,38 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM = $(if $(wildcard /usr/bin/dh_pysupport),pysupport) +DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_pysupport) +DEB_PYTHON2_MODULE_PACKAGES=fusion-icon-trinity + +include /usr/share/cdbs/1/rules/debhelper.mk +ifeq (pysupport, $(DEB_PYTHON_SYSTEM)) + include debian/python-distutils-custom.mk +else + include /usr/share/cdbs/1/class/python-distutils.mk +endif +#include /usr/share/cdbs/1/rules/patchsys-quilt.mk + +DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ + && echo xz || echo bzip2) + +binary-install/fusion-icon-trinity:: + mkdir -p debian/fusion-icon-trinity/usr/local/lib + cp -Rp debian/fusion-icon-trinity/usr/local/* debian/fusion-icon-trinity/usr/ + rm -rf debian/fusion-icon-trinity/usr/local + mkdir -p debian/fusion-icon-trinity/temp + mv debian/fusion-icon-trinity/usr/lib debian/fusion-icon-trinity/temp + mkdir -p debian/fusion-icon-trinity/opt/trinity + cp -Rp debian/fusion-icon-trinity/usr/* debian/fusion-icon-trinity/opt/trinity/ + rm -rf debian/fusion-icon-trinity/usr + ${DH_PYTHON2} -pfusion-icon-trinity + ### + # Must be done after invoking dh_pysupport, otherwise python scripts will + # end up in /usr/share/pyshare instead of dist-packages + mkdir -p debian/fusion-icon-trinity/usr + mv debian/fusion-icon-trinity/temp/lib debian/fusion-icon-trinity/usr + rm -rf debian/fusion-icon-trinity/temp + ### + mkdir -p debian/fusion-icon-trinity/usr/share/doc/fusion-icon-trinity + mv debian/fusion-icon-trinity/opt/trinity/share/doc/fusion-icon-trinity/* debian/fusion-icon-trinity/usr/share/doc/fusion-icon-trinity/ + rmdir -p --ignore-fail-on-non-empty debian/fusion-icon-trinity/opt/trinity/share/doc/fusion-icon-trinity + dh_icons |