blob: b8bf2abb1df6f53aed187648561aec1b557adfb7 (
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
|
# Maintainer: Castor <whoisYoges at castorisdead dot xyz>
pkgname=rankmirrors
pkgver=3.3.0
pkgrel=1
pkgdesc="Read a list of archlinux mirrors from a file and rank them by speed."
arch=('any')
url="https://github.com/whoisYoges/rankmirrors"
license=('AGPL3')
makedepends=('git')
depends=('bash' 'pacman')
provides=('rankmirrors')
conflicts=('rankmirrors')
options=(!strip !emptydirs)
source=("${pkgname}::git+${url}")
sha256sums=('SKIP')
package() {
cd "${srcdir}/$pkgname"
chmod +x rankmirrors
install -Dm755 ./rankmirrors "${pkgdir}/usr/bin/rankmirrors"
install -Dm644 ./rankmirrors.1 "${pkgdir}/usr/share/man/man1/rankmirrors.1.gz"
}
pkgver() {
cd "${srcdir}/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
|