summaryrefslogtreecommitdiff
path: root/~lukeshu/conkeror-git/SRCBUILD
blob: 4d56dbcffb2fec1b28a49817cb9b1a30fb16cdcb (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
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net
# Maintainer (aur): Ivy Foster <joyfulgirl@archlinux.us>
# Maintainer (k[community]): Stefan Husmann <stefan-husmann@t-online.de>
# Contributor (Arch): Heeru Kiyura <M8R-p9i5nh@mailinator.com>

pkgname=conkeror-git
pkgver=20120228
pkgrel=1
pkgdesc="A highly programmable web browser based on Mozilla XULRunner."
arch=('any')
url="http://conkeror.mozdev.org/"
license=('MPL' 'GPL' 'LGPL')
makedepends=('git')
changelog=ChangeLog

_gitroot="git://repo.or.cz/conkeror.git"
_gitname="conkeror"

build() {
  cd "$srcdir"

  ## Git checkout
  if [ -d "$srcdir"/${_gitname} ] ; then
    msg "Git checkout:  Updating existing tree"
    cd ${_gitname} && git pull origin master
    msg "Git checkout:  Tree has been updated"
  else
    msg "Git checkout:  Retrieving sources"
    git clone ${_gitroot} && cd ${_gitname}
  fi
  msg "Checkout completed"
}

package() {
  PKGEXT=${SRCEXT}
  PKGDEST=${SRCDEST}
  cp -a "${srcdir}"/* "${pkgdir}"
}