updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / quad-ren-svn / PKGBUILD
blob415ad1f3fdffac33d8e7e71928fd7d9a266090f4
1 # Contributor: zoulnix <http://goo.gl/HQaP>
2 pkgname=quad-ren-svn
3 pkgver=403
4 pkgrel=1
5 pkgdesc="Resolution independent 2D graphics engine."
6 arch=('i686' 'x86_64')
7 url="http://quad-ren.sourceforge.net/"
8 license=('LGPL')
9 depends=('libpng' 'mesa' 'sdl')
10 makedepends=('autoconf' 'automake' 'gcc' 'libtool' 'make' 'pkg-config' 'subversion')
11 options=('!libtool')
12 provides=('quad-ren')
13 conflicts=('quad-ren')
14 source=()
15 md5sums=('')
17 _svnmod="quad-ren"
18 _svntrunk="https://quad-ren.svn.sourceforge.net/svnroot/quad-ren/trunk"
20 build() {
21   cd ${srcdir}
23   #####
24   msg "Getting sources..."
25   if [ -d ${_svnmod}/.svn ]; then
26     cd ${_svnmod} && svn up -r ${pkgver}
27   else
28     svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
29     cd ${_svnmod}
30   fi
32   msg "SVN checkout done or server timeout"
33   msg "Starting make..."
34   #####
36   # Generating build system
37   ./setup.sh || return 1
39   ./configure --prefix=/usr \
40               --sysconfdir=/etc \
41               --localstatedir=/var \
42               --disable-static
44   make || return 1
45   make DESTDIR=${pkgdir} install || return 1