updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / split2flac-hg / PKGBUILD
blob16aa02e7039644d0d10f12c236486b6dba0ab3d0
1 # Contributor: Cyril Lashkevich <notorca at gmail dot com>
3 pkgname=split2flac-hg
4 pkgver=106
5 pkgrel=1
6 pkgdesc="An utility to split one big APE/FLAC/WV file to FLAC/OGG/M4A/MP3 tracks with tagging, renaming, changing codeset"
7 arch=('any')
8 url="http://code.google.com/p/split2flac/"
9 license=('MIT')
10 depends=('flac' 'cuetools' 'shntool')
11 optdepends=('imagemagick: for resizing cover images'
12             'libmp4v2: for setting tags in m4a files'
13             'faac: for encoding to m4a'
14             'mp3gain: for volume normalize'
15             'aacgain: for volume normalize'
16             'vorbisgain: for volume normalize'
17             'id3lib: for tags manipulation'
18             'lame: for spliting to mp3'
19             'mutagen: for tags manipulation'
20             'vorbis-tools: for spliting into ogg vorbis'
21             'flake: for faster flac encoding')
22 makedepends=('mercurial')
23 _hgroot=https://split2flac.googlecode.com/hg
24 _hgrepo=split2flac
26 build() {
27     if [ -d ${_hgrepo} ]; then
28         cd ${startdir}/src/${_hgrepo}
29         hg pull
30         hg up
31     else
32         hg clone ${_hgroot}${_hgrepo} || return 1
33         cd ${startdir}/src/${_hgrepo}
34     fi
36     msg "Mercurial clone done or server timeout"
37     msg "Starting make..."
38    
39     sed -i "s/VERSION=unknown/VERSION=hg-rev${pkgver}/" ${srcdir}/${_hgrepo}/split2flac.sh
40     install -Dm755 ${srcdir}/${_hgrepo}/split2flac.sh ${pkgdir}/usr/bin/split2flac
41     cd ${pkgdir}/usr/bin
42     ln -s split2flac ${pkgdir}/usr/bin/split2mp3
43     ln -s split2flac ${pkgdir}/usr/bin/split2ogg
44     ln -s split2flac ${pkgdir}/usr/bin/split2m4a
45     ln -s split2flac ${pkgdir}/usr/bin/split2wav