summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f166ca89be35e31d9d2bab1679569ed17a4dbe3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer:  Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>

_pkgname="taierspeed-cli"
pkgname="${_pkgname}-bin"
pkgver=1.7.2
pkgrel=1
pkgdesc="A CLI for TaierSpeed. Test your network without a phone."
arch=('x86_64' 'aarch64' 'armv7h')
url="https://github.com/ztelliot/${_pkgname}"
license=('LGPL-3.0-or-later')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
_pkgsrc="${_pkgname}-${pkgver}"
source=("README-${pkgver}.md::${url}/raw/refs/tags/v${pkgver}/README.md"
        "LICENSE-${pkgver}::${url}/raw/refs/tags/v${pkgver}/LICENSE")
source_x86_64=("${_pkgsrc}-x86_64::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_linux_amd64")
source_aarch64=("${_pkgsrc}-aarch64::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_linux_arm64")
source_armv7h=("${_pkgsrc}-armv7h::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_linux_armv7")
sha256sums=('e5327d58bbba05ebd74c5d9763733b7046f444d468e2d182819967cf7b008284'
            'e3a994d82e644b03a792a930f574002658412f62407f5fee083f2555c5f23118')
sha256sums_x86_64=('845b98ca0a9fa72c68ff41eb3943d4a7d7341a8443a7bb425d647d01e0ea08b1')
sha256sums_aarch64=('2315b44ed71350e0b08ffca80514216a52fbc50ca81bf3f4a87b587d3df9503f')
sha256sums_armv7h=('70b03f72249015e04b456a81017999da7191e131ddf97c6e2833f2c12df12054')

package() {
  cd "${srcdir}"
  install -vDm755 "${_pkgsrc}-${CARCH}" "${pkgdir}/usr/bin/${_pkgname}"
  install -vDm644 "README-${pkgver}.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
  install -vDm644 "LICENSE-${pkgver}"   "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}