updated on Thu Jan 19 04:14:35 UTC 2012
[aur-mirror.git] / gmpc-exiftool-git / PKGBUILD
blobd4649fd261e85ed47f2fbc4325618bf3c9523ac4
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: Your Name <youremail@domain.com>
7 pkgname=gmpc-exiftool-git
8 pkgver=20100902
9 pkgrel=1
10 pkgdesc="Exif plugin for gmpc."
11 arch=('i686')
12 url="http://gmpc.wikia.com/"
13 license=('GPL')
14 groups=()
15 depends=(perl perl-exiftool gmpc)
16 makedepends=(git)
17 #source=($pkgname-$pkgver.tar.gz)
18 #noextract=()
19 #md5sums=() #generate with 'makepkg -g'
21 _gitroot="http://git.musicpd.org/cgit/qball/gmpc-exiftool.git/"
22 _gitname="gmpc-exiftool"
24 build() {
25         cd $startdir/src
26         msg "Connecting to $_gitroot server..."
28         if [ -d $startdir/src/$_gitname ] ; then
29                 cd $_gitname && git pull origin
30                 msg "The local files are updated."
31         else
32                 git clone $_gitroot
33         fi
35         msg "GIT checkout done or server timeout"
36         msg "Starting make..."
38         cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
39         cd $startdir/src/$_gitname-build
41         ./autogen.sh --prefix=/usr
42         make || return 1
43         make DESTDIR=$startdir/pkg install
47 # vim:set ts=2 sw=2 et: