Add gotify

optimize apt without recommends packages
add package dpkg fakeroot when needed
This commit is contained in:
thomas 2022-02-20 23:33:43 +01:00
parent a340b7db22
commit b69d1ee47f
29 changed files with 77 additions and 94 deletions

View file

@ -3,15 +3,12 @@
STEP="envinit prebuild build makedeb"
envinit() {
apt install -y wget ca-certificates nodejs npm git make g++ gcc
apt install -y --no-install-recommends wget ca-certificates nodejs npm git make g++ gcc fakeroot dpkg
}
prebuild(){
VERSION=$1
cd /tmp/
git clone https://github.com/Koenkk/zigbee2mqtt.git
cd zigbee2mqtt/
git checkout $VERSION
GIT_VERSION=$1
git clone --depth 1 -b ${GIT_VERSION} https://github.com/Koenkk/zigbee2mqtt.git /tmp/zigbee2mqtt
}
build() {