From ebc82b27288df5c58194083ead4a6e6de7f52d21 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 23 Oct 2011 22:01:53 +0200 Subject: mass update (again :( ) Signed-off-by: Florian Pritz --- youtube-viewer/PKGBUILD | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) (limited to 'youtube-viewer') diff --git a/youtube-viewer/PKGBUILD b/youtube-viewer/PKGBUILD index 26c8366..4c386c8 100644 --- a/youtube-viewer/PKGBUILD +++ b/youtube-viewer/PKGBUILD @@ -1,16 +1,31 @@ -# Maintainer: Trizen +# Maintainer: Trizen pkgname=youtube-viewer -pkgver=2.4.4 -pkgrel=2 -pkgdesc="Search and play YouTube videos streaming in MPlayer with HD support." +pkgver=20111011 +pkgrel=1 +pkgdesc="Youtube Viewer: Search and play YouTube videos with MPlayer." arch=('any') -url="http://trizen.go.ro/" +url="https://github.com/trizen/$pkgname" license=('GPL') +makedepends=('git') depends=('mplayer' 'perl-libwww') -source=(http://trizen.go.ro/files/$pkgname) -md5sums=('ed52be72c17679dea55d7df816e65ed1') +optdepends=("gcap: for retrieving Youtube closed captions. [in AUR]") +_gitroot="git://github.com/trizen/$pkgname.git" +_gitname="$pkgname" build() { - install -Dm 755 $srcdir/$pkgname $pkgdir/usr/bin/$pkgname + msg "Connecting to github GIT server..." + + if [ -d $pkgname ]; then + cd $pkgname && git pull origin + else + git clone $_gitroot + + cd $pkgname + fi +} + +package() { + cd $pkgname + install -m 755 -D $pkgname "$pkgdir/usr/bin/$pkgname" } -- cgit v1.2.3-24-g4f1b