summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rw-r--r--packaging/DEBIAN/control5
-rwxr-xr-xpackaging/package_debian.sh24
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