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

build() {
	cd "$srcdir"
	lua gen-txt.lua < 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="d6db92e30c9a5b439b923275bed48f7b  mirrors.yaml
4a3bfe9df4343fb44759a5049fa4bfc6  gen-txt.lua"
sha256sums="26504db62c1c19cff8b4555f961ecf2711aa2f2dde9b086d1dcc2312c566ee72  mirrors.yaml
87ede8d9104dcef9cbe3f53282a0bc5820bf44a1adcdfbf109e2d4b0385980be  gen-txt.lua"
sha512sums="484383a4864cf98ccfe2dce1f935fb70b16451bf85f0478e2f7cca0d82b0b7b9b0ae83641d3a99492b0ee776c00a336194b710b11ca0f0eb26d50fe845cff38a  mirrors.yaml
91d51ad685d5cd02670b7f1575698fc3b3309cc52b3318ffcf252a64767b8087c85a10c3461a46272b542850bd7e33f504fbdb42ac2e1f001af837a2dd0179f7  gen-txt.lua"