aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dejagnu/APKBUILD
blob: 2adc2963d13afd02a4e13e80ac3c3fed31803ba6 (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.5.3
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="5bda2cdb1af51a80aecce58d6e42bd2f  dejagnu-1.5.3.tar.gz"
sha256sums="099b8e364ca1d6248f8e1d32168c4b12677abff4253bbbb4a8ac8cdd321e3f19  dejagnu-1.5.3.tar.gz"
sha512sums="464eb17862aa4e6a3fbb11db0c97c0b4b0e57d9468d5c36aa75940c65463285c5e53b41657eec6b0a069f47be89fb772f90012c4777c847026d04c744a291500  dejagnu-1.5.3.tar.gz"