updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / surf-hg / PKGBUILD
blob183287b42a21e1d1533304556cac8ce28e8ba835
1 # Contributor: totoloco <totoloco at gmail dot com>
3 pkgname="surf-hg"
4 pkgver=221
5 pkgrel=1
6 pkgdesc="It's a simple webbrowser which is based on webkit/gtk+.The latest hg pull."
7 url="http://surf.suckless.org"
8 license=("MIT/X")
9 arch=("i686" "x86_64")
10 depends=("gtk2" "libwebkit")
11 makedepends=("pkgconfig" "mercurial" "xorg-utils")
12 conflicts=("surf")
13 provides=("surf")
15 _hgroot="http://hg.suckless.org"
16 _hgrepo="surf"
18 build() {
19   cd ${srcdir}
20   
21   if [ -d ${_hgrepo} ]; then
22     cd ${_hgrepo}
23     make clean
24     hg pull -u
25   else
26     hg clone ${_hgroot}/${_hgrepo}
27     cd ${_hgrepo}
28   fi
29   
30   msg "Starting build process."
31   make || return 1
32   make PREFIX=/usr DESTDIR=${pkgdir} install || return 1
33   install -Dm0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE