updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / gmplayer-svn / PKGBUILD
blobf7bccaeae137a3f019a5a72864d7be172b680fe9
1 # Maintainer: Alexander De Sousa <archaur.xandy21@spamgourmet.com>
2 # Contributor: evr <evanroman at gmail>
3 # Contributor: Jorge Mokross <mokross@gmail.com>
5 pkgname=gmplayer-svn
6 pkgver=2185
7 pkgrel=1
8 pkgdesc='A simple MPlayer GUI.'
9 arch=('i686' 'x86_64')
10 url='http://gnome-mplayer.googlecode.com/'
11 license=('GPL')
12 depends=('mplayer' 'dbus-glib' 'libnotify' 'gmtk-svn')
13 makedepends=('subversion')
14 install="${pkgname}.install"
15 conflicts=('gnome-mplayer' 'gnome-mplayer-cvs')
16 provides=('gnome-mplayer')
18 _svntrunk=http://gnome-mplayer.googlecode.com/svn/trunk
19 _svnmod=gnome-mplayer-read-only
21 build() {
22         cd "${srcdir}"
24         msg2 "Checking out the repository..."
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         fi
31         msg2 "SVN checkout done or server timeout."
33         rm -rf "$srcdir/$_svnmod-build"
34         cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
35         cd "$srcdir/$_svnmod-build"
37         msg2 "Configuring..."
38         ./configure --prefix=/usr --sysconfdir=/etc --without-gconf
39         msg2 "Building..."
40         make
43 package() {
44         cd "$srcdir/$_svnmod-build"
46         make DESTDIR="$pkgdir/" install
48         sed -i 's@Exec=gnome-mplayer %U@Exec=gnome-mplayer %F@' \
49                 "${pkgdir}/usr/share/applications/gnome-mplayer.desktop"
52 # vim: set ts=3 sw=3 tw=0: