makedeb
A lightweight YouTube client for Linux (CLI/GTK) (fork of straw-viewer)
Click here to go back to the commit logs for pipe-viewer-git.
Hash: 1205b13a6cf21cf449cfef1c5ff684584679f50a
Message: update pkgver
diff --git a/.SRCINFO b/.SRCINFO
index 4c73658..b1662d2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ pkgname = pipe-viewer-git
pkgbase = pipe-viewer-git
pkgdesc = A lightweight YouTube client for Linux (CLI/GTK) (fork of straw-viewer)
pkgrel = 1
-pkgver = 0.4.9.r0.gdea999e
+pkgver = 0.5.0.r1.f7da844
url = https://github.com/trizen/pipe-viewer
arch = all
checkdepends = libjson-perl
diff --git a/PKGBUILD b/PKGBUILD
index 12c6874..16b2f3a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=pipe-viewer
pkgname=pipe-viewer-git
-pkgver=0.4.9.r0.gdea999e
+pkgver=0.5.0.r1.f7da844
pkgrel=1
pkgdesc="A lightweight YouTube client for Linux (CLI/GTK) (fork of straw-viewer)"
arch=('all')
@@ -14,7 +14,6 @@ checkdepends=('libjson-perl')
provides=('gtk-pipe-viewer-git')
conflicts=('pipe-viewer' 'gtk-pipe-viewer')
depends=('perl' 'libdata-dump-perl' 'libjson-perl' 'liblwp-protocol-https-perl' 'libgtk3-perl' 'libwww-perl' 'libfile-sharedir-perl' 'libunicode-linebreak-perl')
-
optdepends=(
'ffmpeg: conversions and MKV merging'
'gnome-icon-theme: icons in menus'
@@ -28,13 +27,13 @@ optdepends=(
'yt-dlp: play videos with encrypted signatures'
'webp-pixbuf-loader: load webp images'
)
-
source=("git+https://github.com/trizen/${_pkgname}.git")
sha512sums=('SKIP')
pkgver() {
- cd "$_pkgname"
- git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ cd "$srcdir/${_pkgname}"
+ #git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ printf "%s.r%s.%s" "$(grep VERSION lib/WWW/PipeViewer.pm | cut -d \' -f 2)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
@@ -50,14 +49,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-PipeViewer/gtk-pipe-viewer.desktop \
"$pkgdir"/usr/share/applications/gtk-pipe-viewer.desktop
- install -Dm644 "$pkgdir"/usr/share/perl5/auto/share/dist/WWW-PipeViewer/icons/gtk-pipe-viewer.png \
- "$pkgdir"/usr/share/pixmaps/gtk-pipe-viewer.png
-
+ ln -s "/usr/share/perl5/auto/share/dist/WWW-PipeViewer/icons/gtk-pipe-viewer.png" \
+ "$pkgdir/usr/share/pixmaps/gtk-pipe-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"