APP=libxslt
VERSION=1.1.34
BUILD=1sml
HOMEPAGE='http://www.xmlsoft.org/'
DOWNLOAD='ftp://xmlsoft.org/libxslt/libxslt-1.1.34.tar.gz'
DESC="XML transformation library"
REQUIRES="libgcrypt python3 libxml2"

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

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

  # Thank you Arch Linux
  patch -p1 < $SRCDIR/0001-Make-generate-id-deterministic.patch
  patch -p1 < $SRCDIR/0002-Fix-manpage.patch

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

  make
  make install DESTDIR=$PKG

  cp Copyright $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
29d7edf7124cbe79858dda78f59a6ab080ab861ef877eb1ad241e63e31b8d77bd1637a6afb349ac71acff81eaa6b78d32bf124cf735d7656457f23d1c600c4ce  libxslt-1.1.34.tar.lz
78bcec1a74ff5b480b50767ee95b57ad74ec777e1d909cd753a2380c221bf94bd089bfdc3d73ad1b9d443d56ae16813da6a0434f2ee42f4332d241056be3205e  0001-Make-generate-id-deterministic.patch
daa4e26d979bba79f55c42e5e5cec7368e8f666a17353aafe6276da41ab02d018994a8b1a667c28fe5a4c32a48cc8f284629d1f2097d3fb33339f6cde5f73e17  0002-Fix-manpage.patch
"
