diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2024-06-08 22:40:49 +0200 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-06-08 22:40:49 +0200 |
commit | 4e6a860b275abda39ade147ee7cdc48a3520212a (patch) | |
tree | 50102e75438ca2ada76bbf7d3e6b462f3af5e8af /packaging | |
parent | 136502f371851efec48426d424115e136033c157 (diff) | |
download | textgraph-4e6a860b275abda39ade147ee7cdc48a3520212a.tar.gz textgraph-4e6a860b275abda39ade147ee7cdc48a3520212a.zip |
Add simple readme and manual, add script to build debian package
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/DEBIAN/control | 5 | ||||
-rwxr-xr-x | packaging/package-debian.sh | 24 |
2 files changed, 29 insertions, 0 deletions
diff --git a/packaging/DEBIAN/control b/packaging/DEBIAN/control new file mode 100644 index 0000000..c4b584e --- /dev/null +++ b/packaging/DEBIAN/control @@ -0,0 +1,5 @@ +Package: textgraph +Version: 0.1.0 +Maintainer: jakobst1n +Architecture: all +Description: Text graphing utility diff --git a/packaging/package-debian.sh b/packaging/package-debian.sh new file mode 100755 index 0000000..3bea609 --- /dev/null +++ b/packaging/package-debian.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set -x + +tmpdir=$(mktemp -d) + +dir="${tmpdir}/textgraph" + +mkdir -p ${dir} +rm -r ${dir} +mkdir -p ${dir} +cargo build --release + +bindir=${dir}/usr/local/bin +mkdir -p ${bindir} + +mandir=${dir}/usr/share/man/man1 +mkdir -p ${mandir} + +cp -r packaging/DEBIAN ${dir}/DEBIAN +cp target/release/textgraph ${bindir}/tg +cp tg.1 ${mandir}/tg.1 + +cd ${tmpdir} +dpkg-deb --build textgraph |