[arch-commits] Commit in youtube-viewer/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Jun 2 04:53:59 UTC 2017


    Date: Friday, June 2, 2017 @ 04:53:58
  Author: felixonmars
Revision: 232787

archrelease: copy trunk to community-staging-any

Added:
  youtube-viewer/repos/community-staging-any/
  youtube-viewer/repos/community-staging-any/PKGBUILD
    (from rev 232786, youtube-viewer/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: youtube-viewer/repos/community-staging-any/PKGBUILD (from rev 232786, youtube-viewer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2017-06-02 04:53:58 UTC (rev 232787)
@@ -0,0 +1,45 @@
+#$Id$
+# Maintainer: 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.2.7
+pkgrel=2
+pkgdesc='Command line utility for viewing YouTube videos'
+arch=('any')
+url='https://github.com/trizen/youtube-viewer'
+license=('GPL3')
+source=("https://github.com/trizen/$pkgname/archive/$pkgver.tar.gz")
+sha256sums=('cea80063a472c0b08aa907d936018eba1d1243f148d8437bd98a636adee72eb9')
+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