summaryrefslogtreecommitdiff
path: root/pcr/gtk-youtube-viewer/PKGBUILD
diff options
context:
space:
mode:
authorJesús Eduardo <heckyel@parabola.nu>2017-09-15 01:33:38 +0000
committerJesús Eduardo <heckyel@parabola.nu>2017-09-15 01:33:38 +0000
commit180a4f4fbd217d3c1c4cc7687342dde08a51b917 (patch)
tree4ce2a9aff7fc293c4217685216bd958c9f7f910f /pcr/gtk-youtube-viewer/PKGBUILD
parent2f23302eee96d7d993bcf71ac3dae3dacd173a76 (diff)
downloadabslibre-180a4f4fbd217d3c1c4cc7687342dde08a51b917.tar.gz
abslibre-180a4f4fbd217d3c1c4cc7687342dde08a51b917.tar.bz2
abslibre-180a4f4fbd217d3c1c4cc7687342dde08a51b917.zip
Add new package: gtk-youtube-viewer
Diffstat (limited to 'pcr/gtk-youtube-viewer/PKGBUILD')
-rw-r--r--pcr/gtk-youtube-viewer/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
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: <heckyel@parabola.nu>
+
+_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"
+}