aboutsummaryrefslogtreecommitdiffstats
path: root/main/re2c/APKBUILD
blob: ef5ad8328c892c676fc6ddd9872e5471686ba170 (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.3
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="9d6914369494ea924a1dd7d96715cdc0  re2c-0.14.3.tar.gz"
sha256sums="1c6806df599f3aef0804b576cfdf64bdba5ad590626dfca2d44e473460917e84  re2c-0.14.3.tar.gz"
sha512sums="c1fa20c9c1e69d085415dde3177cb03688f8a9314dd4854241812f479a2b1e4306c3abbb8f9f31763918afbd1f7a821e7337551a898f6ae57f814c66e59e2382  re2c-0.14.3.tar.gz"