APP=libpng
VERSION=1.6.37
BUILD=1sml
HOMEPAGE='http://www.libpng.org/pub/png/libpng.html'
DOWNLOAD='https://download.sourceforge.net/libpng/libpng-1.6.37.tar.xz'
DESC="Portable Network Graphics library"
REQUIRES="zlib"

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

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

  ./configure \
    --prefix="" \
    --disable-static 

  make
  make install DESTDIR=$PKG

  cp LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
fb2f6d82ea4ae1206d6857fb471b71c56aa84a64a6943174b6da96cbe8fa38e2580401647981d9b1488a6fa8d43b661db11995fdacdab01f21911e40cb343ed0  libpng-1.6.37.tar.lz
"
