debmaker/ressources/homeassistant/debmaker

32 lines
797 B
Bash
Executable file

#!/bin/bash
VERSION=2023.10.3
APP=homeassistant
DEPOT=https://github.com/home-assistant/core.git
GIT_VERSION=${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=10
PACKAGE_DEPENDENCY=""
main(){
base_package_upgrade
install_package_dependency
get_git_source
#makedeb
}
makedeb(){
PATH_DEB=/tmp/src/rootfs
mkdir -p ${PATH_DEB}/etc/babybuddy/
mv /tmp/${APP}/babybuddy/settings/production.example.py ${PATH_DEB}/etc/babybuddy/production.py
mkdir -p ${PATH_DEB}/usr/share/
cp -fr /tmp/${APP}/ ${PATH_DEB}/usr/share/
ln -s /etc/babybuddy/production.py ${PATH_DEB}/usr/share/babybuddy/babybuddy/settings/production.py
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}