1 # Maintainer: DrZaius <lou[at]fakeoutdoorsman[dot]com>
6 pkgdesc="Apple Lossless Audio Codec encoder/decoder"
8 url="http://alac.macosforge.org/"
10 makedepends=('subversion')
11 source=('move-lflags.patch')
12 md5sums=('e98613b9b0e1aa0ec93fe3461e64fb2f')
15 _svntrunk="http://svn.macosforge.org/repository/alac/trunk"
19 msg "Connecting to the SVN repository..."
21 if [[ -d ${_svnmod}/.svn ]]; then
22 (cd ${_svnmod} && svn up -r $pkgver)
24 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
27 msg "SVN checkout done or server timeout"
29 if [[ -d ${srcdir}/${_svnmod}-build ]]; then
30 rm -rf ${srcdir}/${_svnmod}-build
33 cp -r ${srcdir}/${_svnmod} ${srcdir}/${_svnmod}-build
35 cd ${srcdir}/${_svnmod}-build/convert-utility
37 # Patch from http://mtakagi.tumblr.com/post/12027648706/apple-lossless-audio-codec-freebsd
38 patch -Np0 -i ${srcdir}/move-lflags.patch
43 cd ${srcdir}/${_svnmod}-build/convert-utility
44 install -D alacconvert ${pkgdir}/usr/bin/alacconvert
45 rm -rf $srcdir/$_svnmod-build