aboutsummaryrefslogtreecommitdiffstats
path: root/main/byacc/APKBUILD
blob: 2f00b09a5d64433b219dde82f07854ab8b2c706a (plain) (blame)
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
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=byacc
pkgver=20191119
pkgrel=0
pkgdesc="The Berkeley Yacc general-purpose parser generator"
url="https://invisible-island.net/byacc/byacc.html"
arch="all"
options="!checkroot"
license="Public-Domain"
depends="!bison"
subpackages="$pkgname-doc"
source="https://invisible-mirror.net/archives/byacc/byacc-$pkgver.tgz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="26d341be36a251968eb1e19b7e1f88c4a6d1a28a934d3fc459343dea8eeb12053453eb615599bb0fd1cd6203dccc0fa4975170bd7daf90cbd246d8ea8efb0fa3  byacc-20191119.tgz"