# Maintainer: Nikita Almakov pkgname=rate-mirrors-bin pkgver=0.17.1 pkgrel=1 pkgdesc="Everyday-use client-side map-aware mirror ranking tool - pre-built with musl" url="https://github.com/westandskif/rate-mirrors" license=('custom') options=(!lto) source_x86_64=("${pkgname}-${pkgver}-x86_64.tar.gz::https://github.com/westandskif/rate-mirrors/releases/download/v${pkgver}/rate-mirrors-v${pkgver}-x86_64-unknown-linux-musl.tar.gz") source_aarch64=("${pkgname}-${pkgver}-aarch64.tar.gz::https://github.com/westandskif/rate-mirrors/releases/download/v${pkgver}/rate-mirrors-v${pkgver}-aarch64-unknown-linux-musl.tar.gz") arch=('x86_64' 'aarch64') depends=() makedepends=() conflicts=("rate-mirrors") provides=("rate-mirrors") build() { tar xzf "${pkgname}-${pkgver}-${CARCH}.tar.gz" } package() { cd "rate-mirrors-v${pkgver}-${CARCH}-unknown-linux-musl" install -Dm755 "rate_mirrors" "$pkgdir/usr/bin/rate-mirrors" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" } #vim: syntax=sh sha256sums_x86_64=('1878af2b93818ffc1b0eeffd5623a427aa0a00bb75aa23a88e46398331b62c4b') sha256sums_aarch64=('6d4b97953f42ee5c94279faab8484ee9e87b900a63551f2dd0ba70dda62346c5')