[arch-commits] Commit in youtube-viewer/trunk (PKGBUILD)
Ivy Foster
escondida at archlinux.org
Wed Oct 9 19:13:55 UTC 2019
Date: Wednesday, October 9, 2019 @ 19:13:55
Author: escondida
Revision: 514379
upgpkg: youtube-viewer 1:3.5.8-1
update to 3.5.8, change PKGBUILD style to suit current maintainer
Modified:
youtube-viewer/trunk/PKGBUILD
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++----------------------------
1 file changed, 32 insertions(+), 28 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-09 18:55:39 UTC (rev 514378)
+++ PKGBUILD 2019-10-09 19:13:55 UTC (rev 514379)
@@ -1,4 +1,5 @@
-# Maintainer: Alad Wenter <alad at mailbox.org>
+# Maintainer: Ivy Foster <code at iff.ink>
+# Contributor: 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>
@@ -5,44 +6,47 @@
pkgname=youtube-viewer
epoch=1
-pkgver=3.5.5
+pkgver=3.5.8
pkgrel=1
pkgdesc='Command line utility for viewing YouTube videos'
-arch=('any')
+arch=(any)
url='https://github.com/trizen/youtube-viewer'
-license=('GPL3')
-depends=('perl' '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: print results in a fixed-width format'
- 'perl-term-readline-gnu: better STDIN support'
- 'youtube-dl: play videos with encrypted signatures'
- 'wget: download videos with wget'
- 'vlc: play videos with VLC'
- 'mpv: play videos with MPV'
- 'gtk2-perl: GTK GUI'
- 'perl-file-sharedir: GTK GUI')
+license=(GPL3)
+depends=(perl 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: print results in a fixed-width format'
+ 'perl-term-readline-gnu: better STDIN support'
+ 'youtube-dl: play videos with encrypted signatures'
+ 'wget: download videos with wget'
+ 'vlc: play videos with VLC'
+ 'mpv: play videos with MPV'
+ 'gtk2-perl: GTK GUI'
+ 'perl-file-sharedir: GTK GUI'
+)
source=("$pkgname-$pkgver.tar.gz::https://github.com/trizen/$pkgname/archive/$pkgver.tar.gz")
-sha256sums=('f6ce0a57227dfe2c411ef9a7023824206f1f546de06a23e644a2ca798a154a3f')
+# sums provided by packager makepkg -g
+sha256sums=(afe061263917a84cd297919c1ac79157ed3952f549825552eb6bb821e38fae0c)
build() {
- cd "$pkgname-$pkgver"
- perl Build.PL --installdirs vendor --gtk
+ cd "$pkgname-$pkgver"
+ perl Build.PL --installdirs vendor --gtk
}
check(){
- cd "$pkgname-$pkgver"
- ./Build test
+ cd "$pkgname-$pkgver"
+ ./Build test
}
package() {
- cd "$pkgname-$pkgver"
- ./Build install --destdir "$pkgdir"
- rm -r "$pkgdir"/usr/lib
+ cd "$pkgname-$pkgver"
+ ./Build install --destdir "$pkgdir"
+ rm -r "$pkgdir/usr/lib"
- mkdir "$pkgdir"/usr/share/{applications,pixmaps}
- mv "$pkgdir"/usr/share/perl5/vendor_perl/auto/share/dist/WWW-YoutubeViewer/gtk-youtube-viewer.desktop \
- "$pkgdir"/usr/share/applications/gtk-youtube-viewer.desktop
- cp "$pkgdir"/usr/share/perl5/vendor_perl/auto/share/dist/WWW-YoutubeViewer/icons/gtk-youtube-viewer.png \
- "$pkgdir"/usr/share/pixmaps/gtk-youtube-viewer.png
+ mkdir -p "$pkgdir/usr/share/applications" "$pkgdir/usr/share/pixmaps"
+ mv "$pkgdir"/usr/share/perl5/vendor_perl/auto/share/dist/WWW-YoutubeViewer/gtk-youtube-viewer.desktop \
+ "$pkgdir"/usr/share/applications/gtk-youtube-viewer.desktop
+ cp "$pkgdir"/usr/share/perl5/vendor_perl/auto/share/dist/WWW-YoutubeViewer/icons/gtk-youtube-viewer.png \
+ "$pkgdir"/usr/share/pixmaps/gtk-youtube-viewer.png
}
More information about the arch-commits
mailing list