Package Details: speedtest++ 1.15.r72.b743996-2

Git Clone URL: https://aur.archlinux.org/speedtest++.git (read-only, click to copy)
Package Base: speedtest++
Description: Unofficial speedtest.net cli using raw TCP for better accuracy. Written in C++.
Upstream URL: https://github.com/taganaka/SpeedTest
Licenses: MIT
Submitter: mrxx
Maintainer: mrxx
Last Packager: mrxx
Votes: 18
Popularity: 0.77
First Submitted: 2019-11-20 11:59 (UTC)
Last Updated: 2025-06-04 09:41 (UTC)

Dependencies (5)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

mrxx commented on 2025-06-04 09:44 (UTC)

Fixed. Thank you, codewithmoss and everybody else.

codewithmoss commented on 2025-05-10 02:20 (UTC)

# Maintainer: mrxx <mrxx at cyberhome dot at>

pkgname=speedtest++
_gitname=SpeedTest
pkgver=1.15.r72.b743996
pkgrel=1
pkgdesc="Unofficial speedtest.net cli using raw TCP for better accuracy. Written in C++."
arch=('any')
url="https://github.com/taganaka/SpeedTest"
license=('MIT')
depends=('curl' 'openssl' 'libxml2')
makedepends=('git' 'cmake')
source=("git+${url}.git")
md5sums=('SKIP')

pkgver() {
  cd "${_gitname}"
  local maj=$(grep -m 1 VERSION_MAJOR CMakeLists.txt |sed 's/[^0-9]*//g')
  local min=$(grep -m 1 VERSION_MINOR CMakeLists.txt |sed 's/[^0-9]*//g')
  printf "%s.%s.r%s.%s" $maj $min "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$srcdir/$_gitname"
  # Replace any cmake_minimum_required line with version >= 3.5
  sed -i 's/cmake_minimum_required(VERSION [0-9.]\+)/cmake_minimum_required(VERSION 3.5)/' CMakeLists.txt
}


build() {
  mkdir -p build
  cd build
  cmake "$srcdir/${_gitname}" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd "$srcdir/build"
  make DESTDIR="$pkgdir" install
  ln -s "/usr/bin/SpeedTest" "$pkgdir/usr/bin/speedtest++"
  install -Dm644 "$srcdir/${_gitname}/README.md" "${pkgdir}/usr/share/doc/${_gitname}/README"
}

use this PKGBUILD file only this will work.

acerix commented on 2025-05-01 18:27 (UTC) (edited on 2025-05-01 18:27 (UTC) by acerix)

It appears the upstream package is no longer maintained.

There's a PR which removes the libxml2 dependency and that allows building with newer cmake:

https://github.com/taganaka/SpeedTest/pull/52

I suggest pointing the source to that commit and setting "CMAKE_POLICY_VERSION_MINIMUM=3.5" to get this working, e.g.:

...

depends=('curl' 'openssl')
makedepends=('git' 'cmake')
source=("git+${url}.git#commit=b7db370449cfe2b453c22b74a660701f78bd7ce3")
md5sums=('SKIP')

...

build() {
  mkdir -p build
  cd build
  cmake "$srcdir/${_gitname}" \
    -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_BUILD_TYPE=Release
  make
}

mokkurkalve commented on 2025-04-30 22:11 (UTC)

Package needs to be fixed for cmake 4.0.1 so it can be compiled against libxml2 2.14.2.

mrxx commented on 2024-09-11 22:26 (UTC)

Well, if it makes you happy, why not.

m040601 commented on 2024-09-10 17:09 (UTC)

Sorry, but I do not quite understand how anybody would type "Written in C++" when looking
for a speed test tool.

I think you also dont understand what the "Description" field is usefull for. Especially in this case, with dozens of tools.

Putting "Written in C++" is primarly not meant to help the minority of people looking for stuff written in C++.

It is meant to help, anyone, quickly look at a very very long list of similar results, and quickly choose and or discard what they want or do not want.

mrxx commented on 2024-09-09 12:49 (UTC)

Sorry, but I do not quite understand how anybody would type "Written in C++" when looking for a speed test tool.

If you search for these words separately, of course there will be dozens of matches, as they are quite generic.

But if you start typing them together, "speedt" already suggests this package as first hit.

m040601 commented on 2024-09-08 08:47 (UTC)

If you search the AUR for "speed" "test" there are dozens and dozens of tools with similar name written in many different languages.

It gets confusing for the end user to quickly know which one is which.

  Description:   Unofficial speedtest.net cli using raw TCP for better accuracy

Could you edit that "Description" to something like,

  Description:   Unofficial speedtest.net cli using raw TCP for better accuracy. Written in C++

Doesnt cost you anything.

Thanks in advance.

rbr1685 commented on 2024-04-08 00:48 (UTC)

Apr 8th update has resolved whatever issue I was having - thanks