updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / apvlv-svn / PKGBUILD
blob04adb4504e880d93dd7d491209234a1d7f029e9b
1 # Contributor: Andrwe Lord Weber <lord-weber-andrwe at renona-studios.org>
3 pkgname=apvlv-svn
4 pkgver=320
5 pkgrel=1
6 pkgdesc="A pdf viewer which behaves like Vim."
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/apvlv/"
9 license=('GPL')
10 depends=('poppler-glib')
11 makedepends=('subversion')
12 conflicts=('apvlv')
13 source=()
14 md5sums=()
16 _svntrunk="http://apvlv.googlecode.com/svn/trunk/"
17 _svnmod="apvlv-read-only"
19 build() {
20   cd "${srcdir}"
22         if [ -d "${_svnmod}"/.svn ]
23         then
24                 msg "Starting SVN update ..."
25                 cd "${_svnmod}"
26                 svn up
27                 msg "... updating finished."
28         else
29                 msg "Starting SVN checkout ..."
30           svn co ${_svntrunk} --config-dir ./ ${_svnmod}
31                 msg "... checkout finished."
32         fi
34         if [ -d "${srcdir}/${_svnmod}-build" ]
35         then
36                 rm -rf "${srcdir}/${_svnmod}-build"
37         fi
39   cp -r "${srcdir}/${_svnmod}" "${srcdir}/${_svnmod}-build"
40   cd "${srcdir}/${_svnmod}-build"
42   msg "Starting make..."
44   sh ./autogen.sh --prefix=/usr --disable-debugger --enable-libao
45         ./configure --prefix "/usr/"
46   make || return 1
47   make DESTDIR="${pkgdir}/" install