aboutsummaryrefslogtreecommitdiffstats
path: root/testing/byacc/APKBUILD
blob: 8c2cc2bea43225442a3f20897e3e9067183a8041 (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
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=byacc
pkgver=20111219
pkgrel=0
pkgdesc="The Berkeley Yacc general-purpose parser generator"
arch="all"
license="Public Domain"
url="http://invisible-island.net/byacc/byacc.html"
source="ftp://invisible-island.net/byacc/byacc-${pkgver}.tgz"
subpackages="$pkgname-doc"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--datadir=/usr/share \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man
	make || return 1
}

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

md5sums="c17542fd9df6e392d495a64f883e29f1  byacc-20111219.tgz"