debmaker/ressources/mautrix-whatsapp/debmaker
2023-09-02 22:51:34 +02:00

28 lines
693 B
Bash
Executable file

#!/bin/bash
VERSION=0.10.0
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
}