summaryrefslogtreecommitdiffstats
path: root/youtube-viewer/PKGBUILD
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-10-23 22:01:53 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-10-23 22:02:18 +0200
commitebc82b27288df5c58194083ead4a6e6de7f52d21 (patch)
tree30d4e874cc19a03dfc62a0ee7c6c5e6c9756d4ec /youtube-viewer/PKGBUILD
parent44c6e7dfa4967843b05ee961fd243f655ed31717 (diff)
downloadaur-packages-ebc82b27288df5c58194083ead4a6e6de7f52d21.tar.gz
aur-packages-ebc82b27288df5c58194083ead4a6e6de7f52d21.tar.xz
mass update (again :( )
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'youtube-viewer/PKGBUILD')
-rw-r--r--youtube-viewer/PKGBUILD31
1 files changed, 23 insertions, 8 deletions
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 <trizenx at gmail dot com>
+# Maintainer: Trizen <echo dHJpemVueEBnbWFpbC5jb20K | base64 -d>
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"
}