From 27c9a57a61a1ea8c0595c5c7caa801d1a413dd98 Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Sun, 25 Jun 2017 14:41:48 +0200 Subject: [PATCH] Debian making thingy --- packages/makedeb.sh | 25 +++++++++++++++++++++++++ packages/ubuntu17.04/DEBIAN/control | 9 +++++++++ 2 files changed, 34 insertions(+) create mode 100755 packages/makedeb.sh create mode 100644 packages/ubuntu17.04/DEBIAN/control diff --git a/packages/makedeb.sh b/packages/makedeb.sh new file mode 100755 index 0000000..fe883ef --- /dev/null +++ b/packages/makedeb.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +if [[ "$1" == "" ]] +then + echo "Provide a version with arg1" >&2 + exit 1 +fi +cp ubuntu17.04 work -r +sed "s/%ver/$1/g" ubuntu17.04/DEBIAN/control > work/DEBIAN/control +mkdir -p work/usr/bin +mkdir compiling +cd compiling +qmake ../../KShare.pro +if make +then +cd .. +cp compiling/KShare work/usr/bin/kshare +rm -rf compiling +else + rm -rf compiling + echo "Failed to make!" + exit 2 +fi +cd work +md5sum usr/bin/kshare > DEBIAN/md5sums +cd .. diff --git a/packages/ubuntu17.04/DEBIAN/control b/packages/ubuntu17.04/DEBIAN/control new file mode 100644 index 0000000..b6c558d --- /dev/null +++ b/packages/ubuntu17.04/DEBIAN/control @@ -0,0 +1,9 @@ +Package: kshare +Version: %ver +Architecture: all +Essential: no +Section: contrib +Priority: optional +Depends: qt5-default (>=5.7.0) libqt5x11extras5 (>=5.7.0) libavcodec (>=3.2.0) libavformat (>=3.2.0) libswscale (>=3.2.0) libavutil (>=3.2.0) +Maintainer: ArsenArsen +Description: The open source and cross platform screen sharing software