2016-10-26 06:36:07 +02:00
|
|
|
#!/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
|
2017-03-29 15:17:27 +02:00
|
|
|
echo "https://github.com/paritytech/parity/wiki" >> deb/DEBIAN/docs
|
2016-10-26 06:36:07 +02:00
|
|
|
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
|
2017-05-10 22:19:08 +02:00
|
|
|
echo "Maintainer: Parity Technologies <devops@parity.io>" >> $control
|
2016-10-26 06:36:07 +02:00
|
|
|
echo "Build-Depends: debhelper (>=9)" >> $control
|
|
|
|
echo "Standards-Version: 3.9.5" >> $control
|
2017-03-29 15:17:27 +02:00
|
|
|
echo "Homepage: https://parity.io" >> $control
|
|
|
|
echo "Vcs-Git: git://github.com/paritytech/parity.git" >> $control
|
|
|
|
echo "Vcs-Browser: https://github.com/paritytech/parity" >> $control
|
2016-10-26 06:36:07 +02:00
|
|
|
echo "Architecture: $1" >> $control
|
2017-03-14 13:02:46 +01:00
|
|
|
echo "Depends: libssl1.0.0 (>=1.0.0)" >> $control
|
2017-05-10 22:19:08 +02:00
|
|
|
echo "Description: Ethereum network client by Parity Technologies" >> $control
|
2017-05-26 13:56:51 +02:00
|
|
|
size=`du deb/|awk 'END {print $1}'`
|
|
|
|
echo "Installed-Size: $size" >> $control
|
2016-10-26 06:36:07 +02:00
|
|
|
#build .deb package
|
|
|
|
|
|
|
|
exit
|