3 # Contributor: Adrian C. <anrxc..sysphere.org>
8 pkgdesc="A curses front-end for various audio players based on cplay"
10 url="http://git.sysphere.org/play/tree/README"
12 depends=("ncurses" "python2")
14 optdepends=("mpg123: for minimal mp3 support"
15 "pyid3lib: for mp3 ID3 tags support"
16 "vorbis-tools: for minimal ogg and flac support"
17 "pyvorbis: for ogg tag metadata support"
18 "mplayer: for proper flac, wma, m4a and m4b support")
19 install="${pkgname}.install"
21 _gitroot=http://git.sysphere.org/play
28 # Download or update the library
29 msg "Connecting to GIT server over HTTP..."
30 if [[ -d "${_gitname}" ]]; then
31 (cd "${_gitname}" && git pull origin)
32 msg "The local repository was updated."
34 git clone "${_gitroot}" "${_gitname}"
35 msg "The remote repository was cloned."
37 msg "GIT sync done or server timeout."
39 # Install the play binary
40 install -D -m755 "${_gitname}/${_gitname}.py" "${pkgdir}/usr/bin/${_gitname}.py"
42 # Install the documentation
43 install -D -m644 "${_gitname}/README" "${pkgdir}/usr/share/doc/${_gitname}/README"
44 # install -m644 "${_gitname}/LICENSE" "${pkgdir}/usr/share/doc/${_gitname}"
46 # Generate the changelog
47 git --git-dir="${_gitname}/.git" log --oneline > "${pkgdir}/usr/share/doc/${_gitname}/CHANGES"