mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-09 19:08:57 +08:00
40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
#
|
|
# Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=pacman-mirrorlist
|
|
pkgver=20100620
|
|
pkgrel=2
|
|
pkgdesc="Chakra 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=('783537909e8e56772033d82562553ef4')
|