aboutsummaryrefslogtreecommitdiffstats
path: root/main/byacc/APKBUILD
blob: f7103793ddcda8be21b915e6c275fd54fa9860f2 (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
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=byacc
pkgver=20150711
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="2700401030583c4e9169ac7ea7d08de8  byacc-20150711.tgz"
sha256sums="c354e4ee14c4a1bf11e55dde9275011d14887ef066406a088b6fa56caf039248  byacc-20150711.tgz"
sha512sums="348558046acca31a39e8df480ae4c46ad03a1b073a51877a8981914bce65e8922e83e14c45eecd0e122c9d3d018cd4b6ab8c7f29b8dbfa13d648f2f86104a4e9  byacc-20150711.tgz"