aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c0b1070b279b0955275820764bdf1f4fcaea5da (plain)
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
# Maintainer: Andrew Warren-Love <andrew AT awarrenlove DOT com>
pkgname=pacmirror-git
_pkgname=pacmirror
pkgver=auto
pkgrel=1
pkgdesc="Update the pacman mirror list using reflector"
arch=('any')
url="https://github.com/awarrenlove/pacmirror"
license=('MIT')
depends=('python3' 'reflector')
provides=('pacmirror')
source=('git://github.com/awarrenlove/pacmirror.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"
	echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
	cd "$srcdir/$_pkgname"

	install -D -m755 pacmirror ${pkgdir}/usr/bin/pacmirror
	install -D -m644 pacmirror.conf ${pkgdir}/etc/pacmirror/pacmirror.conf.sample
	install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/pacmirror/LICENSE
}