APP=ed
VERSION=1.14.2
BUILD=1sml
HOMEPAGE='https://www.gnu.org/software/ed'
DOWNLOAD='https://ftp.gnu.org/gnu/ed/ed-1.14.2.tar.lz'
DESC="Old-school POSIX-compliant text editor"
REQUIRES="musl"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
653bcb89788b2d18c726336fb6f17678ac031fe6ea03a93ff248886a075c867ba5423d5471401e44cbdcce3b4cb766b621ca7b70d76881f5044ec3412767b11f  ed-1.14.2.tar.lz
"
