updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / luakit-inspector-rewrite-git / PKGBUILD
blob7204dfe33767f25227fc70092ffe7577f6215ab1
1 # Maintainer: Jonny Gerold <jonny@fsk141.com>
2 # Contributor: J. W. Birdsong <jwbirdsong AT gmail DOT com>
4 pkgname=luakit-inspector-rewrite-git
5 pkgver=20111110
6 pkgrel=1
7 pkgdesc="A fast, small, webkit-gtk based browser extensible by Lua -- inspector rewrite branch"
8 arch=('i686' 'x86_64')
9 url="http://www.luakit.org/projects/luakit" 
10 license=('GPL3')
11 depends=('libwebkit' 'luafilesystem' 'libunique')
12 makedepends=('git' 'lua' 'help2man')
13 optdepends=('luajit2: Needed if use the luajit option in make')
14 source=($pkgname.install)
15 provides=(luakit)
16 conflicts=('luakit' 'luakit-develop-git' 'luakit-git')
17 install=$pkgname.install
19 md5sums=('90b1959aedd60c11cb79b926615a3553')
21 _gitroot="https://github.com/karottenreibe/luakit.git"
22 _gitname="inspector-rewrite"
24 build() {
25   cd "${srcdir}"
26   msg "Connecting to GIT server...."
28   if [ -d $_gitname ] ; then
29     cd $_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot $_gitname
33         cd $_gitname
34     msg "Switching to inspector-rewrite branch"
35     git checkout -b remotes/origin/inspector-rewrite
36         git pull origin inspector-rewrite
37   fi
39   msg "GIT checkout done or server timeout"
40   msg "Starting make..."
42   makeopts="PREFIX=/usr DESTDIR="${pkgdir}" DEVELOPMENT_PATHS=0 "
43 # if you want to use luajit2, comment the above line and uncomment the following
44 # makeopts="PREFIX=/usr DESTDIR="${pkgdir}" DEVELOPMENT_PATHS=0 USE_LUAJIT=1"  
45   make ${makeopts} all
46   make ${makeopts} install