updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / libvmath-svn / PKGBUILD
blob079399dd203c49e4f59ab6816472305d32b7aba3
1 #Maintainer: kfgz <kfgz at interia pl>
3 pkgname=libvmath-svn
4 pkgver=55
5 pkgrel=1
6 pkgdesc="Math library for 3D graphics"
7 url="http://gfxtools.sourceforge.net/"
8 license=('GPL2')
9 arch=(i686 x86_64)
10 provides=(libvmath)
11 conflicts=(libvmath)
13 _svntrunk="http://gfxtools.svn.sourceforge.net/svnroot/gfxtools/libvmath"
14 _svnmod="libvmath"
16 build() {
17   if [ -d ${_svnmod}/.svn ]; then
18      (cd ${_svnmod} && svn up -r ${pkgver})
19    else
20      svn co ${_svntrunk} --config-dir ./ -r 55 ${_svnmod}
21   fi
23   msg "SVN checkout done or server timeout"
24   msg "Starting make..."
26   cd ${srcdir}/libvmath
27   sed -i "s/O3/O2/g" configure
28   ./configure --prefix=/usr
29   make
32 package() {
33   cd ${srcdir}/libvmath
34   install -dm755 ${pkgdir}/usr/{lib,lib/pkgconfig,include/vmath,share/doc/libvmath}
35   install -m644 libvmath.a ${pkgdir}/usr/lib
36   install -m755 libvmath.so ${pkgdir}/usr/lib
37   install -m644 vmath.pc ${pkgdir}/usr/lib/pkgconfig
38   install -m644 README ${pkgdir}/usr/share/doc/libvmath
39   cd src
40   install -m644 *.h *.inl ${pkgdir}/usr/include/vmath