[arch-commits] Commit in youtube-viewer/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Mon Apr 17 15:55:54 UTC 2017


    Date: Monday, April 17, 2017 @ 15:55:53
  Author: arojas
Revision: 223502

Fix GTK GUI (FS#53681)

Modified:
  youtube-viewer/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-04-17 15:40:00 UTC (rev 223501)
+++ PKGBUILD	2017-04-17 15:55:53 UTC (rev 223502)
@@ -6,7 +6,7 @@
 pkgname=youtube-viewer
 epoch=1
 pkgver=3.2.6
-pkgrel=1
+pkgrel=2
 pkgdesc='Command line utility for viewing YouTube videos'
 arch=('any')
 url='https://github.com/trizen/youtube-viewer'
@@ -14,9 +14,9 @@
 source=("https://github.com/trizen/$pkgname/archive/$pkgver.tar.gz")
 sha256sums=('a4dbf547e29c7ee7ca7d5a3a7c844ef86d950fc113606a56482bdbb05247852a')
 depends=('perl>=5.16.0' 'perl-data-dump' 'perl-json' 'perl-lwp-protocol-https' 'perl-libwww')
+makedepends=('perl-module-build')
 optdepends=(
   'perl-json-xs: faster JSON to HASH conversion'
-  'perl-lwp-useragent-cached: cache support'
   'perl-text-charwidth: to print the results in a fixed-width format (-W)'
   'perl-term-readline-gnu: for better STDIN support'
   'youtube-dl: for playing videos with encrypted signatures'
@@ -24,21 +24,23 @@
   'mplayer: for playing the videos with MPlayer'
   'vlc: for playing the videos with VLC'
   'mpv: for playing the videos with MPV (recommended)'
+  'gtk2-perl: for the GTK GUI'
+  'perl-file-sharedir: for the GTK GUI'
 )
 
 build() {
   cd "$pkgname-$pkgver"
 
-  perl Makefile.PL INSTALLDIRS=vendor
+  perl Build.PL INSTALLDIRS=vendor --gtk
 }
 
 check(){
-  make -C "$pkgname-$pkgver" test
+  cd $pkgname-$pkgver
+  ./Build test
 }
 
 package() {
-  make -C "$pkgname-$pkgver" install DESTDIR="$pkgdir"
-  rm -r "$pkgdir/usr/lib"
+  cd $pkgname-$pkgver
+  ./Build install --destdir "$pkgdir"
+  rm -r "$pkgdir"/usr/lib
 }
-
-# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list