updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / audacious-git / PKGBUILD
blobfe6f00d2a086376a0c4446a66e70dcf2296d7865
1 # $Id$
2 # Maintainer: Radioactiveman <thomas-lange2@gmx.de>
3 # Contributor: Gaetan Bisson <bisson@archlinux.org>
4 # Contributor: Alexander Fehr <pizzapunk gmail com>
5 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
7 pkgname=audacious-git
8 pkgver=20120115
9 pkgrel=1
10 pkgdesc="Lightweight, GTK-based advanced audio player focused on audio quality"
11 url="http://audacious-media-player.org/"
12 license=('GPL3')
13 arch=('i686' 'x86_64')
14 depends=('gtk3' 'dbus-glib' 'libguess' 'libsm' 'hicolor-icon-theme'
15          'gtk-update-icon-cache' 'desktop-file-utils')
16 makedepends=('pkg-config' 'git')
17 optdepends=('unzip: zipped skins support')
18 provides=('audacious')
19 conflicts=('audacious' 'audacious-player-hg')
20 install=install
22 _gitroot="git://github.com/audacious-media-player/audacious.git"
23 _gitname="audacious"
25 # Choose between 'master' (devel) and '3.2.x' (stable)
26 _version="master"
28 build() {
29     msg "Connecting to GIT server..."
31     if [[ -d ${_gitname} ]]; then
32         ( cd ${_gitname} && git pull origin )
33         msg "The local files are updated."
34     else
35         git clone -b ${_version} ${_gitroot}
36     fi
38     msg "GIT checkout done or server timeout"
39     msg "Starting make..."
41     rm -rf ${_gitname}-build
42     git clone ${_gitname}{,-build}
43     cd ${_gitname}-build
45     ./autogen.sh
46     ./configure \
47         --prefix=/usr \
48         --with-buildstamp="Arch Linux"
49     make
52 package() {
53     cd "${srcdir}/${_gitname}-build"
54     make DESTDIR="${pkgdir}" install