Created
June 12, 2014 17:06
-
-
Save w0ng/0e110a900de7e6223bd4 to your computer and use it in GitHub Desktop.
PKGBUILD for youtube-viewer 3.1.1, works with perl 5.20 update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#$Id: PKGBUILD 110666 2014-05-04 21:54:46Z dwallace $ | |
# Maintainer: Daniel Wallace < danielwallace at gtmanfred dot com> | |
# Contributor: Trizen <echo dHJpemVueEBnbWFpbC5jb20K | base64 -d> | |
pkgname=youtube-viewer | |
_pkgdir=trizen-youtube-viewer | |
epoch=1 | |
pkgver=3.1.1 | |
pkgrel=1 | |
pkgdesc="A command line utility for viewing youtube-videos in MPlayer." | |
arch=('any') | |
url="https://github.com/trizen/youtube-viewer" | |
license=('GPL3') | |
source=("$pkgname-$pkgver.zip::https://github.com/trizen/$pkgname/zipball/$pkgver") | |
sha256sums=('4f0a0a5053ef50f095bf41cf044a8aecfc7ff64488ec8c8259861b622adf3906') | |
depends=('perl>=5.10.0' 'perl-data-dump' 'perl-libwww' 'perl-xml-fast') | |
optdepends=('vlc: for playing videos' | |
'mplayer: for playing videos' | |
'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]') | |
build() { | |
cd "$srcdir/$_pkgdir"*/WWW-YoutubeViewer | |
perl Build.PL # --gtk-youtube-viewer | |
} | |
check(){ | |
cd "$srcdir/$_pkgdir"*/WWW-YoutubeViewer | |
./Build test | |
} | |
package() { | |
cd "$srcdir/$_pkgdir"*/WWW-YoutubeViewer | |
./Build install --install_path script=/usr/bin --destdir=$pkgdir | |
rm -r "$pkgdir/usr/lib/" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment