From 00e5ebd8680e454927e152071e5f759e544cd176 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Wed, 24 Aug 2016 12:45:48 -0400 Subject: [PATCH] added debian packaging script --- package.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 package.sh diff --git a/package.sh b/package.sh new file mode 100755 index 0000000..aca75aa --- /dev/null +++ b/package.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +VERSION="0.1-0" +TEMP_PKG_PATH="/tmp/steamguard-cli_$VERSION" +echo Building Debian package... + +mkdir -p $TEMP_PKG_PATH/usr/local/bin +mkdir -p $TEMP_PKG_PATH/etc/bash_completion.d +mkdir -p $TEMP_PKG_PATH/DEBIAN + +cp build/* $TEMP_PKG_PATH/usr/local/bin +cp bash-tab-completion $TEMP_PKG_PATH/etc/bash_completion.d/steamguard + +cat <> $TEMP_PKG_PATH/DEBIAN/control +Package: steamguard-cli +Version: $VERSION +Section: base +Priority: optional +Architecture: all +Maintainer: Carson McManus +Description: steamguard-cli + A command line utility to generate Steam Guard codes + (AKA 2 factor authentication codes). +EOT + +dpkg-deb --build $TEMP_PKG_PATH steamguard-cli_$VERSION.deb + +rm -rf $TEMP_PKG_PATH