summaryrefslogtreecommitdiff
path: root/pcr/straw-viewer/PKGBUILD
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2020-06-16 00:33:49 -0400
committerDavid P <megver83@parabola.nu>2020-06-16 00:33:49 -0400
commit27fe12c44bc6e7be3dd0dc0063de984aacdc527e (patch)
tree28ed9f772abdc14360d382321e26d2df984f3145 /pcr/straw-viewer/PKGBUILD
parent76741076e79d23bf0e55d03e3d92a16afaad60f6 (diff)
downloadabslibre-27fe12c44bc6e7be3dd0dc0063de984aacdc527e.tar.gz
abslibre-27fe12c44bc6e7be3dd0dc0063de984aacdc527e.tar.bz2
abslibre-27fe12c44bc6e7be3dd0dc0063de984aacdc527e.zip
addpkg: pcr/straw-viewer 0.0.5-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'pcr/straw-viewer/PKGBUILD')
-rw-r--r--pcr/straw-viewer/PKGBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/pcr/straw-viewer/PKGBUILD b/pcr/straw-viewer/PKGBUILD
new file mode 100644
index 000000000..045a5fede
--- /dev/null
+++ b/pcr/straw-viewer/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer (AUR): Trizen <trizen@protonmail.com>
+# Maintainer: David P. <megver83@parabola.nu>
+
+pkgname=straw-viewer
+pkgver=0.0.5
+pkgrel=1
+pkgdesc='Application for searching and streaming videos from YouTube, using the API of invidio.us (fork of youtube-viewer)'
+arch=('any')
+url='https://github.com/trizen/straw-viewer'
+license=('Artistic2.0')
+depends=('perl' 'perl-data-dump' 'perl-json' 'perl-lwp-protocol-https' 'perl-gtk3' 'perl-libwww' 'perl-file-sharedir')
+makedepends=('git' 'perl-module-build')
+optdepends=(
+ 'ffmpeg: conversions and MKV merging'
+ 'gnome-icon-theme: icons in menus'
+ 'perl-json-xs: faster JSON parsing'
+ 'perl-lwp-useragent-cached: local cache support'
+ 'perl-term-readline-gnu: better STDIN support'
+ 'perl-unicode-linebreak: print results in a fixed-width format (-W)'
+ 'mpv: play videos with MPV (recommended)'
+ 'mplayer: play videos with MPlayer'
+ 'vlc: play videos with VLC'
+ 'wget: download videos with wget'
+ 'youtube-dl: play videos with encrypted signatures'
+)
+source=("git+$url.git?signed")
+sha256sums=('SKIP')
+validpgpkeys=(ABB8BBAA2E279767774149B7D0A443C703A3A056) # Daniel Șuteu
+
+pkgver() {
+ cd "$pkgname"
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+build() {
+ cd "$pkgname"
+ /usr/bin/perl Build.PL --gtk3
+}
+
+check(){
+ cd "$pkgname"
+ ./Build test
+}
+
+package() {
+ cd "$pkgname"
+ ./Build install --destdir "$pkgdir" --installdirs vendor --install_path script=/usr/bin
+ rm -r "$pkgdir/usr/lib"
+
+ mkdir "$pkgdir"/usr/share/{applications,pixmaps}
+ mv "$pkgdir"/usr/share/perl5/vendor_perl/auto/share/dist/WWW-StrawViewer/gtk-straw-viewer.desktop \
+ "$pkgdir"/usr/share/applications/gtk-straw-viewer.desktop
+ cp "$pkgdir"/usr/share/perl5/vendor_perl/auto/share/dist/WWW-StrawViewer/icons/gtk-straw-viewer.png \
+ "$pkgdir"/usr/share/pixmaps/gtk-straw-viewer.png
+}