From 180a4f4fbd217d3c1c4cc7687342dde08a51b917 Mon Sep 17 00:00:00 2001 From: Jesús Eduardo Date: Fri, 15 Sep 2017 01:33:38 +0000 Subject: Add new package: gtk-youtube-viewer --- pcr/gtk-youtube-viewer/PKGBUILD | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pcr/gtk-youtube-viewer/PKGBUILD diff --git a/pcr/gtk-youtube-viewer/PKGBUILD b/pcr/gtk-youtube-viewer/PKGBUILD new file mode 100644 index 000000000..d7797e52a --- /dev/null +++ b/pcr/gtk-youtube-viewer/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: + +_pkgname=youtube-viewer +pkgname=gtk-youtube-viewer +pkgver=3.2.9 +pkgrel=1.parabola1 +pkgdesc="A Gtk2 application for searching and streaming videos from YouTube." +arch=('any') +url="https://github.com/trizen/youtube-viewer" +license=('Artistic2.0') +makedepends=('perl-module-build') +provides=('youtube-viewer') +conflicts=('youtube-viewer') +depends=('perl>=5.16.0' 'perl-data-dump' 'perl-json' 'perl-lwp-protocol-https' 'perl-libwww' 'gtk2-perl' 'perl-file-sharedir') +optdepends=( + 'youtube-dl: for playing videos with encrypted signatures' + 'gnome-icon-theme: for icons in menus' + 'mplayer: for playing videos with MPlayer' + 'mpv: for playing videos with MPV (recommended)' + 'perl-json-xs: faster JSON to HASH conversion' + 'perl-lwp-useragent-cached: cache support' + 'perl-term-readline-gnu: for better STDIN support' + 'perl-unicode-linebreak: for printing results in a fixed-width format (-W)' + 'smplayer: for playing videos with SMPlayer' + 'vlc: for playing videos with VLC' + 'wget: for downloading videos with wget' +) +source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/trizen/$_pkgname/archive/$pkgver.tar.gz") +sha512sums=('1431e9bf90c9a7cfe77f88b27582eebe7a9cf5d1ef213ac33cd3f9b6746c4d5476a1bc435d81b0eda82d2db85811fe0e0722ed0b63e38bb8cd2270eef40988ab') + +build() { + cd "$_pkgname-$pkgver" + perl Build.PL --destdir "$pkgdir" --installdirs vendor --gtk +} + +check(){ + cd "$_pkgname-$pkgver" + ./Build test +} + +package() { + cd "$_pkgname-$pkgver" + ./Build install --install_path script=/usr/bin + rm -r "$pkgdir"/usr/lib + + install -Dm 644 "share/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" + install -Dm 644 "share/icons/$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" +} -- cgit v1.2.3