updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / elinks-git / PKGBUILD
blob53ae3230d5b67cdb88ce24d09a0df9194d464687
1 # Contributor: joyfulgirl <joyfulgirl@archlinux.us>
2 # Contributor: test1000 <kfs1@online.no>
3 pkgname=elinks-git
4 pkgver=20110711
5 pkgrel=1
6 pkgdesc="A featureful text mode web browser"
7 arch=("i686" "x86_64")
8 url="http://elinks.or.cz"
9 license=('GPL2')
10 conflicts=('elinks')
11 provides=('elinks')
12 depends=('bzip2' 'gzip' 'expat' 'openssl' 
13          'zlib' 'lua' 'libidn' 'tre'
14          'js' 'xz')
15 makedepends=('git')
16 optdepends=('gpm: console mouse support')
17 changelog=ChangeLog
18 source=("elinks.desktop")
19 md5sums=('ef70f6bb7457799a979fb201615369e6')
21 _gitroot="git://repo.or.cz/elinks.git"
22 _gitname="elinks"
24 build() {
25   cd $srcdir
26   msg "Begin checkout..."
28   if [ -d $_gitname ]; then
29       cd $_gitname && git pull origin master
30   else
31       git clone $_gitroot
32   fi
34   msg "Checkout complete or server timeout"
35   msg "Begin make..."
37   rm -rf ${srcdir}/${_gitname}-build
38   cp -a ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
39   cd ${srcdir}/${_gitname}-build
41   ./autogen.sh 
42   ./configure --prefix=/usr \
43               --sysconfdir=/etc \
44               --enable-88-colors \
45               --enable-256-colors \
46               --enable-exmode \
47               --with-lzma
48   make
51 package() {
52   cd ${srcdir}/${_gitname}-build
53   make DESTDIR=${pkgdir} install
54   install -D -m644 ${srcdir}/elinks.desktop \
55                    ${pkgdir}/usr/share/applications/elinks.desktop
56   # Prevent glibc conflicts
57   rm -f ${pkgdir}/usr/share/locale/locale.alias
60 # End of file