diff options
Diffstat (limited to 'libre/reflector-parabola')
-rw-r--r-- | libre/reflector-parabola/PKGBUILD | 47 | ||||
-rw-r--r-- | libre/reflector-parabola/rebranding.patch | 64 |
2 files changed, 111 insertions, 0 deletions
diff --git a/libre/reflector-parabola/PKGBUILD b/libre/reflector-parabola/PKGBUILD new file mode 100644 index 000000000..6735b352a --- /dev/null +++ b/libre/reflector-parabola/PKGBUILD @@ -0,0 +1,47 @@ +#Maintainer (Arch): Xyne <ac xunilhcra enyx, backwards> +#Maintainer: André Silva <emulatorman@parabola.nu> +_pkgname=reflector +pkgname=reflector-parabola +pkgver=2014.8 +pkgrel=1 +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" +replaces=($_pkgname) +conflicts=($_pkgname) +provides=($_pkgname=$pkgver) +depends=(python3) +optdepends=('rsync: rate rsync mirrors') +source=( + http://xyne.archlinux.ca/projects/reflector/src/reflector-2014.8.tar.xz + http://xyne.archlinux.ca/projects/reflector/src/reflector-2014.8.tar.xz.sig + rebranding.patch +) +sha512sums=( + c548a5fe638c465803ff7962bdebeef3740b0cbfc65ba5fbbfb1b07d485e90ee1ea35c71e07f9ac3cb9964cf754b28edd81b3df2f3a14c7686ca7fb84cc471eb + e9177dcc04b498ffaeadfd83278b0f51dfd7167267e6556ca55768afbe01b1d712ade2ab7252a191002d12da07e5330ade410d8dfa99112ec2aaa93b24d46beb + fc042cd3ffa67445a874d460659e43a55607271a2b776a4c810507443babe3a505014a2c48e0e4760cb7c19d6d66797e09c6b1b200985f4685eb8ed5c2347819 +) +md5sums=( + b7bf2653b68e79ee40fc715bf180490e + 583a9a95465c5daa6c0ca6bb86e96f0d + d938639a354d46e9819f1f36b3aa5fb3 +) + +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: diff --git a/libre/reflector-parabola/rebranding.patch b/libre/reflector-parabola/rebranding.patch new file mode 100644 index 000000000..b29653ffd --- /dev/null +++ b/libre/reflector-parabola/rebranding.patch @@ -0,0 +1,64 @@ +diff --git a/Reflector.py b/Reflector.py +index 20b7fc7..22e5f9d 100644 +--- a/Reflector.py ++++ b/Reflector.py +@@ -63,7 +63,7 @@ def get_cache_file(): + + class MirrorStatus(object): + # JSON URI +- URL = 'https://www.archlinux.org/mirrors/status/json/' ++ URL = 'https://parabolagnulinux.org/mirrors/status/json/' + # Mirror URL format. Accepts server base URL, repository, and architecture. + MIRROR_URL_FORMAT = '{0}{1}/os/{2}' + MIRRORLIST_ENTRY_FORMAT = "Server = " + MIRROR_URL_FORMAT + "\n" +@@ -92,8 +92,13 @@ class MirrorStatus(object): + 'extra', + 'gnome-unstable', + 'kde-unstable', ++ 'libre', ++ 'libre-testing', ++ 'libre-multilib', + 'multilib', +- 'multilib-testing' ++ 'multilib-testing', ++ 'nonprism', ++ 'pcr', + 'staging', + 'testing' + ) +@@ -453,7 +458,7 @@ class MirrorStatus(object): + + width = 80 + colw = 11 +- header = '# Arch Linux mirrorlist generated by Reflector #'.center(width, '#') ++ header = '# Parabola GNU/Linux-libre mirrorlist generated by Reflector #'.center(width, '#') + border = '#' * len(header) + mirrorlist = '{}\n{}\n{}\n'.format(border, header, border) + \ + '\n' + \ +@@ -542,7 +547,7 @@ def add_arguments(parser): + ''' + Add reflector arguments to the argument parser. + ''' +- parser = argparse.ArgumentParser(description='retrieve and filter a list of the latest Arch Linux mirrors') ++ parser = argparse.ArgumentParser(description='retrieve and filter a list of the latest Parabola GNU/Linux-libre mirrors') + + parser.add_argument( + '--connection-timeout', type=int, metavar='n', default=5, +@@ -561,7 +566,7 @@ def add_arguments(parser): + + parser.add_argument( + '--cache-timeout', type=int, metavar='n', default=300, +- help='The cache timeout in seconds for the data retrieved from the Arch Linux Mirror Status API. The default is 300 (5 minutes).' ++ help='The cache timeout in seconds for the data retrieved from the Parabola GNU/Linux-libre Mirror Status API. The default is 300 (5 minutes).' + ) + + parser.add_argument( +@@ -646,7 +651,7 @@ def parse_args(args=None): + Parse command-line arguments. + ''' + parser = argparse.ArgumentParser( +- description='retrieve and filter a list of the latest Arch Linux mirrors' ++ description='retrieve and filter a list of the latest Parabola GNU/Linux-libre mirrors' + ) + parser = add_arguments(parser) + options = parser.parse_args(args) |