diff options
Diffstat (limited to 'community/elinks/PKGBUILD')
-rw-r--r-- | community/elinks/PKGBUILD | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/community/elinks/PKGBUILD b/community/elinks/PKGBUILD index 0411750a5..d93e15ab6 100644 --- a/community/elinks/PKGBUILD +++ b/community/elinks/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 40826 2011-02-28 13:59:43Z spupykin $ +# $Id: PKGBUILD 47522 2011-05-23 18:32:02Z kkeen $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Maintainer: Andrea Scarpino <andrea@archlinux.org> # Contributor: damir <damir@archlinux.org> @@ -6,22 +6,38 @@ pkgname=elinks pkgver=0.13 -pkgrel=4 +_commit="fe83703714fd5e16401dcd152d9bdcec6036424d" +pkgrel=5 pkgdesc="An advanced and well-established feature-rich text mode web browser." arch=("i686" "x86_64" 'mips64el') url="http://elinks.or.cz" license=('GPL') depends=('bzip2' 'expat>=2.0' 'gpm>=1.20.4' 'openssl' 'lua>=5.1.1' 'libidn' 'spidermonkey>=1.7.0' 'gc' 'tre' 'smbclient') -_commit="dfc666dd754491a9c986fbd19179b354acde30b9" -#source=("elinks-$pkgver-${_commit}.tar.gz::http://repo.or.cz/w/elinks.git/snapshot/${_commit}.tar.gz" -source=("http://arch.p5n.pp.ru/~sergej/dl/elinks-$pkgver-${_commit}.tar.gz" - "${pkgname}.desktop") -md5sums=('c41d66285654d72c197a99973393bf06' - 'ef70f6bb7457799a979fb201615369e6') +source=() +md5sums=() + +__gitroot="http://elinks.cz/elinks.git" +__gitname="elinks" build() { - cd elinks || cd `find $srcdir -maxdepth 1 -type d -name elinks-$pkgver\*` + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d $__gitname ] ; then + cd $__gitname && git pull origin + msg "The local files are updated." + else + git clone $__gitroot + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/$__gitname-build" + git clone "$srcdir/$__gitname" "$srcdir/$__gitname-build" + cd "$srcdir/$__gitname-build" + git checkout "$_commit" [ -x configure ] || sh autogen.sh ./configure --prefix=/usr --mandir=/usr/share/man \ @@ -30,9 +46,13 @@ build() { --enable-leds --enable-256-colors --enable-html-highlight \ --with-zlib make - make DESTDIR=${pkgdir} install - rm -f ${pkgdir}/usr/share/locale/locale.alias +} + +package() { + cd "$srcdir/$__gitname-build" + make DESTDIR="$pkgdir" install + rm -f "$pkgdir/usr/share/locale/locale.alias" - install -D -m644 ${srcdir}/${pkgname}.desktop \ - ${pkgdir}/usr/share/applications/${pkgname}.desktop + install -D -m644 "$srcdir/$__gitname-build/contrib/debian/$pkgname.desktop" \ + "$pkgdir/usr/share/applications/$pkgname.desktop" } |