summaryrefslogtreecommitdiff
path: root/pacman-mirrorlist
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-04 14:55:21 +0200
committerErich Eckner <git@eckner.net>2016-04-04 14:55:21 +0200
commit5f715153b5740291e8808763e883e93f10ac1df1 (patch)
tree5a608a016aabddea67bf5e1c91c347934c92314a /pacman-mirrorlist
parentc6a36aa869191398710c6f21588c85631cb7de30 (diff)
downloadarchlinuxewe.git.save-5f715153b5740291e8808763e883e93f10ac1df1.tar.xz
pacman-mirrorlist neu
Diffstat (limited to 'pacman-mirrorlist')
-rw-r--r--pacman-mirrorlist/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/pacman-mirrorlist/PKGBUILD b/pacman-mirrorlist/PKGBUILD
new file mode 100644
index 00000000..011e01e5
--- /dev/null
+++ b/pacman-mirrorlist/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id$
+# Contributor: Dan McGee <dan@archlinux.org>
+# Maintainer: Erich Eckner <arch at eckner dot net>
+
+pkgname=pacman-mirrorlist
+pkgver=20160404
+pkgrel=1
+pkgdesc="Arch Linux mirror list for use by pacman"
+arch=('any')
+url="https://www.archlinux.org/mirrorlist/"
+license=('GPL')
+backup=(etc/pacman.d/mirrorlist)
+source=("${pkgname}-${pkgver}-${pkgrel}-any-original.pkg.tar.xz::https://arch.eckner.net/core/os/x86_64/${pkgname}-${pkgver}-${pkgrel}-any.pkg.tar.xz")
+
+package() {
+ mkdir -p $pkgdir/etc/pacman.d
+ tar -xJf ${pkgname}-${pkgver}-${pkgrel}-any-original.pkg.tar.xz
+ cat etc/pacman.d/mirrorlist | \
+ (
+ while read s
+ do
+ echo "${s}"
+ if [ -z "${s}" ]
+ then
+ echo 'Server = https://arch.eckner.net/$repo/os/$arch'
+ echo ''
+ break
+ fi
+ done
+ cat
+ ) \
+ > mirrorlist
+ install -m644 mirrorlist $pkgdir/etc/pacman.d/
+}
+
+sha256sums=('b20c13149d816245d92db5c3d7e4a81babebd70cf842e633f0997a7327d1ecf9')