1 # Maintainer: Marcin Karpezo <sirmacik at gmail dot com>
5 pkgdesc="Micro-emacs version customized by Linus Torvalds"
7 url="http://git.kernel.org/?p=editors/uemacs/uemacs.git;a=summary"
11 source=(helplocation.patch)
12 md5sums=('9e4e92614c846a541b034cd115f4140f')
15 _gitroot=" git://git.kernel.org/pub/scm/editors/uemacs/${_gitname}.git"
20 if [[ -d ${startdir}/src/${_gitname} ]]; then
22 git pull origin || return 1
24 git clone ${_gitroot} || return 1
28 mkdir -p ${pkgdir}/usr/bin
29 mkdir -p ${pkgdir}/usr/share/doc/uemacs
31 # patch to make uemacs look for a helpfile in the correct location
32 patch -p1 < ../helplocation.patch || return 1
34 sed -i "s@BINDIR=/usr/bin@BINDIR=${pkgdir}/usr/bin@;s@LIBDIR=/usr/lib@LIBDIR=${pkgdir}/usr/share/doc/uemacs@" Makefile >> Makefile
36 make install || return 1