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

_builddir="$srcdir/$pkgname-$pkgver"
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

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

sha512sums="62cb0d0c0465a2f16f7dec4429c18434840e75efdb5f413efe58c2d2283fb86ec42ce834179d084a1c25340e008167247a512c248d7cfdf16f06c2d6df21d3b0  byacc-20170430.tgz"