# Contributor: Matt Smith # Maintainer: Natanael Copa pkgname=alpine-mirrors pkgver=3.1.2 pkgrel=1 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="eb1b44fbaee11c99605fa691680fcb2a mirrors.yaml 4a3bfe9df4343fb44759a5049fa4bfc6 gen-txt.lua" sha256sums="db3a4124d60679a1b0b6dd5b7623782b7087844ecdc905b38869dc3c0e6ec52f mirrors.yaml 87ede8d9104dcef9cbe3f53282a0bc5820bf44a1adcdfbf109e2d4b0385980be gen-txt.lua" sha512sums="c21d2126ba22ad77deec79923a357a795a71052f10822d143bc26606661a9d7dc77063549e296b7ce49cfeeea9611616bbd3693f68296274d394d002c4425640 mirrors.yaml 91d51ad685d5cd02670b7f1575698fc3b3309cc52b3318ffcf252a64767b8087c85a10c3461a46272b542850bd7e33f504fbdb42ac2e1f001af837a2dd0179f7 gen-txt.lua"