42 lines
1.5 KiB
Bash
42 lines
1.5 KiB
Bash
# Template file for 'pipe-viewer'
|
|
pkgname=pipe-viewer
|
|
version=0.5.1
|
|
revision=1
|
|
build_style=perl-ModuleBuild
|
|
configure_args="--gtk"
|
|
hostmakedepends="perl-Module-Build"
|
|
depends="perl-Data-Dump perl-JSON perl-LWP-Protocol-https perl-Term-ReadLine-Gnu
|
|
perl-Unicode-LineBreak perl-JSON-XS perl-HTML-Parser yt-dlp"
|
|
checkdepends="perl-Test-Pod perl-JSON"
|
|
short_desc="Search and play videos from YouTube without an API key"
|
|
maintainer="Roberto Ricci <io@r-ricci.it>"
|
|
license="Artistic-2.0"
|
|
homepage="https://github.com/trizen/pipe-viewer"
|
|
changelog="https://github.com/trizen/pipe-viewer/releases"
|
|
distfiles="https://github.com/trizen/pipe-viewer/archive/${version}.tar.gz"
|
|
checksum=6206f75984b8ddd3cd8a08e21d8b6408f6c6d1bbf31109d65a6342e32d154b6c
|
|
|
|
pipe-viewer-gtk_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} perl-Gtk3 perl-File-ShareDir"
|
|
short_desc+=" - GTK interface"
|
|
pkg_install() {
|
|
vmove usr/bin/gtk-pipe-viewer
|
|
vmove "usr/share/perl5/vendor_perl/auto/share/dist/WWW-PipeViewer/gtk-*"
|
|
vmove usr/share/perl5/vendor_perl/auto/share/dist/WWW-PipeViewer/icons
|
|
}
|
|
}
|
|
|
|
straw-viewer_package() {
|
|
build_style=meta
|
|
depends="pipe-viewer>=${version}_${revision}"
|
|
short_desc="Search and stream from YouTube using the API of invidio.us"
|
|
short_desc+=" (transitional dummy package)"
|
|
}
|
|
|
|
gtk-straw-viewer_package() {
|
|
build_style=meta
|
|
depends="pipe-viewer-gtk>=${version}_${revision}"
|
|
short_desc="Gtk interface to search and stream YouTube using the API of invidio.us"
|
|
short_desc+=" (transitional dummy package)"
|
|
}
|