# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xtrans
version=1.4.0
build=2sml
homepage="https://xorg.freedesktop.org/"
download="https://xorg.freedesktop.org/releases/individual/lib/xtrans-$version.tar.bz2"
desc="X transport library"
requires="libxml2 libxslt xmlto"

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

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

build() {
  ./configure \
    --prefix="" \
    --docdir="/share/doc/$app-$version"

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
b3053dfc252f98aadf37ec3bd3532c2ccaad8d1e46bbb25f4ab6fc872bb01a303055ee5daa9537f6f7934464c22fc3493decad38f38920c8397e1469df3ddaa2  xtrans-1.4.0.tar.lz
"
