updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ambulant-cvs / PKGBUILD
blob1cdd6a1d4aa11ec1b8003a9d093d9f88bc84fffc
1 # Contributor:Xemertix <arch88(at)katamail(dot)com>
3 pkgname=ambulant-cvs
4 pkgver=20100420
5 pkgrel=1
6 pkgdesc="A program to play SMIL (Synchronized Multimedia Integration Language) files"
7 url="http://www.ambulantplayer.org/"
8 arch=('i686' 'x86_64')
9 license=('LGPL')
10 makedepends=('gettext' 'cvs')
11 depends=('expat' 'ffmpeg'  'sdl' 'libxml2' 'gtk2')
12 optdepends=('live-media' 'xerces-c-2' 'arts' 'xulrunner' 'faad2' 'gstreamer0.10')
13 provides=('ambulant')
14 conflicts=('ambulant')
15 source=('ambulant.png' 'ambulant.desktop')
16 md5sums=('6eaef631585cf405d550de798cb8443e'
17          '29782fa992bbc91f20f1cf9e13f8677a')
19 _cvsroot=":pserver:anonymous:@ambulant.cvs.sourceforge.net:/cvsroot/ambulant"
20 _cvsmod="ambulant"
22 build() {
23   cd ${srcdir}
25   msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
26   if [ -d $_cvsmod/CVS ]; then
27     cd $_cvsmod
28     cvs -z3 update -d
29   else
30     cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
31     cd $_cvsmod
32   fi
33   ./autogen.sh
35   msg "CVS checkout done or server timeout"
36   msg "Starting make..."
38   cp -r ../$_cvsmod ../$_cvsmod-build
39   cd ../$_cvsmod-build
41   ./configure --prefix=/usr \
42   --with-xerces --with-xerces-plugin --with-ffmpeg --with-gtk --without-qt \
43   --with-gstreamer --with-smil-test --enable-fast-install || return 1
44   CFLAGS="-fPIC"
45   make || return 1
46   make DESTDIR=${pkgdir} install || return 1
48   rm -r ${srcdir}/$_cvsmod-build
50   install -D -m644 ${srcdir}/ambulant.png ${pkgdir}/usr/share/pixmaps/ambulant.png || return 1
51   install -D -m644 ${srcdir}/ambulant.desktop ${pkgdir}/usr/share/applications/ambulant.desktop || return 1
55 #--with-live=/usr/lib/live-media  --with-expat