Create deb-build.sh
[ci skip] add sh for deb build
This commit is contained in:
parent
7b7ce4a0b1
commit
70d6ad6682
31
scripts/deb-build.sh
Normal file
31
scripts/deb-build.sh
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e # fail on any error
|
||||||
|
set -u # treat unset variables as error
|
||||||
|
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 <admin@ethcore.io>" >> $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
|
||||||
|
|
||||||
|
exit
|
Loading…
Reference in New Issue
Block a user