From 170d2b3d6e3759cf02ac9fd78f66c06ce7caf5c6 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 13 May 2021 14:27:29 +0300 Subject: docs: update .deb building build-deb is long gone, build without. --- README.md | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 9725b34..d0fbbdb 100644 --- a/README.md +++ b/README.md @@ -28,22 +28,14 @@ See for the home page. Subplot is written using the Rust programming language, so the usual workflow for Rust applies. To build run `cargo build`, to run tests in -Rust run `cargo test`. +Rust run `cargo test`. You probably need to install Rust using rustup: +the version packaged in a Linux distribution is likely too old. To run the whole test suite, including testing all examples and Subplot self tests, run `./check` at the root of the source tree. -# Building Debian package - -To build a subplot.deb package, run the `build-deb` script, on a -Debian machine with the necessary packages installed, in a git -checkout of the source tree: - -~~~sh -$ ./build-deb /tmp/where/built/package/should/go -~~~ - -You'll need to install build dependencies installed: +You'll need to install build dependencies installed. On a system +running Debian or a derivative of it: ~~~sh $ sudo apt-get install build-essential git debhelper dh-cargo python3 \ @@ -58,6 +50,13 @@ Additionally, any packages reported by running the following command: $ dpkg-checkbuilddeps ~~~ +To build the Debian package: + +~~~sh +$ git archive HEAD | gzip > "../subplot_$(dpkg-parsechangelog -SVersion | sed 's/-.*$//').orig.tar.gz" +$ dpkg-buildpackage -us -uc +~~~ + # Legalese Copyright 2019-2021 Lars Wirzenius, Daniel Silverstone -- cgit v1.2.1