APKBUILD 863 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=re2c
Leo's avatar
Leo committed
4
pkgver=1.2.1
Natanael Copa's avatar
Natanael Copa committed
5 6 7
pkgrel=0
pkgdesc="A tool for writing fast and flexible scanners in C from regular expressions"
url="http://www.re2c.org"
8
arch="all"
9
license="Public-Domain"
10
checkdepends="bash"
Natanael Copa's avatar
Natanael Copa committed
11
subpackages="$pkgname-doc"
Leo's avatar
Leo committed
12
source="https://github.com/skvadrik/re2c/releases/download/$pkgver/re2c-$pkgver.tar.xz"
Natanael Copa's avatar
Natanael Copa committed
13 14

build() {
15
	cd "$builddir"
16 17 18 19 20 21
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
22 23 24 25 26 27 28
		--infodir=/usr/share/info
	make
}

check() {
	cd "$builddir"
	make tests
Natanael Copa's avatar
Natanael Copa committed
29 30 31
}

package() {
32 33
	cd "$builddir"
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
34 35
}

Leo's avatar
Leo committed
36
sha512sums="c90f45ae435968e950d2340b540269a042201f1f53d7ea067b6d3d9feec063f66559ba970d404d82bfa7b75b9a074328caaa62304d4d876af7c12740d100ef58  re2c-1.2.1.tar.xz"