[arch-commits] Commit in youtube-viewer/repos (2 files)
Alad Wenter
alad at archlinux.org
Sat Oct 14 17:38:17 UTC 2017
Date: Saturday, October 14, 2017 @ 17:38:17
Author: alad
Revision: 262777
archrelease: copy trunk to community-testing-any
Added:
youtube-viewer/repos/community-testing-any/
youtube-viewer/repos/community-testing-any/PKGBUILD
(from rev 262776, youtube-viewer/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: youtube-viewer/repos/community-testing-any/PKGBUILD (from rev 262776, youtube-viewer/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2017-10-14 17:38:17 UTC (rev 262777)
@@ -0,0 +1,46 @@
+#$Id$
+# Maintainer: Alad Wenter <alad at mailbox.org>
+# Contributor: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Daniel Wallace < danielwallace at gtmanfred dot com>
+# Contributor: Trizen <echo dHJpemVueEBnbWFpbC5jb20K | base64 -d>
+
+pkgname=youtube-viewer
+epoch=1
+pkgver=3.3.1
+pkgrel=1
+pkgdesc='Command line utility for viewing YouTube videos'
+arch=('any')
+url='https://github.com/trizen/youtube-viewer'
+license=('GPL3')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/trizen/$pkgname/archive/$pkgver.tar.gz")
+sha256sums=('91fd0eef5744b0cbb859a87b158ae95bdb2512b921ffab8e916710ac5e9ad092')
+depends=('perl>=5.16.0' 'perl-data-dump' 'perl-json' 'perl-lwp-protocol-https' 'perl-libwww')
+makedepends=('perl-module-build')
+optdepends=(
+ 'perl-json-xs: faster JSON to HASH conversion'
+ 'perl-text-charwidth: to print the results in a fixed-width format (-W)'
+ 'perl-term-readline-gnu: for better STDIN support'
+ 'youtube-dl: for playing videos with encrypted signatures'
+ 'wget: for downloading videos with wget'
+ 'vlc: for playing the videos with VLC'
+ 'mpv: for playing the videos with MPV (recommended)'
+ 'gtk2-perl: for the GTK GUI'
+ 'perl-file-sharedir: for the GTK GUI'
+)
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ perl Build.PL --installdirs vendor --gtk
+}
+
+check(){
+ cd $pkgname-$pkgver
+ ./Build test
+}
+
+package() {
+ cd $pkgname-$pkgver
+ ./Build install --destdir "$pkgdir"
+ rm -r "$pkgdir"/usr/lib
+}
More information about the arch-commits
mailing list