1 # Maintainer: graysky <graysky AT archlinux DOT us>
2 # Contributer: Serge Ziryukin <ftrvxmtrx@gmail.com>
7 pkgdesc="Split flac/ape/wv/wav + cue sheet into separate tracks"
9 url=("https://github.com/ftrvxmtrx/split2flac")
11 conflicts=('split2flac-hg')
12 depends=('cuetools' 'shntool' 'flac')
14 'mac: to split APE format'
15 'wavpack: to split WV format'
16 'flake: faster FLAC encoding'
17 'lame: to split into mp3'
18 'vorbis-tools: to split into ogg vorbis'
19 'faac: to split into m4a'
20 'libmp4v2: to set tags in m4a'
21 'mutagen: to set tags in mp3 (with unicode support)'
22 'id3lib: to set tags in mp3 (unicode not supported)'
23 'mp3gain: mp3 volume normalization'
24 'aacgain: m4a volume normalization'
25 'vorbisgain: ogg vorbis volume normalization'
26 'imagemagick: to convert/resize album cover images'
27 'enca: to automatically detect cue sheet charset')
30 _gitroot="git://github.com/ftrvxmtrx/split2flac.git"
36 msg "Connecting to GIT server..."
38 if [ -d "$srcdir/$_gitname" ]; then
39 cd $_gitname && git pull origin
40 msg "The local files are updated."
45 msg "GIT checkout done or server timeout"
49 cd "$srcdir/$_gitname"
51 install -Dm 755 split2flac "${pkgdir}/usr/bin/split2flac"
53 cd "${pkgdir}/usr/bin/"
54 ln -s split2flac split2mp3
55 ln -s split2flac split2ogg
56 ln -s split2flac split2m4a
57 ln -s split2flac split2wav