updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / dillo-hg / PKGBUILD
blobde43c55ffb4ce403fd599fdd5708f597d226c4c5
1 # Contributor: joyfulgirl@archlinux.us
2 pkgname=dillo-hg
3 pkgver=2289
4 pkgrel=1
5 pkgdesc="A small, fast, FLTK-based web browser"
6 arch=('i686' 'x86_64')
7 url="http://www.dillo.org/"
8 license=('GPL3')
9 depends=('fltk' 'libxi' 'libxinerama' 'openssl' 'perl')
10 makedepends=('autoconf' 'automake' 'mercurial')
11 optdepends=('ttf-dejavu: Enable DejaVu Sans support')
12 provides=('dillo=2.0')
13 conflicts=('dillo' 'dillo-cvs' 'dillo2-cvs')
14 backup=('etc/dillo/dillorc' 'etc/dillo/dpidrc')
15 changelog=ChangeLog
16 source=()
17 md5sums=()
19 _hgroot="http://hg.dillo.org/dillo"
20 _hgrepo="dillo"
22 build() {
23   cd $srcdir
25   msg "Connecting to $_hgroot"
26   if [ -d $_hgrepo ]; then
27     cd $_hgrepo
28     hg pull -u
29     msg2 "Finished updating the local repository!"
30   else
31     hg clone $_hgroot $_hgrepo
32     msg2 "Initial pull complete!"
33   fi
35   rm -rf ${srcdir}/${_hgrepo}-build
36   cp -a ${srcdir}/${_hgrepo} ${srcdir}/${_hgrepo}-build
37   cd ${srcdir}/${_hgrepo}-build
39   ./autogen.sh
40   ./configure --prefix=/usr --sysconfdir=/etc/ \
41       --enable-cookies \
42       --enable-png \
43       --enable-jpeg \
44       --enable-gif \
45       --enable-ssl \
46       --enable-threaded-dns
47   make
50 package() {
51   cd ${srcdir}/${_hgrepo}-build
52   make DESTDIR=$pkgdir install
55 # End of file