makedeb


lbry-viewer 0.1.0-1


A lightweight LBRY/Odysee client for Linux (CLI/GTK) (fork of pipe-viewer)

Click here to go back to the commit logs for lbry-viewer.

Commit:


Hash: a2bc74eaec00ae54ca141975a698d01922cff707

Message: Initial mpr release

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 81044d7..37e6062 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,30 +1,42 @@
-pkgbase = lbry-viewer-git
-	pkgdesc = A lightweight LBRY/Odysee client for Linux (CLI/GTK) (fork of pipe-viewer)
-	pkgver = 0.0.3.r0.g844293a
-	pkgrel = 1
-	url = https://github.com/trizen/lbry-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
-	depends = perl-unicode-linebreak
-	depends = perl-html-tree
-	depends = webp-pixbuf-loader
-	depends = yt-dlp
-	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 = mpv: play videos with MPV (recommended)
-	optdepends = vlc: play videos with VLC
-	source = git+https://github.com/trizen/lbry-viewer.git
-	sha512sums = SKIP
-
+generated-by = makedeb
 pkgname = lbry-viewer-git
+pkgbase = lbry-viewer-git
+pkgdesc = A lightweight LBRY/Odysee client for Linux (CLI/GTK) (fork of pipe-viewer)
+pkgrel = 0
+pkgver = 0.0.4.r0.g6db5fa2
+url = https://github.com/trizen/lbry-viewer
+arch = all
+conflicts = lbry-viewer
+conflicts = gtk-lbry-viewer
+depends = perl
+depends = libdata-dump-perl
+depends = libjson-perl
+depends = liblwp-protocol-https-perl
+depends = libgtk3-perl
+depends = libwww-perl
+depends = libfile-sharedir-perl
+depends = libunicode-linebreak-perl
+depends = webp-pixbuf-loader
+depends = yt-dlp
+license = Artistic2.0
+makedepends = git
+makedepends = libmodule-build-perl
+optdepends = gnome-icon-theme: icons in menus
+optdepends = libjson-xs-perl: faster JSON parsing
+optdepends = liblwp-useragent-cached-perl: local cache support
+optdepends = libterm-readline-gnu-perl: better STDIN support
+optdepends = libtext-charwidth-perl: get widths of characters
+optdepends = mpv: play videos with MPV (recommended)
+optdepends = vlc: play videos with VLC
+provides = gtk-lbry-viewer-git
+source = git+https://github.com/trizen/lbry-viewer.git
+sha512sums = SKIP
+makedepends = git
+makedepends = libmodule-build-perl
+optdepends = gnome-icon-theme: icons in menus
+optdepends = libjson-xs-perl: faster JSON parsing
+optdepends = liblwp-useragent-cached-perl: local cache support
+optdepends = libterm-readline-gnu-perl: better STDIN support
+optdepends = libtext-charwidth-perl: get widths of characters
+optdepends = mpv: play videos with MPV (recommended)
+optdepends = vlc: play videos with VLC
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a080a88
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg
+src
+lbry-viewer*
diff --git a/PKGBUILD b/PKGBUILD
index 512b8a8..ae826fa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,27 @@
-# Maintainer: Trizen <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: Trizen (AUR) <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>
 
 _pkgname=lbry-viewer
 pkgname=lbry-viewer-git
-pkgver=0.0.3.r0.g844293a
-pkgrel=1
+pkgver=0.0.4.r0.g6db5fa2
+pkgrel=0
 pkgdesc="A lightweight LBRY/Odysee client for Linux (CLI/GTK) (fork of pipe-viewer)"
-arch=('any')
+arch=('all')
 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' 'perl-unicode-linebreak' 'perl-html-tree' 'webp-pixbuf-loader' 'yt-dlp')
+makedepends=('git' 'libmodule-build-perl')
+provides=('gtk-lbry-viewer-git')
+conflicts=('lbry-viewer' 'gtk-lbry-viewer')
+depends=('perl' 'libdata-dump-perl' 'libjson-perl' 'liblwp-protocol-https-perl' 'libgtk3-perl' 
+'libwww-perl' 'libfile-sharedir-perl' 'libunicode-linebreak-perl' 'webp-pixbuf-loader' 'yt-dlp')
 
 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'
+    'libjson-xs-perl: faster JSON parsing'
+    'liblwp-useragent-cached-perl: local cache support'
+    'libterm-readline-gnu-perl: better STDIN support'
+    'libtext-charwidth-perl: get widths of characters'
     'mpv: play videos with MPV (recommended)'
     'vlc: play videos with VLC'
 )
@@ -35,22 +36,28 @@ pkgver() {
 
 build() {
     cd "$_pkgname"
-    /usr/bin/perl Build.PL --gtk3
+    perl Build.PL --gtk3
 }
 
 check(){
     cd "$_pkgname"
-    ./Build test
+    perl Build test
 }
 
 package() {
     cd "$_pkgname"
-    ./Build install --destdir "$pkgdir" --installdirs vendor --install_path script=/usr/bin
+    perl 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-LbryViewer/gtk-lbry-viewer.desktop \
+    install -m644 -d "$pkgdir"/usr/share/{applications,pixmaps}
+    mv "$pkgdir"/usr/share/perl5/auto/share/dist/WWW-LbryViewer/gtk-lbry-viewer.desktop \
         "$pkgdir"/usr/share/applications/gtk-lbry-viewer.desktop
-    cp "$pkgdir"/usr/share/perl5/vendor_perl/auto/share/dist/WWW-LbryViewer/icons/gtk-lbry-viewer.png \
+    install -Dm644 "$pkgdir"/usr/share/perl5/auto/share/dist/WWW-LbryViewer/icons/gtk-lbry-viewer.png \
         "$pkgdir"/usr/share/pixmaps/gtk-lbry-viewer.png
+
+    install -m644 -d "usr/share/doc/$_pkgname"
+    install -Dm644 "LICENSE" "$pkgdir/usr/share/doc/$_pkgname/license"
+    install -Dm644 "README.md" "$pkgdir/usr/share/doc/$_pkgname/readme"
+    install -Dm644 "Changes" "$pkgdir/usr/share/doc/$_pkgname/changelog"
+    gzip "$pkgdir/usr/share/doc/$_pkgname/changelog"
 }