summaryrefslogtreecommitdiffstats
path: root/main/byacc/APKBUILD
blob: e032b0856a7ef6e2ce100b89bc73ae190ad84ec1 (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=20141128
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="acb0ff0fb6cc414a6b50c799794b2425  byacc-20141128.tgz"
sha256sums="f517fc21f08c1a1f010177357df58fc64eb1131011e5dcd48c19fe44c47198d0  byacc-20141128.tgz"
sha512sums="a41debde13d489e47c635bd61ce691e7b0a1470a91df3d16e43bd7c0985064708c4d69b8fabe2134ac4d06b17e484ea9c0b7efc7a624e7d8b7ed850e89afd71c  byacc-20141128.tgz"