From d5ecd8f20f1ac5cc5aaef7512a693f232d185e4d Mon Sep 17 00:00:00 2001 From: "Denis S. Soldatov aka General-Beck" Date: Tue, 25 Oct 2016 10:39:14 +0800 Subject: [PATCH] create deb-build.sh initial build .deb packages --- scripts/deb-build.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 scripts/deb-build.sh diff --git a/scripts/deb-build.sh b/scripts/deb-build.sh new file mode 100644 index 000000000..f04967ab0 --- /dev/null +++ b/scripts/deb-build.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +set -e # fail on any error +set -u # treat unset variables as error +cd .. +rm -rf deb +#create DEBIAN files +mkdir -p deb/usr/bin/ +mkdir -p deb/DEBIAN +#create copyright, docs, compat +cp LICENSE deb/DEBIAN/copyright +echo "https://github.com/ethcore/parity/wiki" >> deb/DEBIAN/docs +echo "8" >> deb/DEBIAN/compat +#create control file +control=deb/DEBIAN/control +echo "Package: parity" >> $control +version=`grep -m 1 version Cargo.toml | awk '{print $3}' | tr -d '"' | tr -d "\n"` +echo "Version: $version" >> $control +echo "Source: parity" >> $control +echo "Section: science" >> $control +echo "Priority: extra" >> $control +echo "Maintainer: Ethcore " >> $control +echo "Build-Depends: debhelper (>=9)" >> $control +echo "Standards-Version: 3.9.5" >> $control +echo "Homepage: https://ethcore.io" >> $control +echo "Vcs-Git: git://github.com/ethcore/parity.git" >> $control +echo "Vcs-Browser: https://github.com/ethcore/parity" >> $control +echo "Architecture: $1" >> $control +echo "Description: Ethereum network client by Ethcore" >> $control +#build .deb package +cp parity deb/usr/bin +dpkg-deb -b deb ./ +exit \ No newline at end of file