updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / vimpc-svn / PKGBUILD
blobfff4b864f753ff1685bfb2e1baf663fce7b80276
1 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
2 # for more information on packaging from SVN sources.
4 # Maintainer: Nathan Sweetman <nathan.sweetman@gmail.com>
5 pkgname=vimpc-svn
6 pkgver=214
7 pkgrel=1
8 pkgdesc="ncurses based MPD client with vi-like key bindings"
9 arch=('i686' 'x86_64')
10 url="https://sourceforge.net/projects/vimpc/"
11 license=('GPL3')
12 groups=()
13 depends=('libmpdclient' 'ncurses' 'pcre')
14 makedepends=('subversion')
15 provides=()
16 conflicts=('vimpc')
17 replaces=()
18 backup=()
19 options=()
20 install=
21 source=()
22 noextract=()
23 md5sums=()
25 _svntrunk=http://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk
26 _svnmod=vimpc
28 build() {
29   cd "$srcdir"
31   if [ -d $_svnmod/.svn ]; then
32     (cd $_svnmod && svn up -r $pkgver)
33   else
34     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
35   fi
37   msg "SVN checkout done or server timeout"
38   msg "Starting make..."
40   rm -rf "$srcdir/$_svnmod-build"
41   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
42   cd "$srcdir/$_svnmod-build"
44   #
45   # BUILD
46   #
47   ./autogen.sh
48   ./configure --prefix=/usr
49   make
52 package() {
53   cd "$srcdir/$_svnmod-build"
54   make DESTDIR="$pkgdir/" install