updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ptmegaupload-git / PKGBUILD
blob9fc2967e509fe2684b7034538d44225c205c43d8
1 # Maintainer: PyrO_70 <brieuc.roblin at gmail dot com>
2 pkgname=ptmegaupload-git
3 pkgver=20110605
4 pkgrel=2
5 pkgdesc="Megaupload Search & Download (Requires premium account)"
6 arch=('i686' 'x86_64')
7 url=http://www.pyrotools.org/
8 license=('GPL')
9 depends=('qt')
10 makedepends=('git')
12 _gitroot=git://gitorious.org/ptmegaupload/ptmegaupload.git
13 _gitname=ptmegaupload
15 build() {
16   cd "$srcdir"
18   msg2 "Connecting to GIT server..."
20   if [ -d ${_gitname} ] ; then
21     ( cd ${_gitname} && git pull )
22   else
23     git clone ${_gitroot} ${_gitname}
24   fi
26   cd "$_gitname"
28   msg2 "Starting make..."
29   qmake INSTALL_PREFIX=/usr INTERFACE=gui
30   make
33 package() {
34   cd "$srcdir/$_gitname"
35   msg2 "Packing..."
36   make INSTALL_ROOT=${pkgdir} install