From dfde88c635ce06ce98a4112cef9c2d8fe99a516b Mon Sep 17 00:00:00 2001 From: Qrius Date: Thu, 26 Sep 2024 00:11:05 +0200 Subject: Add debian packaging script --- packaging/DEBIAN/control | 5 +++++ packaging/package_debian.sh | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 packaging/DEBIAN/control create mode 100755 packaging/package_debian.sh diff --git a/packaging/DEBIAN/control b/packaging/DEBIAN/control new file mode 100644 index 0000000..d89e4f6 --- /dev/null +++ b/packaging/DEBIAN/control @@ -0,0 +1,5 @@ +Package: skaldpress +Version: 0.1.0 +Maintainer: jakobst1n +Architecture: all +Description: Templating and macro engine diff --git a/packaging/package_debian.sh b/packaging/package_debian.sh new file mode 100755 index 0000000..73ad0cc --- /dev/null +++ b/packaging/package_debian.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set -x + +tmpdir=$(mktemp -d) + +dir="${tmpdir}/skaldpress" + +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/skaldpress ${bindir}/skaldpress +#cp skaldpress.1 ${mandir}/skaldpress.1 + +cd ${tmpdir} +dpkg-deb --build skaldpress -- cgit v1.2.3