updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / libvisio-git / PKGBUILD
blob67627e26a77abe1e720bdb757a677c7c45ff392e
1 pkgname=libvisio-git
2 pkgver=20111119
3 pkgrel=1
4 pkgdesc="Library for importing Visio(tm) documents"
5 arch=('i686' 'x86_64')
6 url="http://cgit.freedesktop.org/libreoffice/contrib/libvisio"
7 license=('LGPL')
8 provides=('libvisio')
9 conflicts=('libvisio')
10 depends=('libwpd>=0.6.1' 'libwpg>=0.2.0')
11 makedepends=('gcc-libs' 'git' 'libtool')
12 source=()
13 md5sums=()
15 _gitroot="git://anongit.freedesktop.org/libreoffice/contrib/libvisio"
16 _gitname="libvisio"
18 build() {
19   cd $startdir/src
20   msg "Connecting to git.sourceforge.net GIT server...."
21   if [ -d $startdir/src/$_gitname ] ; then
22   cd $_gitname && git pull origin
23   msg "The local files are updated."
24   else
25   git clone $_gitroot
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
30   cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
31   cd $startdir/src/$_gitname-build
32   ./autogen.sh
33   ./configure --without-docs --enable-static=no --prefix=/usr
34   make || return 1
37 package() {
38   cd $startdir/src/$_gitname-build
39   make DESTDIR=$startdir/pkg install
40   find $startdir/pkg -type f -name '*.la' -exec rm {} \;