debmaker/ressources/mautrix-whatsapp/debmaker

29 lines
693 B
Bash
Executable File

#!/bin/bash
VERSION=0.10.4
APP=mautrix-whatsapp
DEPOT=https://github.com/mautrix/whatsapp.git
GIT_VERSION=v${VERSION}
DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=4
PACKAGE_DEPENDENCY="debhelper-compat libolm-dev build-essential devscripts golang"
main(){
# echo deb http://deb.debian.org/debian bullseye-backports main > /etc/apt/sources.list.d/backports.list
base_package_upgrade
install_package_dependency
# apt install -y --no-install-recommends -t bullseye-backports golang
get_git_source
makedeb
}
makedeb(){
cd /tmp/${APP}/
rm /tmp/*.deb
cp -fr /tmp/src/debian /tmp/${APP}
export DEBEMAIL=thomas@lgy.fr
dch -v ${VERSION}
dpkg-buildpackage -us -uc
cp /tmp/*.deb /tmp/dist
}