updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / ncmpy-git / PKGBUILD
blob51565e2d2b613af1484c0d066ae7edf461a184ad
1 # Contributor: Cyker Way <cykerway at gmail dot com>
3 pkgname=(ncmpy-git)
4 pkgver=20110908
5 pkgrel=1
6 pkgdesc="A [Python + Curses]-based MPD client."
7 arch=(any)
8 url="http://ncmpy.cykerway.com/"
9 license=(GPL3)
10 depends=('python2' 'python2-httplib2' 'python-mpd' 'python-lxml' 'pyosd')
11 makedepends=('git')
12 provides=('ncmpy')
13 conflicts=('ncmpy')
14 source=()
15 noextract=()
17 _gitroot="git://github.com/cykerway/ncmpy.git"
18 _gitname="master"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [[ -d "$_gitname" ]]; then
25     cd "$_gitname" && git pull origin
26     msg "The local files are updated."
27   else
28     git clone "$_gitroot" "$_gitname"
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting build..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   #
39   # BUILD HERE
40   #
41   # Nothing to be done.
44 package() {
45   cd "$srcdir/$_gitname-build"
46   python2 setup.py install --root="$pkgdir/" --optimize=1
49 # vim:set ts=2 sw=2 et: