makedeb
A lightweight YouTube client for Linux (CLI/GTK)
Click here to go back to the commit logs for youtube-viewer.
Hash: bdcd30d409b843944a8e87a5f7525fb4e48d75b4
Message: Initial stable release 3.10.2
diff --git a/.SRCINFO b/.SRCINFO
index e520abe..38bad0b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,11 @@
generated-by = makedeb
-pkgname = youtube-viewer-git
-pkgbase = youtube-viewer-git
+pkgname = youtube-viewer
+pkgbase = youtube-viewer
pkgdesc = A lightweight YouTube client for Linux (CLI/GTK)
-pkgrel = 1
-pkgver = 3.10.2.r0.g2f28244
+pkgrel = 0
+pkgver = 3.10.2
url = https://github.com/trizen/youtube-viewer
arch = all
-conflicts = youtube-viewer
-conflicts = gtk-youtube-viewer
depends = perl
depends = libdata-dump-perl
depends = libjson-perl
@@ -17,7 +15,6 @@ depends = libwww-perl
depends = libfile-sharedir-perl
depends = libunicode-linebreak-perl
license = Artistic2.0
-makedepends = git
makedepends = libmodule-build-perl
optdepends = ffmpeg: conversions and MKV merging
optdepends = gnome-icon-theme: icons in menus
@@ -32,10 +29,8 @@ optdepends = wget: download videos with wget
optdepends = youtube-dl: play videos with encrypted signatures
optdepends = yt-dlp: play videos with encrypted signatures
optdepends = webp-pixbuf-loader: load webp images
-provides = gtk-youtube-viewer-git
-source = git+https://github.com/trizen/youtube-viewer.git
-sha512sums = SKIP
-makedepends = git
+source = youtube-viewer-3.10.2.tar.gz::https://github.com/trizen/youtube-viewer/archive/refs/tags/3.10.2.tar.gz
+b2sums = 5a0728350ffb337bd4757932d96d7e857d209b039b8e524220b5c88470e099f32a7d56054357f658f155fff0549a93454b58a4bfb70b157d9af6155b9a5bda95
makedepends = libmodule-build-perl
optdepends = ffmpeg: conversions and MKV merging
optdepends = gnome-icon-theme: icons in menus
diff --git a/PKGBUILD b/PKGBUILD
index 3ce9e6c..5a40888 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,14 @@
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
# Contributor: Trizen (AUR) <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>
-_pkgname=youtube-viewer
-pkgname=youtube-viewer-git
-pkgver=3.10.2.r0.g2f28244
-pkgrel=1
+pkgname=youtube-viewer
+pkgver=3.10.2
+pkgrel=0
pkgdesc="A lightweight YouTube client for Linux (CLI/GTK)"
arch=('all')
-url="https://github.com/trizen/${_pkgname}"
+url="https://github.com/trizen/${pkgname}"
license=('Artistic2.0')
-makedepends=('git' 'libmodule-build-perl')
-provides=('gtk-youtube-viewer-git')
-conflicts=('youtube-viewer' 'gtk-youtube-viewer')
+makedepends=('libmodule-build-perl')
depends=('perl' 'libdata-dump-perl' 'libjson-perl' 'liblwp-protocol-https-perl' 'libgtk3-perl' 'libwww-perl' 'libfile-sharedir-perl' 'libunicode-linebreak-perl')
optdepends=(
@@ -30,26 +27,21 @@ optdepends=(
'webp-pixbuf-loader: load webp images'
)
-source=("git+https://github.com/trizen/${_pkgname}.git")
-sha512sums=('SKIP')
-
-pkgver() {
- cd "$_pkgname"
- git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
-}
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/trizen/youtube-viewer/archive/refs/tags/${pkgver}.tar.gz")
+b2sums=('5a0728350ffb337bd4757932d96d7e857d209b039b8e524220b5c88470e099f32a7d56054357f658f155fff0549a93454b58a4bfb70b157d9af6155b9a5bda95')
build() {
- cd "$_pkgname"
+ cd "$pkgname-${pkgver}"
perl Build.PL --gtk3
}
check(){
- cd "$_pkgname"
+ cd "$pkgname-${pkgver}"
perl Build test
}
package() {
- cd "$_pkgname"
+ cd "$pkgname-${pkgver}"
perl Build install --destdir "$pkgdir" --installdirs vendor --install_path script=/usr/bin
rm -r "$pkgdir/usr/lib"
@@ -59,8 +51,8 @@ package() {
install -Dm644 "$pkgdir"/usr/share/perl5/auto/share/dist/WWW-YoutubeViewer/icons/gtk-youtube-viewer.png \
"$pkgdir"/usr/share/pixmaps/gtk-youtube-viewer.png
- 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"
+ 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"
}