APP=lcms2
VERSION=2.9
BUILD=1sml
HOMEPAGE="http://www.littlecms.com/"
DOWNLOAD="https://github.com/mm2/Little-CMS/archive/refs/tags/lcms2.9.tar.gz"
DESC="Small-footprint color management engine, version 2"
REQUIRES="libtiff"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
70b1c51fa8d137d5072425e580745ff1fbf49c6e8bb1da0a8adb0647d3b7c095208793cb02de1e8d1a01363b8575fa60c61bedbff99bbec57a44228239cb00e5  lcms2-2.9.tar.gz
"
