aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-mirrors/APKBUILD
blob: 0a99de7a71b27969ae68e1162514e1a72f793f53 (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
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-mirrors
pkgver=3.4.0
pkgrel=1
pkgdesc="List of Alpine Linux Mirrors"
url="http://alpinelinux.org/"
arch="noarch"
license="MIT"
depends=""
makedepends=""
install=""
subpackages=""
source="mirrors.yaml"

build() {
	cd "$srcdir"
	awk '$1 == "-" && $2 ~ /^http:/ {print $2}' mirrors.yaml > MIRRORS.txt
}

package() {
	install -D -m644 "$srcdir"/mirrors.yaml \
		"$pkgdir"/usr/share/alpine-mirrors/mirrors.yaml || return 1
	install -D -m644 "$srcdir"/MIRRORS.txt \
		"$pkgdir"/usr/share/alpine-mirrors/MIRRORS.txt || return 1
}

md5sums="e329d536c0e260d965b1c3e767fc63ab  mirrors.yaml"
sha256sums="dbad8c7b2794c64f70e9fe53f76e9ab403b85211dbe4d857fd1acf42d65e7de3  mirrors.yaml"
sha512sums="b9bc9d99de5675d94a1edfef3f32fa3bba3395a4c481fb25d0e6720bcd78d2a139c576d5e7e6b18ce47ab081f78c9f3f40671676ba23d70f34b55a2917581a38  mirrors.yaml"