aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dejagnu/APKBUILD
blob: d3e78f331e4b5e536183ecbf44d8c55e715c5c13 (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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=dejagnu
pkgver=1.6
pkgrel=0
pkgdesc="A front end for testing other programs"
url="http://www.gnu.org/software/dejagnu/"
arch="noarch"
license="GPLv3+"
depends="expect"
depends_dev=""
makedepends="$depends_dev texinfo"
install=""
subpackages="$pkgname-doc"
source="ftp://ftp.gnu.org/gnu/dejagnu/dejagnu-$pkgver.tar.gz"

_builddir="$srcdir"/dejagnu-$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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

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

md5sums="1fdc2eb0d592c4f89d82d24dfdf02f0b  dejagnu-1.6.tar.gz"
sha256sums="00b64a618e2b6b581b16eb9131ee80f721baa2669fa0cdee93c500d1a652d763  dejagnu-1.6.tar.gz"
sha512sums="a494dd5cde8d275b397116049c93e183f5f1731d63660ee8d2f4263b099fc5be7fbddde927fab3ccd5f000c43d50242f94bbb4d95497b915ea53be418bc145bc  dejagnu-1.6.tar.gz"