updated on Thu Jan 12 16:09:17 UTC 2012
[aur-mirror.git] / minmad-git / PKGBUILD
blobd5a66077149edbf3a0a80d5a11efbab335ffde10
1 # Maintainer: Sara <sara at archlinux dot us>
3 pkgname=minmad-git
4 pkgver=20111205
5 pkgrel=1
6 pkgdesc="A minimal mp3 player using libmad"
7 arch=('i686' 'x86_64')
8 url="http://repo.or.cz/w/minmad.git"
9 license=('GPL')
10 depends=('libmad')
11 optdepends=('oss: sound support')
12 makedepends=('git')
13 provides=('minmad')
14 conflicts=('minmad')
15 source=('minmad.1')
16 md5sums=('28f040400e36b02e4c5427f0ef22e951')
18 _gitroot=git://repo.or.cz/minmad.git 
19 _gitname=minmad
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 man page
45   install -Dm644 "${srcdir}/${_gitname}.1" "${pkgdir}/usr/share/man/man1/${_gitname}.1"
48 # vim:set ts=2 sw=2 et: