update mautrix-whatsapp script

This commit is contained in:
thomas 2022-12-10 13:39:43 +01:00
parent 80abe21699
commit 59094128f4
2 changed files with 8 additions and 16 deletions

View File

@ -4,8 +4,7 @@ Priority: optional
Maintainer: Thomas Legay <thomas@lgy.fr> Maintainer: Thomas Legay <thomas@lgy.fr>
Build-Depends: debhelper-compat (= 13), golang (>= 16) Build-Depends: debhelper-compat (= 13), golang (>= 16)
Standards-Version: 3.9.8 Standards-Version: 3.9.8
Homepage: http://www.gnu.org/software/gawk/
https://github.com/mautrix/whatsapp/archive/refs/tags/v0.4.0.tar.gz
Package: mautrix-whatsapp Package: mautrix-whatsapp
Architecture: all Architecture: all

View File

@ -6,27 +6,20 @@ DEPOT=https://github.com/mautrix/whatsapp.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=4 IMAGE_SIZE=4
PACKAGE_DEPENDENCY="debhelper-compat libolm-dev build-essential"
STEP="envinit prebuild makedeb" main(){
envinit() {
echo deb http://deb.debian.org/debian bullseye-backports main > /etc/apt/sources.list.d/backports.list echo deb http://deb.debian.org/debian bullseye-backports main > /etc/apt/sources.list.d/backports.list
apt-get update base_package_upgrade
apt-get dist-upgrade -y install_package_dependency
apt install -y --no-install-recommends ca-certificates git libolm-dev debhelper-compat build-essential
apt install -y --no-install-recommends -t bullseye-backports golang apt install -y --no-install-recommends -t bullseye-backports golang
} get_git_source
makedeb
prebuild(){
rm /tmp/*.deb
[ -e /tmp/${APP}] && rm -fr /tmp/${APP}
mkdir /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
cp -fr /tmp/src/debian /tmp/${APP}
} }
makedeb(){ makedeb(){
cd /tmp/${APP}/ cd /tmp/${APP}/
cp -fr /tmp/src/debian /tmp/${APP}
dpkg-buildpackage -us -uc dpkg-buildpackage -us -uc
cp /tmp/*.deb /tmp/dist cp /tmp/*.deb /tmp/dist
} }