diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-03-10 07:12:35 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-03-10 07:12:35 +0200 |
commit | 7d7f2d42b1cfeaef90ac88449152408ef241a7ea (patch) | |
tree | c34aa1e19028101defd11d91f4be857bdb928e2f /debian/rules | |
parent | 333fb3ae00c48801e6573dadc007f91bb719fa46 (diff) | |
download | pandoc-filter-diagram-7d7f2d42b1cfeaef90ac88449152408ef241a7ea.tar.gz |
chore: build for musl, and offline
Building for musl should produce a binary that works on Debian
11 (bookworm), which has a version of Pandoc with which this filter is
compatible. I need that for some of my web sites.
Building offline is needed for my new CI system, Ambient.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules index 72b5379..de9f69d 100755 --- a/debian/rules +++ b/debian/rules @@ -1,13 +1,14 @@ #!/usr/bin/make -f %: - dh $@ --buildsystem cargo + dh $@ override_dh_auto_build: - cargo build --release + true override_dh_auto_install: - cargo install --path=. --root=debian/pandoc-filter-diagram + cargo install --path=. --root=debian/pandoc-filter-diagram \ + --target x86_64-unknown-linux-musl --offline find debian -name '.crates*' -delete override_dh_auto_test: |