summaryrefslogtreecommitdiff
path: root/libre/reflector/PKGBUILD
blob: 002607a7e373e675a4829cb005f6b4a8b4ac70b3 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#Maintainer: Xyne <ac xunilhcra enyx, backwards>
#Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
pkgname=reflector
pkgver=2014
pkgrel=4
pkgdesc='A Python 3 module and script to retrieve and filter the latest Pacman mirror list (Parabola rebranded)'
arch=(any)
license=(GPL)
url="http://xyne.archlinux.ca/projects/reflector"
depends=(python3)
optdepends=('rsync: rate rsync mirrors')
source=(
  http://xyne.archlinux.ca/projects/reflector/src/reflector-2014.tar.xz
  http://xyne.archlinux.ca/projects/reflector/src/reflector-2014.tar.xz.sig
  rebranding.patch
)
sha512sums=(
  ac9e0026019048c96be5dd4d156bf79b7d7616f764b5d8fb169cb09cbf629a3e2b1efb1ee7cb53b4e0cd109b985f598d9f80941714e47ed0f21c6417df9b073b
  SKIP
  83609177f88c0412f1a543f0431ecfb8be229bfef76d7087c35e9273988faedaf24a98ca45d98248eb5dfaa9a27e321dea99a256c68c5bc86a8a0ba53ed56d02
)
md5sums=(
  69ab92b948ffe842189229d09bfbf1c0
  SKIP
  24c2a21bc1ac0d3758d8043f36d95add
)

prepare ()
{
  cd "$srcdir/$pkgname-$pkgver"
  # Rebranding for Parabola
  patch -Np1 -i "$srcdir/rebranding.patch"
}

package ()
{
  cd "$srcdir/$pkgname-$pkgver"
  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  install -Dm755 "$srcdir/$pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/$pkgname"
}


# vim: set ts=2 sw=2 et: