diff options
author | vg <vg@devys.org> | 2018-02-02 11:59:34 +0000 |
---|---|---|
committer | vg <vg@devys.org> | 2018-02-02 11:59:34 +0000 |
commit | ee08f867271adc4a90dae05a5b5fe9372d8fb4d8 (patch) | |
tree | e8a85891c1ae018efbc764c9d43bb649e297019f /debian/rules | |
parent | f7f97ca30f11dfc5c03aa6b2950ded79de225217 (diff) | |
download | debian-ranger-ee08f867271adc4a90dae05a5b5fe9372d8fb4d8.tar.gz debian-ranger-ee08f867271adc4a90dae05a5b5fe9372d8fb4d8.tar.bz2 debian-ranger-ee08f867271adc4a90dae05a5b5fe9372d8fb4d8.zip |
add debian package files, adapted from original debian package for ranger 1.8
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..6a21d6e --- /dev/null +++ b/debian/rules @@ -0,0 +1,44 @@ +#!/usr/bin/make -f + +# Unset the environment variables set by dpkg-buildpackage. (This is +# necessary because distutils is brittle with compiler/linker flags +# set. Specifically, packages using f2py will break without this.) +unexport CPPFLAGS +unexport CFLAGS +unexport CXXFLAGS +unexport FFLAGS +unexport LDFLAGS + +# custom version for vg version +VERSION = 1.9.0vg +PACKAGEVERSION = $(VERSION)+$(shell date +%Y%m%d%H%M%S) + +PYVER = $(shell py3versions -r) + +%: + dh $@ --with python3 + +override_dh_auto_clean: + dh_auto_clean + rm -rf upstream/build + +override_dh_auto_install: + ls . */ + cd upstream && python3 setup.py install --root=../debian/ranger --install-layout=deb + # link configuration + dh_link \ + ./usr/lib/$(PYVER)/dist-packages/ranger/config/commands.py ./etc/ranger/config/commands.py \ + ./usr/lib/$(PYVER)/dist-packages/ranger/config/rc.conf ./etc/ranger/config/rc.conf \ + ./usr/lib/$(PYVER)/dist-packages/ranger/config/rifle.conf ./etc/ranger/config/rifle.conf \ + ./usr/lib/$(PYVER)/dist-packages/ranger/data/scope.sh ./etc/ranger/data/scope.sh \ + ./usr/lib/$(PYVER)/dist-packages/ranger/data/mime.types ./etc/ranger/data/mime.types + # avoid extra-license-file + rm debian/ranger/usr/share/doc/ranger/CHANGELOG.md + # tell lintian to not complain + find debian/ranger -regex ".*/data/scope.sh" -exec chmod u+x {} \; + ls . */ + +override_dh_auto_build: + +override_dh_gencontrol: + dh_gencontrol -- -v$(PACKAGEVERSION) |