aboutsummaryrefslogtreecommitdiffstats
path: root/community/html-xml-utils/APKBUILD
blob: 5e34c1716ff5ea66039853131a2f55ec4ee326f9 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=html-xml-utils
pkgver=7.8
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
	last-test.patch"

builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	default_prepare
	sed -e "/doc_DATA = COPYING/d" \
	-i Makefile.in
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--disable-dependency-tracking
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"
	install -D -m 644 COPYING \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="8d3a242203de099b36ca78a8d84571ecc5d8673855ee613f98edc48d388230367f40b87006f7b429e2927026300626bed7ff7f146df317d078e332091d290930  html-xml-utils-7.8.tar.gz
7b6d03798e634a72402916cdfaf69668bf19d0dc6d629860c798a6468f8077906e3ada6d1ff390cebba505ccd118cfa7f7b2e23301ac72573bde4b4eb14c94ce  getopt-musl-fix.patch
fdfaa8ff145beaf98203f834ef51763d14f5eeb1ba366578a645bfc3a0d811c2615354bea987554d6a8b131504298512238af550646e2826e00329aceee365ed  last-test.patch"