summaryrefslogtreecommitdiff
path: root/core/pacman-mirrorlist/update-list
blob: f1fb30f29813c131327420c650cb76d0f0da4260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

cd "${0%/*}"

printf "pkgver=%s\n" "$(date '+%Y%m%d')" > PKGBUILD
printf "sha256sums=('%s')\n" "$(
  sha256sum mirrorlist | \
    awk '{print $1}'
)" >> PKGBUILD
printf "md5sums=('%s')\n" "$(
  md5sum mirrorlist | \
    awk '{print $1}'
)" >> PKGBUILD