updated on Tue Jan 24 08:00:27 UTC 2012
[aur-mirror.git] / nomnom-git / PKGBUILD
blobeee8dc1b9334c78b88db2ecd91c11ba211601d99
1 # Maintainer: kfgz <kfgz at interia dot pl>
2 # Contributor: archtux <antonio dot arias99999 at gmail dot com>
4 pkgname=nomnom-git
5 pkgver=20120113
6 pkgrel=1
7 pkgdesc="Application for downloading videos from Youtube and other similar video websites"
8 arch=('i686' 'x86_64')
9 url="http://nomnom.sourceforge.net/"
10 license=('GPL3')
11 depends=('qt' 'quvi' 'umph' 'qjson' 'curl')
12 makedepends=('git')
13 conflicts=('nomnom')
15 _gitname=nomnom
16 _gitroot=http://repo.or.cz/r/nomnom.git
18 build() {
19   cd "${srcdir}"
20   
21   msg "Connecting to GIT server...."
23   if [ -d "${srcdir}"/${_gitname} ]; then
24      cd ${_gitname}
25      git pull origin
26      msg "The local files are updated..."
27   else
28      git clone ${_gitroot}
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   if [ -d "${srcdir}"/${_gitname}-build ]; then
35      msg "Cleaning the previous build directory..." 
36      rm -rf "${srcdir}"/${_gitname}-build
37   fi
39   git clone "${srcdir}"/${_gitname} "${srcdir}"/${_gitname}-build
41   cd "${srcdir}"/${_gitname-build}
43   ./autogen.sh
44   ./configure --prefix=/usr
45   make
48 package() {
49   cd "${srcdir}"/${_gitname-build}
50   make DESTDIR="${pkgdir}" install