updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / subplay-git / PKGBUILD
blob925372edcfe77c1cb21d61750541d8cc16b843da
1 # Maintainer: Patrick Palka <patrick@parcs.ath.cx>
2 # Development: http://closure.ath.cx/aur-dev
4 pkgname=subplay-git
5 pkgver=20110307
6 pkgrel=1
7 pkgdesc="CLI for YouTube's subscription feature (Git version)"
8 url="http://closure.ath.cx/subplay"
9 arch=('any')
10 license=('WTFPL')
11 depends=('python-beautifulsoup' 'mplayer' 'youtube-dl')
12 makedepends=('git')
13 provides=('subplay')
14 replaces=('subplay')
15 conflicts=('subplay')
17 _gitname="subplay"
18 _gitroot="git://git.lambda.ath.cx/patrick/$_gitname"
20 package() {
21     msg "Connection to $_gitname repository..."
22     if [ -d "$_gitname" ]; then
23         cd "$_gitname" && git pull origin
24         msg "The local files are updated."
25     else
26         git clone "$_gitroot" && cd "$_gitname"
27     fi
29     install -vDm755 "$_gitname" "$pkgdir/usr/bin/$_gitname"