# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-alien-libxml2
pkgver=0.19
pkgrel=4
pkgdesc="Install the C libxml2 library on your system"
arch=(any)
license=('PerlArtistic')
url="https://metacpan.org/release/Alien-Libxml2"
depends=('libxml2' 'perl-alien-build')
makedepends=('perl-alien-build-plugin-download-gitlab' 'perl-html-parser' 'perl-sort-versions'
             'perl-test2-suite' 'perl-uri')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Libxml2-$pkgver.tar.gz")
sha512sums=('02e4fab4fa4beacec3a6c932d11a3a8ea6648c084d5cb12a332b0e0e2f06eed595783d7673285bdf5e804a5a09bae1beb94261d6cfb4677decc7f1cfee3a3a76')

build() {
  cd Alien-Libxml2-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Alien-Libxml2-$pkgver
  make test
}

package() {
  cd Alien-Libxml2-$pkgver
  make DESTDIR="$pkgdir" install
}
