1 # Maintainer: dryes <joswiseman@gmail>
2 pkgname='flac2alac-git'
5 pkgdesc='A shell script to convert FLAC (Free Lossless Audio Codec) files to ALAC (Apple Lossless Audio Codec).'
6 url='https://github.com/nighto/flac2alac'
9 depends=('flac' 'ffmpeg' 'libmp4v2')
11 provides=('flac2alac')
13 _gitroot='git://github.com/nighto/flac2alac.git'
18 msg 'Connecting to GIT server....'
20 if [ -d "${_gitname}" ] ; then
21 cd "${_gitname}" && git pull origin
22 msg 'The local files are updated.'
24 git clone "${_gitroot}" "${_gitname}"
27 msg 'GIT checkout done or server timeout.'
31 mkdir -p "${pkgdir}/usr/bin"
32 install -Dm755 "${srcdir}/flac2alac/bin/flac2alac" "${pkgdir}/usr/bin/flac2alac"