From 35538497b3dcc0364fc321bb8368b97df9453441 Mon Sep 17 00:00:00 2001 From: AlphaJack Date: Sun, 8 Nov 2020 18:30:51 +0100 Subject: [PATCH] Removing ' Example' from html documents in prepare() --- .SRCINFO | 2 +- PKGBUILD | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index dcd3397..e2d495b 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -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 diff --git a/PKGBUILD b/PKGBUILD index 578dce6..584a281 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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"