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
# Maintainer: Trizen <echo dHJpemVueEBnbWFpbC5jb20K | base64 -d>

_pkgname=youtube-viewer
pkgname=gtk-youtube-viewer
pkgver=3.0.7.10.gc18cfde
pkgrel=1
pkgdesc="A Gtk2 application for viewing youtube-videos in MPlayer."
arch=('any')
url="https://github.com/trizen/youtube-viewer"
license=('GPLv3')
makedepends=('git')

provides=('youtube-viewer')
conflicts=('youtube-viewer')

depends=('gtk2-perl' 'perl>=5.10.0' 'mplayer' 'perl-data-dump' 'perl-libwww')
optdepends=('perl-xml-fast: faster XML to HASH conversion'
            'perl-term-readkey: to get the terminal width size'
            'perl-term-readline-gnu: for a better STDIN support'
            'perl-lwp-protocol-https: for login and https support'
            'gcap: for retrieving Youtube closed captions. [in AUR]')
source=('git://github.com/trizen/youtube-viewer.git')
md5sums=('SKIP')


pkgver() {
	cd $_pkgname
	git describe --always | sed -e 's|-|.|g'
}

package() {
    cd "$_pkgname/WWW-YoutubeViewer"
    perl Build.PL --destdir "$pkgdir" --gtk-youtube-viewer
    ./Build
    ./Build test
    ./Build install --install_path script=/usr/bin
}