aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xmlindent/APKBUILD
blob: d6ee4895f8e0f160683a2ca4099e8aa3d89fac09 (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=xmlindent
pkgver=0.2.17
pkgrel=0
pkgdesc="An XML indenting utility"
url="http://xmlindent.sourceforge.net/"
arch="all"
license="GPL"
depends=""
makedepends="flex-dev"
install=""
subpackages="$pkgname-doc"
source="http://sourceforge.net/projects/xmlindent/files/xmlindent/$pkgver/xmlindent-$pkgver.tar.gz"

_builddir="$srcdir"/xmlindent-$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
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make PREFIX="$pkgdir"/usr install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="c08be3867ee906ca69b949d55a4f3780  xmlindent-0.2.17.tar.gz"
sha256sums="3a0f6887b696087b8dad4901d3994954214dbbd78499eaf622b9a85060cf254c  xmlindent-0.2.17.tar.gz"
sha512sums="ab4b46dbd68f29e7adba6283485eb9d1c614ece640c18e1eabbe7f0e1e6f27f14d00d694e4e1981aaf66e0ddcf208c6cb2c80dda1cbeb0ceb1a40987a419f716  xmlindent-0.2.17.tar.gz"