# Maintainer: Posi <[email protected]>
# Contributorr: Linus Dierheimer <[email protected]>
pkgname=breitbandmessung
pkgver=3.0.0
pkgrel=1
pkgdesc="Die Breitbandmessung Desktop-App erlaubt es Ihnen, die tatsächliche Datenübertragungsrate Ihres Breitbandanschlusses zu messen. Weitere Informationen erhalten Sie unter https://breitbandmessung.de"
arch=('x86_64')
license=('unknown')
url="https://breitbandmessung.de/"
options=('!strip')
source=("breitbandmessung-${pkgver}.deb::https://download.breitbandmessung.de/bbm/Breitbandmessung-linux.deb")
sha256sums=("05df727061449c3fbee47321a22b3477ed0487613bbb305318ea64f3a46460e9")
depends=("net-tools")
makedepends=("asar")
build() {
_builddir="${srcdir}/${pkgver}-${pkgrel}"
mkdir -p "${_builddir}"
tar --extract --overwrite --file=data.tar.xz --directory="${_builddir}"
cd "${_builddir}/opt/Breitbandmessung/resources/"
_unpatched="}return p.current={}"
_patched="}p.allowed=!0;return p.current={}"
asar e app.asar unpacked/
sed -i "s/${_unpatched}/${_patched}/g" unpacked/build/static/js/*.js
asar p unpacked/ app.asar
rm -rf unpacked/
}
package() {
cp -a "${srcdir}/${pkgver}-${pkgrel}/." "${pkgdir}"
#Create /usr/bin symlink
mkdir -p "${pkgdir}/usr/bin/"
ln -sf "/opt/Breitbandmessung/breitbandmessung" "${pkgdir}/usr/bin/breitbandmessung"
chmod -R go-w "${pkgdir}/usr"
}
the sha256sum i got from d/l the deb package was not what is listed so the package won't build. the sum i got from checking the download file is
b1f0664f845bccb62612c921ac72d074fb2bd9ea02d14fa7463480e55a33a8bc
not the
05df727061449c3fbee47321a22b3477ed0487613bbb305318ea64f3a46460e9
listed in the package build above
so you have to decide... do you feel lucky? swap out the sha256sum for the one i found to be true and try again to build it?