summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14fd167fcd3b60765824fb746d31846d97b5b983 (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
# Contributor: jason ryan <jasonwryan@gmail.com>
# Contributor: fanglingsu
# Maintainer: <aksr at t-com dot me>
pkgname=vimb-git
pkgver=3.0.r1426.782acb5
pkgrel=1
epoch=
arch=('i686' 'x86_64')
pkgdesc="A Vim-like web browser that is inspired by Pentadactyl and Vimprobable."
url="https://github.com/fanglingsu/vimb"
url="http://fanglingsu.github.io/vimb"
license=('GPLv3')
depends=('webkit2gtk>=2.8')
makedepends=('git')
optdepends=()
checkdepends=()
provides=('vimb')
conflicts=('vimb' 'vimb2')
replaces=()
backup=()
options=()
changelog=
install=
source=("$pkgname::git+https://github.com/fanglingsu/vimb.git")
noextract=()
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "%s.r%s.%s" "$(git describe --long --tags | sed -e 's/-alpha/.0/' -e 's/-.*//')" \
                     "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$srcdir/$pkgname"
  if [ -e $SRCDEST/config.h ]; then
    msg "Using custom config.h";
    cp $SRCDEST/config.h "$srcdir/$pkgname/src"
  fi
}

build() {
  cd "$srcdir/$pkgname"
  make V=1
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" PREFIX="/usr" install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}