updated on Mon Jan 16 16:00:41 UTC 2012
[aur-mirror.git] / ftgl-svn / PKGBUILD
blob3679e5ae11851f540b83c8133b3051be081d4790
1 # Contributor: zoulnix <http://goo.gl/HQaP>
2 pkgname=ftgl-svn
3 pkgver=1261
4 pkgrel=1
5 pkgdesc="A font rendering library for OpenGL applications."
6 arch=('i686' 'x86_64')
7 url="http://ftgl.sourceforge.net/"
8 license=('LGPL')
9 depends=('freetype2' 'freeglut' 'ttf-dejavu')
10 makedepends=('autoconf' 'automake' 'doxygen' 'gcc' 'make' 'pkg-config' 'subversion')
11 options=('!libtool')
12 provides=('ftgl')
13 conflicts=('ftgl')
14 source=()
15 md5sums=('')
17 _svnmod="ftgl"
18 _svntrunk="https://ftgl.svn.sourceforge.net/svnroot/ftgl/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   ./autogen.sh || return 1
39   ./configure --prefix=/usr \
40               --sysconfdir=/etc \
41               --localstatedir=/var \
42               --disable-static \
43               --with-pic
45   make || return 1
48 package() {
49   cd ${srcdir}/${_svnmod}
51   make DESTDIR=${pkgdir} install || return 1