diff options
author | Qrius <[email protected]> | 2024-09-26 00:11:05 +0200 |
---|---|---|
committer | Qrius <[email protected]> | 2024-09-26 00:11:05 +0200 |
commit | dfde88c635ce06ce98a4112cef9c2d8fe99a516b (patch) | |
tree | ee589cb9fd88027f488a4354c9213ead37733618 | |
parent | 4eaf1f1327d0b88a6a5f937bb646753e639d4be7 (diff) | |
download | skaldpress-dfde88c635ce06ce98a4112cef9c2d8fe99a516b.tar.gz skaldpress-dfde88c635ce06ce98a4112cef9c2d8fe99a516b.zip |
Add debian packaging script
-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..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 |