diff options
author | trizen | 2020-02-26 09:27:51 +0200 |
---|---|---|
committer | trizen | 2020-02-26 09:27:51 +0200 |
commit | e637601ed9a916120e225e90337f5023ed52af8b (patch) | |
tree | ccc0dfec6e90cffb4a1a54518aa8d30257648cab | |
download | aur-e637601ed9a916120e225e90337f5023ed52af8b.tar.gz |
Imported PKGBUILD and .SRCINFO.
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | PKGBUILD | 60 |
2 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bcbfcaf15c24 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,32 @@ +pkgbase = straw-viewer-git + pkgdesc = Application for searching and streaming videos from YouTube, using the API of invidio.us (fork of youtube-viewer). + pkgver = 677e336 + pkgrel = 1 + url = https://github.com/trizen/straw-viewer + arch = any + license = Artistic2.0 + makedepends = git + makedepends = perl-module-build + depends = perl + depends = perl-data-dump + depends = perl-json + depends = perl-lwp-protocol-https + depends = perl-gtk3 + depends = perl-libwww + depends = perl-file-sharedir + optdepends = ffmpeg: conversions and MKV merging + optdepends = gnome-icon-theme: icons in menus + optdepends = perl-json-xs: faster JSON parsing + optdepends = perl-lwp-useragent-cached: local cache support + optdepends = perl-term-readline-gnu: better STDIN support + optdepends = perl-unicode-linebreak: print results in a fixed-width format (-W) + optdepends = mpv: play videos with MPV (recommended) + optdepends = mplayer: play videos with MPlayer + optdepends = vlc: play videos with VLC + optdepends = wget: download videos with wget + optdepends = youtube-dl: play videos with encrypted signatures + source = git+https://github.com/trizen/straw-viewer.git + sha256sums = SKIP + +pkgname = straw-viewer-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3d11e5cb8e84 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Trizen <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d> + +_pkgname=straw-viewer +pkgname=straw-viewer-git +pkgver=677e336 +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/${_pkgname}" +license=('Artistic2.0') +makedepends=('git' 'perl-module-build') + +provides=() +conflicts=() + +depends=('perl' 'perl-data-dump' 'perl-json' 'perl-lwp-protocol-https' 'perl-gtk3' 'perl-libwww' 'perl-file-sharedir') + +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+https://github.com/trizen/${_pkgname}.git") +sha256sums=('SKIP') + +pkgver() { + cd "$_pkgname" + git describe --always | sed -e '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 +} |