APP=imlib2
VERSION=1.5.1
BUILD=1sml
HOMEPAGE="https://sourceforge.net/projects/enlightenment/"
DOWNLOAD="https://sourceforge.net/projects/enlightenment/files/imlib2-src/1.5.0/imlib2-1.5.0.tar.bz2"
DESC="General image handling library for X11 and Gtk"
REQUIRES="bzip2 zlib libpng giflib libjpeg-turbo libxcb libxau freetype libxext libtiff"

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 COPYING* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
9872aa3c4d45b1e9cbb0b1d0a7d5b47256e35f01a4fe19d84d276096c2da053c55bd28554441f92464d19edf1222b427571ba7b06d716031021ff1f9b4bc9656  imlib2-1.5.1.tar.gz
"
