summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 152e07749e59378772ce01b42cd9e4fc196a1c50 (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
# Maintainer: jun7 <jun7@hush.com>
pkgname=wyeb-git
pkgver=1.1
pkgrel=4
pkgdesc="A vim-like webkit2gtk browser"
arch=('x86_64')
url="http://wyeb.org/"
license=('GPL3')
depends=('webkit2gtk' 'discount' 'perl-file-mimeinfo')
makedepends=('git')
_branch=master
source=("git+https://github.com/jun7/wyeb.git#branch=$_branch")
md5sums=('SKIP')

pkgver(){
	cd "$srcdir/wyeb"
	printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/wyeb"
	git pull --rebase origin $_branch
	make clean
}

build() {
	cd "$srcdir/wyeb"
	make
}

package() {
	cd "$srcdir/wyeb"
	install -Dm755 wyeb   "$pkgdir/usr/bin/wyeb"
	install -Dm755 ext.so   "$pkgdir/usr/lib/wyebrowser/ext.so"
	install -Dm644 wyeb.png   "$pkgdir/usr/share/pixmaps/wyeb.png"
	install -Dm644 wyeb.desktop "$pkgdir/usr/share/applications/wyeb.desktop"
}