#!/bin/bash # emacs # # Douglas Thrift # # $Id$ name=emacs version=21.4a revision=0 categories=(editors) description='Extensible, customizable, self-documenting real-time display editor' url='http://www.gnu.org/software/emacs/emacs.html' depends=('base/ncurses') sources=(`site_gnu`) sourcedir=$name-${version%%a} function build() { cd $source/$sourcedir || return $? ./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --with-x=no || return $? gmake && gmake install prefix=$package/usr infodir=$package/usr/share/info mandir=$package/usr/share/man cd $package/usr/share/info for info in !(dir|*.info); do case $info in (*-+([0-9])) mv $info "${info%-+([0-9])}.info-${info##*-}" ;; (*) mv $info $info.info ;; esac done }