mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 05:37:14 +08:00
35 lines
970 B
Bash
35 lines
970 B
Bash
# $Id: PKGBUILD 66563 2010-01-31 21:48:51Z dan $
|
|
# Maintainer: Dan McGee <dan@archlinux.org>
|
|
|
|
pkgname=pacman-mirrorlist
|
|
pkgver=20100131
|
|
pkgrel=1
|
|
pkgdesc="Arch Linux mirror list for use by pacman"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.archlinux.org/pacman/"
|
|
license=('GPL')
|
|
groups=('base')
|
|
backup=(etc/pacman.d/mirrorlist)
|
|
source=(mirrorlist)
|
|
|
|
# NOTE on building this package:
|
|
# * Go to the trunk/ directory
|
|
# * Run bash -c ". PKGBUILD; updatelist"
|
|
# * Update the checksums, update pkgver
|
|
# * Build the package
|
|
|
|
updatelist() {
|
|
wget -O mirrorlist http://www.archlinux.org/mirrorlist/i686/all/
|
|
sed -i 's/i686/@carch@/' mirrorlist
|
|
}
|
|
|
|
build() {
|
|
mkdir -p $pkgdir/etc/pacman.d
|
|
install -m644 $srcdir/mirrorlist $pkgdir/etc/pacman.d/
|
|
# customize mirrorlist to architecture
|
|
sed -i -e "s/@carch@/${CARCH}/g" $pkgdir/etc/pacman.d/mirrorlist
|
|
}
|
|
|
|
md5sums=('f8a54e35a0f0fe64f8119fce02ad359e')
|
|
sha256sums=('3eaecf8e8a07598dec21e28568b18d505cdcc9edc9a084b750f4f6eccfb2429d')
|