From 6aa639a8be70bf0a49fcee1ab9a64f7b21fcd457 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Sun, 4 Feb 2018 15:59:40 +0100 Subject: pcr/aurvote: updated to 1.9 --- pcr/aurvote/PKGBUILD | 29 ++++--- pcr/aurvote/aurvote | 217 --------------------------------------------------- 2 files changed, 19 insertions(+), 227 deletions(-) delete mode 100755 pcr/aurvote/aurvote diff --git a/pcr/aurvote/PKGBUILD b/pcr/aurvote/PKGBUILD index da55eb338..f3dd61cd3 100644 --- a/pcr/aurvote/PKGBUILD +++ b/pcr/aurvote/PKGBUILD @@ -1,17 +1,26 @@ -# Contributor: tuxce +# Maintainer (AUR): Javier Tia # Maintainer : Parabola Aurélien DESBRIÈRES +# parabola changes and rationale: +# - renamed tarball to avoid collisions + pkgname=aurvote -pkgver=1.6 -pkgrel=1 +pkgver=1.9 +pkgrel=3 pkgdesc="Tool to vote for favorite AUR packages" -url="http://git.archlinux.fr/aurvote.git/" -license=('GPL') +url="https://github.com/archlinuxfr/aurvote" +license=('GPL') arch=('any') -depends=('curl') -source=($pkgname) -md5sums=('03d149edf8b691578e0da1972de6f448') +depends=('curl') +conflicts=('aurvote-git') +replaces=('aurvote-git') +source=("$pkgname-$pkgver.tar.gz::${url}/archive/${pkgver}.tar.gz") +sha256sums=('bd888c25b376e97bfad1c8f2fd0eefb4db0821ff422356d985009ba287425da7') -package() { - install -D -m 755 "$srcdir/$pkgname" "$pkgdir/usr/bin/$pkgname" +package() { + cd ${srcdir}/${pkgname}-${pkgver} + install -Dm 755 aurvote "${pkgdir}/usr/bin/aurvote" + install -Dm 644 zsh-completion "${pkgdir}/usr/share/zsh/site-functions/_aurvote" } + +# vim:set ft=sh ts=2 sw=2 et: diff --git a/pcr/aurvote/aurvote b/pcr/aurvote/aurvote deleted file mode 100755 index 833267f10..000000000 --- a/pcr/aurvote/aurvote +++ /dev/null @@ -1,217 +0,0 @@ -#!/bin/bash -# -# aurvote : Tool to vote for favorite AUR packages -# -# Copyright (c) 2007-2010 Julien MISCHKOWITZ -# Copyright (c) 2011 tuxce -# -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU Library General Public License as published -# by the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# - -NAME='aurvote' -VERSION=1.6 - -TMPDIR=${TMPDIR:-/tmp} -AV_TMP="$TMPDIR/aurvote-$USER" - -CONFIGFILE=${XDG_CONFIG_HOME:-~/.config}/aurvote - -AUR_URL="https://aur.archlinux.org" -AUR_URL_LOGIN="$AUR_URL/login/" -AUR_URL_PKG_INFO="$AUR_URL/rpc.php" -AUR_URL_PKG_PAGE="$AUR_URL/packages/" -AUR_DOMAIN="aur.archlinux.org" -AUR_COOKIE="AURSID" -AUR_COOKIE_VALUE="" -AUR_SETLANG="?setlang=en" -AUR_TOKEN="" - -version() { - echo "$NAME $VERSION" -} - -usage() { - echo "$NAME $VERSION" - echo - echo "usage: $0