1 # Contributor: Cyril Lashkevich <notorca at gmail dot com>
6 pkgdesc="An utility to split one big APE/FLAC/WV file to FLAC/OGG/M4A/MP3 tracks with tagging, renaming, changing codeset"
8 url="http://code.google.com/p/split2flac/"
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
27 if [ -d ${_hgrepo} ]; then
28 cd ${startdir}/src/${_hgrepo}
32 hg clone ${_hgroot}${_hgrepo} || return 1
33 cd ${startdir}/src/${_hgrepo}
36 msg "Mercurial clone done or server timeout"
37 msg "Starting make..."
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.sh