# Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
# Maintainer (Parabola): Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>

pkgname=hyperbola-mirrorlist
pkgver=20190529
pkgrel=1.hyperbola1
pkgrel+=.par1
pkgdesc="Hyperbola mirror list"
arch=('any')
url="https://repo.hyperbola.info:50000/other/mirrorlist/mirrorlist.txt"
license=('CC0-1.0')
source=(mirrorlist-${pkgver}.txt::${url}
        legalcode.txt)
sha512sums=('cc264fa3aa1844b0ab626d44b53b24af70cf40ba2a77c74af8def87f35cf9e85a8cd18a5b819f2e5b04912a9ce99e0930fe501eae50010577fafc2fbbaf5de16'
            '1eb4436f8d58766cbe99db97e5e8c0db8a706376afd291c337de1ba7a6b066d3791dc85ad034bdd54ea336bed6e6e8e7a037d8b04b2773c9c7517b9d9921d1fa')

package() {
  mkdir -p $pkgdir/usr/share/mirrorlist
  install -m644 $srcdir/mirrorlist-${pkgver}.txt $pkgdir/usr/share/mirrorlist/hyperbola

  mkdir -p $pkgdir/usr/share/licenses/hyperbola-mirrorlist
  install -m644 $srcdir/legalcode.txt $pkgdir/usr/share/licenses/hyperbola-mirrorlist
}
