aboutsummaryrefslogtreecommitdiffstats
path: root/community/html-xml-utils/APKBUILD
blob: a1616c7bf429b43a2460ce1afb36f8ae6028ae77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=html-xml-utils
pkgver=7.1
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
}

md5sums="3b30e2074de8665c82f4e503178c3efd  html-xml-utils-7.1.tar.gz
06e2741e3277a4329e8e312236340fba  getopt-musl-fix.patch"
sha256sums="ec0efd2263b864bb7e0ae5c59f02c43c5d8aebd0e1c0d2bfce391e665766d56e  html-xml-utils-7.1.tar.gz
a30b4f34c4f2fc3b5ad6606c3e1d6d0f6a08ff1553113d85caee85b7bc336a05  getopt-musl-fix.patch"
sha512sums="a17328500552ad28136a08d0c7dd992d53afbc853ffd8930b516b3218915f4f159234f27af66d135a51dc25eb6c35e6f14d6f0006bdfc2abf351ac8298334d48  html-xml-utils-7.1.tar.gz
7b6d03798e634a72402916cdfaf69668bf19d0dc6d629860c798a6468f8077906e3ada6d1ff390cebba505ccd118cfa7f7b2e23301ac72573bde4b4eb14c94ce  getopt-musl-fix.patch"