forked from chaotic-aur/pkgbuild-chaotic-mirrorlist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
32 lines (27 loc) · 885 Bytes
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: dr460nf1r3 <dr460nf1r3 at chaotic dot cx>
# Maintainer: Pedro H. Lara Campos <[email protected]>
# Contributor: Florian Pritz <[email protected]>
# Contributor: Dan McGee <[email protected]>
pkgname=chaotic-mirrorlist
pkgver=20220730
pkgrel=2
pkgdesc="Chaotic-AUR mirrorlist to use with Pacman"
arch=('any')
url="https://aur.chaotic.cx"
license=('GPL')
backup=(etc/pacman.d/chaotic-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() {
rm -f mirrorlist
curl -o mirrorlist "$url/mirrorlist.txt"
}
package() {
mkdir -p "$pkgdir/etc/pacman.d"
install -m644 "$srcdir/mirrorlist" "$pkgdir/etc/pacman.d/chaotic-mirrorlist"
}
sha256sums=('0c4a4db843254f5412edde86610d0f78d3b9b4b85ee1b0e11547d57f861d8f8a')