updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / alacconvert / PKGBUILD
blob0a5296f356c82bd3a75a32036b7109589a5a198d
1 # Maintainer: DrZaius <lou[at]fakeoutdoorsman[dot]com>
3 pkgname=alacconvert
4 pkgver=3
5 pkgrel=1
6 pkgdesc="Apple Lossless Audio Codec encoder/decoder"
7 arch=('i686' 'x86_64')
8 url="http://alac.macosforge.org/"
9 license=('APACHE')
10 makedepends=('subversion')
11 source=('move-lflags.patch')
12 md5sums=('e98613b9b0e1aa0ec93fe3461e64fb2f')
14 _svnmod="alac"
15 _svntrunk="http://svn.macosforge.org/repository/alac/trunk"
17 build() {
18   cd ${srcdir}
19   msg "Connecting to the SVN repository..."
21   if [[ -d ${_svnmod}/.svn ]]; then
22      (cd ${_svnmod} && svn up -r $pkgver)
23   else
24      svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
25   fi
27   msg "SVN checkout done or server timeout"
29   if [[ -d ${srcdir}/${_svnmod}-build ]]; then
30      rm -rf ${srcdir}/${_svnmod}-build
31   fi
33   cp -r ${srcdir}/${_svnmod} ${srcdir}/${_svnmod}-build
34   
35   cd ${srcdir}/${_svnmod}-build/convert-utility
36   
37   # Patch from http://mtakagi.tumblr.com/post/12027648706/apple-lossless-audio-codec-freebsd
38   patch -Np0 -i ${srcdir}/move-lflags.patch
39   make
42 package() {
43   cd ${srcdir}/${_svnmod}-build/convert-utility
44   install -D alacconvert ${pkgdir}/usr/bin/alacconvert
45   rm -rf $srcdir/$_svnmod-build