# Template file for 'ed'
pkgname=ed
version=1.8
revision=1
short_desc="GNU Line-oriented text editor"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.gnu.org/software/ed/ed.html"
distfiles="http://ftp.gnu.org/gnu/ed/ed-$version.tar.gz"
checksum=64c138d33b1ea4b9daa88e045da0619e2a43cb99a9d378417d20163f410a7273
long_desc="
 GNU ed is a line-oriented text editor. It is used to create, display, modify
 and otherwise manipulate text files, both interactively and via shell scripts.
 A restricted version of ed, red, can only edit files in the current directory
 and cannot execute shell commands. Ed is the standard text editor in the
 sense that it is the original editor for Unix, and thus widely available."

do_configure() {
	./configure --prefix=/usr \
		CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS"
}

do_build() {
	make ${makejobs}
}

do_install() {
	make DESTDIR=${DESTDIR} install
}

ed_package() {
	pkg_install() {
		vmove usr
	}
}
