updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / alang-py / PKGBUILD
blob5ef0981ce49a18ac474a797c2d57bcbd8bae8a31
1 pkgname=alang-py
2 pkgver=20110711
3 pkgrel=1
4 pkgdesc="Simple locale library for Python"
5 arch=('i686' 'x86_64')
6 url="http://osworld.pl"
7 license=('GPL')
8 depends=('python')
9 makedepends=('git')
10 provides=('alang-py')
11 conflicts=('alang-py')
13 _gitroot="git://github.com/webnull/alang-py.git"
14 _gitname="alang-py"
16 build() {
17   cd "$srcdir"
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
28   rm -rf "$srcdir/$_gitname-build"
29   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30  # cd "$srcdir/$_gitname-build"
31  # ./install.sh
32   cp "$srcdir/alang-py/usr" "$srcdir/../pkg/usr" -R