summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a298e58fd2440635cbb8ac34eccfa46a37fb4793 (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
# Contributor: jason ryan <jasonwryan@gmail.com>
# Contributor: fanglingsu
# Maintainer: <aksr at t-com dot me>
pkgname=vimb-git
pkgver=3.6.0.r1751.8b85f98
pkgrel=1
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=('GPL3')
depends=('webkit2gtk-4.1')
makedepends=('git')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}" 'vimb2')
source=("$pkgname::git+https://github.com/fanglingsu/vimb.git")
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 DEXTENSIONDIR=/usr/lib/vimb V=1 DESTDIR="$pkgdir" PREFIX="/usr"
}

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