1 # Contributor: Roman Ajsin <aysin.roman@gmail.com>
5 pkgdesc="The Convert to FLAC script converts audio files compressed with alternative lossless codecs (Monkey's Audio, Shorten, etc.) to the FLAC format."
7 url="http://www.legroom.net/software/convtoflac"
10 makedepends=('gcc' 'yasm' 'pacman>=3.3.0' 'patch' 'make')
11 optdepends=('ffmpeg: optional decoder'
12 'alac_decoder: used to decompress ALAC (Apple Lossles) files'
13 'libmp4v2: used to read tags from ALAC (Apple Lossles) files'
14 'mac: used to decompress APE (Monkeys Audio) files'
15 'shorten: used to decompress Shorten files'
16 'ttaenc: used to decompress TTA (True Audio) files'
17 'wavpack: used to decompress WavPack files'
18 'trash-cli: used to send input files to trash')
20 source=(http://www.legroom.net/files/software/$pkgname.sh \
21 http://www.legroom.net/files/software/apeinfo11_source.tgz \
22 http://www.legroom.net/files/software/mac-3.99-u4-b5.tar.gz \
24 md5sums=('f60964892b43af4c63bad676150c006d'
25 '108476a3ec2e9d909dc0810204a2cbe9'
26 '75716b342e07deae58f56a2522362006'
27 '771c071831871fe8803d139a56515e86')
30 # Build mac with apeinfo
31 cp "$srcdir/"{Makefile.am,Makefile.in,apeinfo.cpp} "$srcdir/mac-3.99-u4-b5/src/Examples/Analyze/Sample1/" || return 1
32 cd "$srcdir/mac-3.99-u4-b5"
34 # Applying patch from "mac 3.99u4b5-4" PKGBUILD (by stonecrest)
35 patch -Np1 -i $startdir/src/gcc4_errors.patch || return 1
38 ./configure --prefix=/usr --disable-shared --enable-static
43 mkdir -p "$pkgdir/usr/bin" || return 1
44 install -m755 "$srcdir/mac-3.99-u4-b5/src/Examples/Analyze/Sample1/apeinfo" "$pkgdir/usr/bin"
45 install -m755 "$srcdir/convtoflac.sh" "$pkgdir/usr/bin/convtoflac"
48 # vim:set ts=2 sw=2 et: