summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/archlinux32-keyring/PKGBUILD1
-rw-r--r--core/pacman-mirrorlist/PKGBUILD1
-rwxr-xr-xcore/pacman-mirrorlist/update-list19
3 files changed, 12 insertions, 9 deletions
diff --git a/core/archlinux32-keyring/PKGBUILD b/core/archlinux32-keyring/PKGBUILD
index 523322c1..957dd3b0 100644
--- a/core/archlinux32-keyring/PKGBUILD
+++ b/core/archlinux32-keyring/PKGBUILD
@@ -1,3 +1,4 @@
+# Maintainer: Erich Eckner <deep42thought@archlinux32.org>
pkgname=archlinux32-keyring
pkgver=20170515
pkgrel=1
diff --git a/core/pacman-mirrorlist/PKGBUILD b/core/pacman-mirrorlist/PKGBUILD
index 3391dbd0..63a8a430 100644
--- a/core/pacman-mirrorlist/PKGBUILD
+++ b/core/pacman-mirrorlist/PKGBUILD
@@ -1,3 +1,4 @@
+# Maintainer: Erich Eckner <deep42thought@archlinux32.org>
pkgver=20170528
sha256sums=('2abc5a5f9ed4ae223aa7bcdf251e093b1fd186a639e6bbee2345bd7d1f0be33e')
md5sums=('35cab3afc3962903c9c42cfd501821f7')
diff --git a/core/pacman-mirrorlist/update-list b/core/pacman-mirrorlist/update-list
index f1fb30f2..6da4037a 100755
--- a/core/pacman-mirrorlist/update-list
+++ b/core/pacman-mirrorlist/update-list
@@ -2,12 +2,13 @@
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
+sed -i '/^[^#]/d' PKGBUILD
+printf "pkgver=%s\n" "$(date '+%Y%m%d')" >> PKGBUILD
+for sum_type in sha256 md5; do
+ printf "%ssums=('%s')\n" \
+ "${sum_type}" \
+ "$(
+ ${sum_type}sum mirrorlist | \
+ awk '{print $1}'
+ )" >> PKGBUILD
+done