aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mxml/APKBUILD
blob: 3c0d4f8007f648549928d50dbf8b6f1f2a3cc6e4 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mxml
pkgver=2.7
pkgrel=0
pkgdesc="small XML library that you can use to read and write XML files"
url="http://www.msweet.org/projects.php?Z3"
arch="all"
license="LGPLv2"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.msweet.org/files/project3/mxml-$pkgver.tar.gz"

_builddir="$srcdir"/mxml-$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"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make BUILDROOT="$pkgdir" install || return 1
}

md5sums="76f2ae49bf0f5745d5cb5d9507774dc9  mxml-2.7.tar.gz"
sha256sums="a77200ee4c1e1cf2eb531595ec17ce31805760699d260915496c39d3388eb803  mxml-2.7.tar.gz"
sha512sums="9fac34975c35d0ff9686a20a882824040b0b96b38ab9f1f5b1ef24a323668974860d4d977bb07c90a3e2b3410a2d8358eec1682b2c7ff2cda7f36f630ff97007  mxml-2.7.tar.gz"