summaryrefslogtreecommitdiffstats
path: root/youtube-viewer/PKGBUILD
blob: 4c386c8b1b1f375cb389bc970c50dfbab4a9f85d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Trizen <echo dHJpemVueEBnbWFpbC5jb20K | base64 -d>

pkgname=youtube-viewer
pkgver=20111011
pkgrel=1
pkgdesc="Youtube Viewer: Search and play YouTube videos with MPlayer."
arch=('any')
url="https://github.com/trizen/$pkgname"
license=('GPL')
makedepends=('git')
depends=('mplayer' 'perl-libwww')
optdepends=("gcap: for retrieving Youtube closed captions. [in AUR]")
_gitroot="git://github.com/trizen/$pkgname.git"
_gitname="$pkgname"

build() {
    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"
}