Codebase list rust-stfu8 / 8626d4e
dotenv: neater way of installing to a different location, using DEB_CARGO_INSTALL_PREFIX Ximin Luo 4 years ago
3 changed file(s) with 11 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
0 rust-dotenv (0.15.0-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Team upload.
3 * Package dotenv 0.15.0 from crates.io using debcargo 2.4.0
4 * Neater way of installing the binary into /usr/lib/cargo
5
6 -- Ximin Luo <infinity0@debian.org> Tue, 31 Dec 2019 16:05:38 +0000
7
08 rust-dotenv (0.15.0-1) unstable; urgency=medium
19
210 * Package dotenv 0.15.0 from crates.io using debcargo 2.4.0
0 /usr/lib/cargo/bin/dotenv /usr/bin/dotenv-rust
55 dh $@ --buildsystem cargo
66
77 override_dh_auto_install:
8 dh_auto_install -- --features cli
9
10 override_dh_install:
11 # dotenv is already used by another packages. Install dotenv into /usr/lib/cargo/bin/
12 # and create a symlink to have dotenv-rust in the path
13 mkdir -p debian/dotenv/usr/lib/cargo/bin
14 mv debian/dotenv/usr/bin/dotenv debian/dotenv/usr/lib/cargo/bin/
15 cd debian/dotenv/usr/bin/ && ln -s ../lib/cargo/bin/dotenv dotenv-rust
16 dh_install
17 dh_missing
8 # /usr/bin/dotenv already used, install into /usr/lib/cargo/bin
9 DEB_CARGO_INSTALL_PREFIX=/usr/lib/cargo dh_auto_install -- --features cli
1810
1911 override_dh_installman:
2012 help2man \