aboutsummaryrefslogtreecommitdiffstats
path: root/community/html-xml-utils/APKBUILD
blob: bbd7c330063162b44c6b3d9c6ee0527234161f53 (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
52
53
54
55
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=html-xml-utils
pkgver=7.0
pkgrel=1
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"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
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="b513432f7f084c158495815cc5118f0f  html-xml-utils-7.0.tar.gz
06e2741e3277a4329e8e312236340fba  getopt-musl-fix.patch"
sha256sums="e7d30de4fb4731f3ecd4622ac30db9fb82e1aa0ab190ae13e457360eea9460b0  html-xml-utils-7.0.tar.gz
a30b4f34c4f2fc3b5ad6606c3e1d6d0f6a08ff1553113d85caee85b7bc336a05  getopt-musl-fix.patch"
sha512sums="305578c135972c64e048962734c4794ed3a386a4bc3194cb14277fbe5bfcdb01a13a32bcf751d1216b3e89244ab778235c8cfb12d412fdfe1bf26229b5e23732  html-xml-utils-7.0.tar.gz
7b6d03798e634a72402916cdfaf69668bf19d0dc6d629860c798a6468f8077906e3ada6d1ff390cebba505ccd118cfa7f7b2e23301ac72573bde4b4eb14c94ce  getopt-musl-fix.patch"