debmaker/ressources/picapport/debmaker

25 lines
568 B
Text
Raw Normal View History

2022-10-31 16:26:17 +01:00
#!/bin/bash
VERSION=10.4.00
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
APP=picapport
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=3
main(){
base_package_upgrade
makedeb
}
makedeb(){
PATH_DEB=/tmp/src/rootfs
DOWNLOAD_VERSION=$(echo $VERSION | sed 's/\./-/g')
mkdir -p $PATH_DEB/usr/lib/picapport/
wget "https://www.picapport.de/download/${DOWNLOAD_VERSION}/picapport-headless.jar" -O $PATH_DEB/usr/lib/picapport/picapport-headless.jar
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}