updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / rubyripper-git / PKGBUILD
blob98d9173e5a276a791f26e22fea96e9a1f551d657
1 # Contributor: Wintershade (Wintershade (at) that-letter-before-H-mail (dot) com)
2 # Many thanks to Rasi for starting this
4 pkgname=rubyripper-git
5 pkgver=20111216
6 pkgrel=2
8 conflicts=('rubyripper')
9 replaces=('rubyripper')
10 provides=('rubyripper')
12 pkgdesc="Secure audiodisc ripper"
13 arch=('i686' 'x86_64')
14 url="http://code.google.com/p/rubyripper/"
15 license=('GPL3')
17 depends=('cdparanoia' 'gtk2' 'hicolor-icon-theme' 'ruby-gtk2')
18 makedepends=('git' 'ruby' 'sudo')
19 optdepends=('ruby-gtk2: GTK+ GUI'
20         'cd-discid: Freedb support'
21         'eject: Eject support'
22         'lame: MP3 encoding support'
23         'vorbis-tools: Ogg Vorbis encoding support'
24         'flac: FLAC encoding support'
25         'wavegain: WAV ReplayGain support'
26         'mp3gain: MP3 ReplayGain support'
27         'vorbisgain: Ogg Vorbis ReplayGain support'
28         'normalize: Normalization support')
29 install=rubyripper.install
30 source=()
32 _gitroot="https://code.google.com/p/rubyripper/"
33 _gitname="rubyripper"
36 build() {
37 cd $startdir/src
38 msg "Connecting to rubyripper git server..."
40 if [ -d $startdir/src/$_gitname ] ; then
41 cd $_gitname && git pull origin
42 msg "The local files are updated."
43 else
44 git clone $_gitroot
45 cd $_gitname
48 cd "$srcdir/rubyripper"
49 git checkout stable
50 ./configure --prefix=/usr --enable-gtk2 --enable-cli --enable-lang-all
51 make DESTDIR="$pkgdir" install