updated on Fri Jan 13 00:14:41 UTC 2012
[aur-mirror.git] / lightlang-git / PKGBUILD
blob9c36aa8388b74f90e8d02ba99cf49a5c0c61fdc3
1 # Contributor : eduard_pustobaev <eduard_pustobaev@mail.ru>
3 pkgname=lightlang-git
4 pkgver=20111115
5 pkgrel=1
6 pkgdesc="LightLang - system of electronic dictionaries for Linux."
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/lightlang"
9 license="GPL"
10 depends=('qt' 'pyqt' 'python2-pyqt' 'python-xlib' 'sox')
11 makedepends=('git' 'autoconf')
12 provides=('lightlang')
13 replaces=('lightlang-svn')
14 source=()
15 md5sums=()
17 _gitroot="git://github.com/mdevaev/lightlang.git"
18 _gitname="lightlang"
21 build() {
22         cd $startdir/src
23         if [ -d $_gitname ]; then
24                 msg "Updateing local repository..."
25                 cd $_gitname
26                 git pull origin master || return 1
27                 msg "The local files are updated."
28                 cd ..
29         else
30                 git clone $_gitroot --depth=1
31         fi
33         msg "Git clone done or server timeout"
34         msg "Starting make..."
36         rm -rf $_gitname-build
37         cp -r $_gitname $_gitname-build
38         cd $_gitname-build
40         autoconf
41         ./configure --with-python=python2 || return 1
42         make || return 1
43         make DESTDIR=$pkgdir install