PKGBUILDs/community/emacs-w3m-cvs/PKGBUILD
2009-10-09 21:15:33 -05:00

40 lines
908 B
Bash

# $Id: PKGBUILD 549 2009-08-03 09:33:52Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: James Cozine <jmcozine@gmail.com>
pkgname="emacs-w3m-cvs"
pkgver=20090803
pkgrel=1
pkgdesc="w3m browser for Emacs (cvs)"
arch=('i686' 'x86_64')
url="http://emacs-w3m.namazu.org/"
license=('GPL')
depends=('emacs' 'w3m')
makedepends=('cvs' 'autoconf')
provides=('emacs-w3m')
conflicts=('emacs-w3m')
install="emacs-w3m-cvs.install"
_cvsroot=":pserver:anonymous:@cvs.namazu.org:/storage/cvsroot"
_cvsmod="emacs-w3m"
build() {
cd "$startdir/src"
if [ -d $_cvsmod/CVS ]; then
cd $_cvsmod
else
cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
cd $_cvsmod
fi
autoconf
cp -r ../$_cvsmod ../$_cvsmod-build
cd ../$_cvsmod-build
./configure --prefix=/usr
make || return 1
make prefix="$startdir/pkg/usr" install || return 1
rm -f $pkgdir/usr/share/info/dir
}