26 lines
608 B
Bash
Executable File
26 lines
608 B
Bash
Executable File
#!/bin/bash
|
|
|
|
VERSION=0.8.0
|
|
APP=mautrix-whatsapp
|
|
DEPOT=https://github.com/mautrix/whatsapp.git
|
|
GIT_VERSION=v${VERSION}
|
|
DEBIAN_VERSION_CODENAME=bullseye
|
|
IMAGE_SIZE=4
|
|
PACKAGE_DEPENDENCY="debhelper-compat libolm-dev build-essential"
|
|
|
|
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}/
|
|
cp -fr /tmp/src/debian /tmp/${APP}
|
|
dpkg-buildpackage -us -uc
|
|
cp /tmp/*.deb /tmp/dist
|
|
}
|