summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96f7c36c01d324b77f402f346966c46cff7898d9 (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
# Maintainer: Solomon Choina <shlomochoina at gmail.com>
# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Thomas Dziedzic <gostrc@gmail.com>
# Contributor: J. W. Birdsong <jwbirdsong@gmail.com>

_disable_tests=1 #disable tests
pkgname=luakit-git
_gitname=luakit
epoch=1
pkgver=2.1.r2.g9bbe4d69
pkgrel=1
pkgdesc='Luakit: now updated for WebKit 2'
arch=('x86_64' 'i686' 'armv7h')
srcurl='https://github.com/luakit/luakit'
url='https://luakit.github.io'
license=('GPL3')
makedepends=('git' 'pkg-config')
checkdepends=('xorg-server-xvfb' 'lua51-luacheck' 'lua51-luassert' )
provides=('luakit')
conflicts=('luakit')
depends=('webkit2gtk' 'lua51-filesystem' 'luajit')
backup=('etc/xdg/luakit/rc.lua'
        'etc/xdg/luakit/theme.lua')
source=(git+"$srcurl".git#branch=develop)
md5sums=('SKIP')

pkgver() {
   cd "$srcdir/$_gitname"
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${_gitname}"
  make  DEVELOPMENT_PATHS=0 USE_LUAJIT=1 PREFIX=/usr all
}

check(){
 cd "${srcdir}/${_gitname}"
 if (("${_disable_tests}" ==1 )); then
   msg "tests are disabled"
 else
  make run-tests
fi
}

package() {
  cd "${srcdir}/${_gitname}"
  make PREFIX=/usr DESTDIR="$pkgdir" install
}