updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / ario-svn / PKGBUILD
blob9d93f64bdff492154efa54a04f43203c4b8c46a1
1 # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: Tim Yang <tdy@gmx.com>
3 # Contributor: Skottish <skottish97215@gmail.com>
5 pkgname=ario-svn
6 pkgver=468
7 pkgrel=1
8 pkgdesc="A lightweight GTK+ client for MPD and XMMS2 inspired by Rhythmbox."
9 arch=('i686' 'x86_64')
10 url="http://ario-player.sourceforge.net/"
11 license=('GPL')
12 depends=('avahi' 'curl' 'libglade' 'libsoup>=2.4' 'taglib')
13 makedepends=('intltool' 'libnotify' 'perlxml' 'pkgconfig' 'subversion')
14 provides=('ario')
15 conflicts=('ario')
16 options=('!libtool')
17 source=()
18 md5sums=()
20 _svntrunk="https://ario-player.svn.sourceforge.net/svnroot/ario-player/trunk"
21 _svnmod="ario"
23 build() {
24   cd "${srcdir}"
26   msg "Connecting to the $_svnmod SVN server..."
27   if [ -d "$_svnmod/.svn" ]; then
28     cd $_svnmod && svn up -r $pkgver
29     msg2 "Local files updated"
30   else
31     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32     msg2 "SVN checkout done"
33   fi
35   rm -rf "${srcdir}/$_svnmod-build"
36   cp -r "${srcdir}/$_svnmod" "${srcdir}/$_svnmod-build"
37   cd "${srcdir}/$_svnmod-build"
39   msg "Starting make..."
40   ./autogen.sh --prefix=/usr || return 1
41   make || return 1
42   make DESTDIR="${pkgdir}" install || return 1
44   install -dm755 "${pkgdir}/usr/share/pixmaps"
45   ln -sf /usr/share/icons/hicolor/48x48/apps/ario.png \
46     "${pkgdir}/usr/share/pixmaps/ario.png"
47   install -Dm644 data/ario.desktop "${pkgdir}/usr/share/applications/ario.desktop"