makedeb
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-git.
Hash: ed98a72c6c6af384cc96f18ccddfaeac6634f503
Message: update pkgver
diff --git a/.SRCINFO b/.SRCINFO
index c695fa3..2dd2783 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ pkgname = lbry-viewer-git
pkgbase = lbry-viewer-git
pkgdesc = A lightweight LBRY/Odysee client for Linux (CLI/GTK) (fork of pipe-viewer)
pkgrel = 1
-pkgver = 0.0.9.r6.g925c009
+pkgver = 0.0.9.r61.925c009
url = https://github.com/trizen/lbry-viewer
arch = all
checkdepends = libjson-perl
diff --git a/PKGBUILD b/PKGBUILD
index a9387cb..89b678c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=lbry-viewer
pkgname=lbry-viewer-git
-pkgver=0.0.9.r6.g925c009
+pkgver=0.0.9.r61.925c009
pkgrel=1
pkgdesc="A lightweight LBRY/Odysee client for Linux (CLI/GTK) (fork of pipe-viewer)"
arch=('all')
@@ -15,7 +15,6 @@ 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'
@@ -26,13 +25,13 @@ optdepends=(
'mpv: play videos with MPV (recommended)'
'vlc: play videos with VLC'
)
-
source=("git+https://github.com/trizen/${_pkgname}.git")
sha512sums=('SKIP')
pkgver() {
- cd "$_pkgname"
- git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ cd "$srcdir/${_pkgname}"
+ #git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ printf "%s.r%s.%s" "$(grep VERSION lib/WWW/LbryViewer.pm | cut -d \' -f 2)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
@@ -48,14 +47,17 @@ check(){
package() {
cd "$_pkgname"
perl Build install --destdir "$pkgdir" --installdirs vendor --install_path script=/usr/bin
+ # adjustment
rm -r "$pkgdir/usr/lib"
-
+ # desktop file and image
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
- install -Dm644 "$pkgdir"/usr/share/perl5/auto/share/dist/WWW-LbryViewer/icons/gtk-lbry-viewer.png \
- "$pkgdir"/usr/share/pixmaps/gtk-lbry-viewer.png
-
+ ln -s "/usr/share/perl5/auto/share/dist/WWW-LbryViewer/icons/gtk-lbry-viewer.png" \
+ "$pkgdir/usr/share/pixmaps/gtk-lbry-viewer.png"
+ # Convenience symlink
+ ln -s "/usr/bin/gtk-${_pkgname}" "$pkgdir/usr/bin/${_pkgname}-gtk"
+ # doc
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"