1 # Maintainer: dryes <joswiseman@gmail>
2 pkgname='albumidentify-git'
5 pkgdesc='Tools to identify and manage music albums.'
6 url='https://github.com/albumidentify/albumidentify'
9 depends=('python2' 'python-musicbrainz2' 'libofa')
10 optdepends=('mpg123' 'mp3gain' 'flac' 'vorbis-tools' 'vorbisgain' 'cdrdao' 'cuetools' 'bchunk')
12 install='albumidentify.install'
13 provides=('albumidentify')
15 _gitroot='git://github.com/albumidentify/albumidentify.git'
16 _gitname='albumidentify'
20 msg 'Connecting to GIT server....'
22 if [ -d "${_gitname}" ] ; then
23 cd "${_gitname}" && git pull origin
24 msg 'The local files are updated.'
26 git clone "${_gitroot}" "${_gitname}"
29 msg 'GIT checkout done or server timeout'
33 cp -r "${srcdir}/albumidentify" "${srcdir}/albumidentify-build"
34 cd "${srcdir}/albumidentify-build"
36 for _f in $(find -type f); do
37 sed -i -r 's|(^\#\!/usr/bin/)(env )?python2?$|\1python2|i' "${_f}"
40 python2 setup.py install --root "${pkgdir}"
42 rm -rf "${srcdir}/albumidentify-build"