blob: 0a1f70a9958a41bf5baa4e876b2030227afa40b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: Trizen <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>
# Contributor: Ivy Foster <iff@archlinux.org>
# Contributor: Alad Wenter <alad@mailbox.org>
# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Daniel Wallace < danielwallace at gtmanfred dot com>
pkgname=youtube-viewer
pkgdesc='Command line utility for viewing YouTube videos'
url='https://github.com/trizen/youtube-viewer'
license=('Artistic2.0')
epoch=1
pkgver=3.11.3
pkgrel=1
depends=(perl perl-data-dump perl-file-sharedir perl-json perl-lwp-protocol-https perl-libwww perl-unicode-linebreak)
makedepends=(perl-module-build)
optdepends=(
'mpv: play videos with MPV'
'perl-file-sharedir: GTK GUI'
'perl-gtk3: GTK3 GUI'
'perl-json-xs: faster JSON to HASH conversion'
'perl-term-readline-gnu: better STDIN support'
'vlc: play videos with VLC'
'wget: download videos with wget'
'youtube-dl: play videos with encrypted signatures'
)
arch=(any)
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/trizen/youtube-viewer/archive/$pkgver.tar.gz"
"https://github.com/trizen/youtube-viewer/releases/download/$pkgver/youtube-viewer-$pkgver.tar.gz.asc"
)
install=youtube-viewer.install
validpgpkeys=(89CD05032EDAE45FCB946F1FBD8E555F4A7E19D1)
# sums provided by packager makepkg -g
b2sums=('a304bd0905e694f2bdf67607391dd0ec2be823c5bb0c256395fd05e7ef48654da80d4eb0c96a4102d4d1fdb6f0bf1371a8c5c0ebb10b1516025399a453beb1ad'
'SKIP')
build() {
cd "youtube-viewer-$pkgver"
perl Build.PL --installdirs vendor --gtk
}
check() {
cd "youtube-viewer-$pkgver"
./Build test
}
package() {
cd "youtube-viewer-$pkgver"
./Build install --destdir "$pkgdir"
rm -r "$pkgdir/usr/lib"
install -D -m 644 README.md "$pkgdir/usr/share/doc/youtube-viewer/README.md"
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"
}
|