updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / emotion-svn / PKGBUILD
blobaefd7db9a4ef97eff6b77bcf80c32110fd46f192
1 # Contributor: Fabio Falcinelli <fabio.falcinelli@gmail.com>
2 pkgname=emotion-svn
3 pkgver=40500
4 pkgrel=1
5 pkgdesc="Video playback library used in Enlightenment DR0.17"
6 arch=('i686' 'x86_64')
7 license=('BSD')
8 url="http://www.enlightenment.org"
9 makedepends=('subversion')
10 conflicts=('emotion')
11 provides=('emotion')
12 replaces=('emotion-cvs')
13 depends=('edje' 'xine-lib' 'gstreamer0.10')
14 source=()
15 md5sums=()
17 _svntrunk="http://svn.enlightenment.org/svn/e/trunk/emotion"
18 _svnmod="emotion"
20 build() {
21   cd $srcdir
23   msg "Connecting to $_svntrunk SVN server...."
24   if [ -d $_svnmod/.svn ]; then
25     (cd $_svnmod && svn up -r $pkgver)
26   else
27     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28   fi
30   msg "SVN checkout done or server timeout"
31   msg "Starting make..."
33   cp -r $_svnmod $_svnmod-build
34   cd $_svnmod-build
36 ./autogen.sh --prefix=/usr
37   make || return 1
38   make DESTDIR=$startdir/pkg install || return 1
40 # install license files
41   install -D -m644 $startdir/src/$_svnmod-build/AUTHORS $startdir/pkg/usr/share/licenses/$pkgname/AUTHORS
42   install -D -m644 $startdir/src/$_svnmod-build/COPYING $startdir/pkg/usr/share/licenses/$pkgname/COPYING
43   install -D -m644 $startdir/src/$_svnmod-build/COPYING-PLAIN $startdir/pkg/usr/share/licenses/$pkgname/COPYING-PLAIN
45   rm -r $srcdir/$_svnmod-build