summaryrefslogtreecommitdiffstats
path: root/main/re2c/APKBUILD
blob: 2515344b34ba55505a7ef5e44e4968637b54e6a7 (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
36
37
38
39
40
41
42
43
44
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=re2c
pkgver=0.14.2
pkgrel=0
pkgdesc="A tool for writing fast and flexible scanners in C from regular expressions"
url="http://www.re2c.org"
arch="all"
license="Public Domain"
depends=
makedepends=
install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
        cd "$_builddir"
        # As Gentoo build, fix perms
        chmod -R u+rw .
}

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

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

md5sums="b565233bb46e4cbb8d006ddc1989038e  re2c-0.14.2.tar.gz"
sha256sums="a702eb63977af4715555edb41eba3b47bbfdcdb44b566d146869a7db022f1c30  re2c-0.14.2.tar.gz"
sha512sums="25e682aafe434f838c41f01588f69b4979c73bab8562f56d1b1db656753c43a606b13eeb0e6542f793cdb73d001c304c61811630f7001131edd3eb76248a0a60  re2c-0.14.2.tar.gz"