aboutsummaryrefslogtreecommitdiffstats
path: root/community/html-xml-utils/APKBUILD
blob: 81845514a70f80f76cf3bcd09b029ead25568db4 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=html-xml-utils
pkgver=7.6
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="ea9faec48b9f8a8e4c2ce4b4f504bf1641d83f624366a162ffd8cba1b4a3cb5ae019f82c472986dc8cfb97454b8a469b2e8e11852b6ed93ed5bce84528a07baa  html-xml-utils-7.6.tar.gz
7b6d03798e634a72402916cdfaf69668bf19d0dc6d629860c798a6468f8077906e3ada6d1ff390cebba505ccd118cfa7f7b2e23301ac72573bde4b4eb14c94ce  getopt-musl-fix.patch"