updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / fbff-git / PKGBUILD
blob25a203eef02152710a2ca005e09358602169d2fa
1 # Maintainer: Sara <sara at archlinux dot us>
3 pkgname=fbff-git
4 pkgver=20111116
5 pkgrel=1
6 pkgdesc="A small ffmpeg-based framebuffer media player"
7 arch=('i686' 'x86_64')
8 url="http://repo.or.cz/w/fbff.git"
9 license=('GPL')
10 depends=('ffmpeg')
11 optdepends=('libmpeg3: alternative media backend'
12             'oss: sound support')
13 makedepends=('git')
14 provides=('fbff')
15 conflicts=('fbff')
16 install=${pkgname}.install
18 _gitroot=git://repo.or.cz/fbff.git
19 _gitname=fbff
21 build(){
22   cd "${srcdir}"
23   msg "Connecting to GIT server...."
24   
25   if [[ -d ${_gitname} ]]; then
26     cd "${_gitname}"
27     git pull origin
28     msg "The local files are updated."
29   else
30     git clone "${_gitroot}" 
31     cd "${_gitname}"
32   fi
33   msg "Checkout done or server timeout"
34   rm -rf "${srcdir}/${_gitname}-build"
35   git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
36   cd "${srcdir}/${_gitname}-build"
38   msg "Starting make..."
39   make
42 package(){
43   install -Dm755 "${srcdir}/${_gitname}-build/${_gitname}" "${pkgdir}/usr/bin/${_gitname}"
44   install -Dm644 "${srcdir}/${_gitname}-build/README" "${pkgdir}/usr/share/doc/${_gitname}/README"
47 # vim:set ts=2 sw=2 et: