#!/bin/sh

name="e3"
title="e3"
package="e3"
version="1.61"
build="1"
noarch="n"
build_info="Standard build."

info="A micro text editor written in assembler."
info_pl="Mikroedytor tekstu napisany w assemblerze."
desc="e3 is a text micro editor with a compressed code size less than
10000 bytes. Except for 'undo' and 'syntax highlighting', e3
supports all of the basic functions one expects. If you have
installed the stream editor 'sed' or 'ex' you can use these tools
as sub-processes, getting the full power of regular expressions."
desc_pl="e3 jest mikroedytorem tesktu o rozmiarze skompresowanego
kodu mniejszym niż 10000 bajtów. Poza 'cofnij' i podświetlaniem
składni, e3 obsługuje wszystkie podstawowe funkcje, jakich można
oczekiwać od tego typu programu. Jeśli masz zainstalowany edytor
strumieniowy sed lub ex, możesz użyć tych narzędzi jako
podprocesów, otrzymując pełną moc wyrażeń regularnych."
category="text/editor"
environment="console/text"
contact="$name@packages.packware.gnu.pl"
vendor="The Packware Project"
vendor_id="pw"

requires=""
obsoletes=""
conflicts=""

docs_source="ChangeLog,COPYING.GPL,COPYRIGHT,README"
docs_cwd=""

# Don't strip e3!
strip_bin="n"
reset_own="y"
reset_dir="y"
reset_fil="y"
delete_cat="y"

. /usr/src/tgz/lib/builder.defs

add_source http://www.sax.de/~adlibit/$name-$version.tar.gz

apply_patch e3-pliterki.pw.patch
apply_patch e3-shortjump.pw.patch
apply_patch e3-no_gzexe.pw.patch
apply_patch e3-symlinks.pw.patch

make_option PREFIX=/usr

install_option PREFIX=$pkg_main/usr

parent_package="$package"
write_info main

cd $src1

do_make
do_install

rm -f /tmp/e3~

make_docs

make_package main

clean_up
