# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=html-xml-utils pkgver=7.4 pkgrel=0 pkgdesc="A number of simple utilities for manipulating HTML and XML files." url="https://www.w3.org/Tools/HTML-XML-utils/" arch="all" license="Custom" subpackages="$pkgname-doc" source="$url/$pkgname-$pkgver.tar.gz getopt-musl-fix.patch" builddir="$srcdir"/$pkgname-$pkgver prepare() { default_prepare || return 1 sed \ -e "/doc_DATA = COPYING/d" \ -i Makefile.in \ || return 1 } build() { cd "$builddir" ./configure \ --prefix=/usr \ --disable-dependency-tracking \ || return 1 make \ || return 1 } package() { cd "$builddir" make install \ DESTDIR="$pkgdir" \ || return 1 install -D -m 644 \ COPYING \ "$pkgdir"/usr/share/licenses/$pkgname/COPYING \ || return 1 } sha512sums="88a527c29ef23b34ecb778085aafd399943764a18a3e4b39ff27b3e2cc3effa84b9ffe7c2a0df80fb27a38a7e4d4ceef6db91da46cbb2b4f9fd59903d4868a20 html-xml-utils-7.4.tar.gz 7b6d03798e634a72402916cdfaf69668bf19d0dc6d629860c798a6468f8077906e3ada6d1ff390cebba505ccd118cfa7f7b2e23301ac72573bde4b4eb14c94ce getopt-musl-fix.patch"