updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / smplayer2-git / PKGBUILD
blob72f0bd7f0b4f50af098c95776f0c15d8f3f04dad
1 # Maintainer: loonyphoenix <loonyphoenix at gmail>
2 # This is an SMPlayer fork named SMPlayer2 by lachs0r
3 # that fixes several issues with mplayer2 integration.
5 pkgname=smplayer2-git
6 pkgver=20111111
7 pkgrel=2
8 pkgdesc="A fork of SMPlayer, targeted at mplayer2 users"
9 url="https://github.com/lachs0r/SMPlayer2"
10 arch=('i686' 'x86_64')
11 license=('GPL')
12 depends=('qt' 'mplayer2')
13 makedepends=('git' 'cmake')
14 optdepends=('quazip: rebuild with this AUR library installed for Subtitle Downloader support')
16 _gitroot="git://github.com/lachs0r/SMPlayer2.git"
17 _gitname="smplayer2"
19 build()
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [[ -d "$_gitname" ]]; then
26     cd "$_gitname" && git pull origin
27     msg "The local files are updated."
28   else
29     git clone "$_gitroot" "$_gitname"
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting build..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
39   cmake -DCMAKE_INSTALL_PREFIX=/usr .
40   make
43 package() { 
44   cd "$srcdir/$_gitname-build"
45   make DESTDIR="$pkgdir" install