aboutsummaryrefslogtreecommitdiffstats
path: root/testing/html-xml-utils/APKBUILD
blob: 7abef6ceac8d6f46357d96b8708d87d5604944d7 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=html-xml-utils
pkgver=6.9
pkgrel=0
pkgdesc="A number of simple utilities for manipulating HTML and XML files."
url="http://www.w3.org/Tools/HTML-XML-utils/"
arch="all"
license="Custom"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://www.w3.org/Tools/HTML-XML-utils/$pkgname-$pkgver.tar.gz
	getopt-musl-fix.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	sed -e "/doc_DATA = COPYING/d" -i Makefile.in || return 1
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

md5sums="58a1d7c4847be53382c0fac329a0f83d  html-xml-utils-6.9.tar.gz
06e2741e3277a4329e8e312236340fba  getopt-musl-fix.patch"
sha256sums="9cf401dc84ca01752adf1f2d9862c4f227bb089504ed9d03d7fd40603e87fab2  html-xml-utils-6.9.tar.gz
a30b4f34c4f2fc3b5ad6606c3e1d6d0f6a08ff1553113d85caee85b7bc336a05  getopt-musl-fix.patch"
sha512sums="590a04e91130d7daecc4c1935808d872f3d49967be345060039bae5986b70be3be40104bc215524017a08c5492671a1fd96b63028f26f84faa400a9fbd283778  html-xml-utils-6.9.tar.gz
7b6d03798e634a72402916cdfaf69668bf19d0dc6d629860c798a6468f8077906e3ada6d1ff390cebba505ccd118cfa7f7b2e23301ac72573bde4b4eb14c94ce  getopt-musl-fix.patch"