description="Takes text input, do some operation on it, and outputs the modified text."
url="http://www.gnu.org/software/sed//sed.html"

packager="Grat-OS Team"
maintainer="rems"

name=sed
version=4.9
release=2

source=(https://ftp.gnu.org/pub/gnu/sed/$name-$version.tar.xz)

build() {
  cd sed-$version

  ./configure --prefix=/usr

  make
  make html

  make check || true

  make DESTDIR=$PKG install

  install -d m755 $PKG/usr/share/doc/sed-$version
  install -m644 doc/sed.html $PKG/usr/share/doc/sed-$version
}
