summaryrefslogtreecommitdiff
path: root/~xihh/django-ajax-selects/PKGBUILD
blob: e0255e7459caa00bd6aa804c27150c0c8aa68fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer: Joshua Ismael Haase Hernandez <joshpar@none>
pkgname=django-ajax-selects
pkgver=20120215
pkgrel=1
epoch=
pkgdesc=""
arch=('i686' 'x86_64' 'mips64el')
url="https://github.com/crucialfelix/django-ajax-selects"
license=('GPL')
groups=()
depends=('python2')
makedepends=('git')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
changelog=
source=()
md5sums=()
noextract=()
#generate with 'makepkg -g'

_gitroot=git://github.com/crucialfelix/django-ajax-selects.git
_gitname=django-ajax-selects

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [[ -d "$_gitname" ]]; then
    cd "$_gitname" && git pull origin
    msg "The local files are updated."
  else
    git clone "$_gitroot" "$_gitname"
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting build..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"
}

package() {
  cd "$srcdir/$_gitname-build"
  python setup.py install --root="$pkgdir/" --optimize=1
}