updated on Sat Jan 21 12:00:39 UTC 2012
[aur-mirror.git] / yaner-git / PKGBUILD
blob6de64dc56a135d5de4eafabb40d63407d50d73b8
1 # Maintainer: Iven Hsu <ivenvd#gmail.com>
3 pkgname=yaner-git
4 pkgver=20120103
5 pkgrel=1
6 pkgdesc="GTK+ interface for aria2 download mananger."
7 arch=(any)
8 url="http://iven.github.com/Yaner"
9 license=('GPL3')
10 depends=('python-chardet' 'python-sqlalchemy' 'python-gobject' 'libnotify' 'dconf')
11 makedepends=('git')
12 provides=('yaner')
13 conflicts=('yaner')
14 options=(!emptydirs)
15 install=yaner.install
17 _gitroot="git://github.com/iven/Yaner.git"
18 _gitname="yaner"
19 _gitbranch="develop"
21 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" --branch "$_gitbranch"
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"
40 package() {
41   cd "$srcdir/$_gitname"
42   python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1
45 # vim:set ts=2 sw=2 et: