updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / emacs-mew-git / PKGBUILD
blob92391994177bee97a9207d278f3c5b303ba6ab48
1 # Contributor: L42y <423300@gmail.com>
2 pkgname=emacs-mew-git
3 pkgver=20110224
4 pkgrel=1
5 arch=('any')
6 pkgdesc="Mew is a mail reader for Emacs"
7 url="http://www.mew.org/"
8 license=('custom')
9 depends=("emacs")
10 conflicts=("emacs-mew")
11 source=()
12 md5sums=()
13 install=emacs-mew-git.install
15 _gitroot="git://github.com/kazu-yamamoto/Mew.git"
16 _gitname="mew"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   ./configure --prefix=/usr
37   make
40 package() {
41   cd "$srcdir/$_gitname-build"
42   make DESTDIR="$pkgdir/" install
43   install -D -m644 $srcdir/$_gitname-build/00copyright $pkgdir/usr/share/licenses/mew/COPYING