1 # Maintainer: loonyphoenix <loonyphoenix at gmail>
2 # This is an SMPlayer fork named SMPlayer2 by lachs0r
3 # that fixes several issues with mplayer2 integration.
8 pkgdesc="A fork of SMPlayer, targeted at mplayer2 users"
9 url="https://github.com/lachs0r/SMPlayer2"
10 arch=('i686' 'x86_64')
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"
23 msg "Connecting to GIT server...."
25 if [[ -d "$_gitname" ]]; then
26 cd "$_gitname" && git pull origin
27 msg "The local files are updated."
29 git clone "$_gitroot" "$_gitname"
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 .
44 cd "$srcdir/$_gitname-build"
45 make DESTDIR="$pkgdir" install