Removing ' Example' from html documents in prepare()

This commit is contained in:
AlphaJack 2020-11-08 18:30:51 +01:00
parent 0d11c291cd
commit 35538497b3
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
pkgbase = librespeed-go
pkgdesc = Very lightweight speed test implemented in Javascript, using XMLHttpRequest and Web Workers.
pkgver = 1.1.1
pkgrel = 1
pkgrel = 2
url = https://github.com/librespeed/speedtest-go
arch = i386
arch = x86_64

View File

@ -2,7 +2,7 @@
pkgname="librespeed-go"
pkgver=1.1.1
pkgrel=1
pkgrel=2
pkgdesc="Very lightweight speed test implemented in Javascript, using XMLHttpRequest and Web Workers."
url="https://github.com/librespeed/speedtest-go"
license=("LGPL3")
@ -23,6 +23,11 @@ md5sums=("4534a45a909ca9bb4fe176299dbb0deb"
"0a3ae23c24688169f44931a937df8a85")
backup=("etc/librespeed/settings.toml" "var/lib/librespeed/speedtest.db")
prepare(){
cd "speedtest-go-$pkgver/assets"
sed -i "s/LibreSpeed Example/LibreSpeed/" *.html
}
build(){
cd "speedtest-go-$pkgver"
go build -ldflags "-w -s" -trimpath -o "speedtest" "main.go"