[arch-commits] Commit in plowshare/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Mon Dec 4 23:24:07 UTC 2017
Date: Monday, December 4, 2017 @ 23:24:06
Author: dvzrv
Revision: 272179
upgpkg: plowshare 2.1.7-2
Updating maintainer. Adding further optdepends (picture viewers for captchas).
Switching to sha512sums. Moving all modifications to prepare(). Minor fixes.
Modified:
plowshare/trunk/PKGBUILD
----------+
PKGBUILD | 32 ++++++++++++++++++++------------
1 file changed, 20 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-04 22:41:01 UTC (rev 272178)
+++ PKGBUILD 2017-12-04 23:24:06 UTC (rev 272179)
@@ -1,10 +1,11 @@
# $Id$
-# Maintainer : speps <speps at aur dot archlinux dot org>
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: speps <speps at aur dot archlinux dot org>
# Contributor: breakdown <breakdown(at)archlinux(dot)us>
pkgname=plowshare
pkgver=2.1.7
-pkgrel=1
+pkgrel=2
pkgdesc="Command-line downloader and uploader for Rapidshare, Mediafire and other file sharing websites."
arch=('any')
url="https://github.com/mcrapet/plowshare"
@@ -11,17 +12,24 @@
license=('GPL3')
depends=('curl' 'recode' 'js' 'git')
optdepends=('bash-completion: enable bash auto completion'
- 'libcaca: ascii display for no X server')
-source=($pkgname-$pkgver.tar.gz::"$url/archive/v$pkgver.tar.gz")
-md5sums=('16de34e58101c8f1cac5dbd4295a91f0')
+ 'imagemagick: X11 picture viewer for captchas'
+ 'sxiv: X11 picture viewer for captchas'
+ 'feh: X11 picture viewer for captchas'
+ 'qiv: X11 picture viewer for captchas'
+ 'fbida: framebuffer picture viewer for captchas'
+ 'libcaca: framebuffer ascii picture viewer for captchas')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha512sums=('7fe91d3756c55ffc1daf9275bfd2413f2644accd8fa69f2b1064696e1435f9b8be9515907c8249ffde85436dc6966f1d42bad94ccfbde93ae584dcc0d642c215')
-package() {
- cd $pkgname-$pkgver
-
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ # rename js executable to reflect js package
+ sed -e 's|-js}|-js24}|' -i src/core.sh
# force release version
- export PLOWSHARE_FORCE_VERSION=$pkgver
+ export PLOWSHARE_FORCE_VERSION="${pkgver}"
+}
- DESTDIR="$pkgdir/" PREFIX=/usr make
-
- sed -e 's|-js}|-js24}|' -i "$pkgdir"/usr/share/plowshare/core.sh
+package() {
+ cd "${pkgname}-${pkgver}"
+ make install DESTDIR="${pkgdir}/" PREFIX=/usr
}
More information about the arch-commits
mailing list