# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxpm
version=3.5.13
build=1sml
homepage="https://xorg.freedesktop.org/"
download="https://www.x.org/releases/individual/lib/libXpm-$version.tar.bz2"
desc="X11 pixmap library"
requires="libxext libxt"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf libXpm-$version

  tar xf $srcdir/libXpm-$version.tar.?z*
  cd libXpm-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix= \
    --disable-static 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
28a4f26e125e9d3b9b9c381449182b977a1b7904a57b064ecc7335532566beb48b983b23758648aeaca331e421735e62c370098d59b36b3b904425813a7dd70d  libXpm-3.5.13.tar.lz
"
