aboutsummaryrefslogtreecommitdiffstats
path: root/main/re2c/APKBUILD
blob: c76677a8a8b6a3c97c79658407f7d85f8f3ab649 (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.13.7.5
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="1cb302b45ad1f4657c112e5b63735e67  re2c-0.13.7.5.tar.gz"
sha256sums="d58afd50579e4564c9fc4218aec860d41b88583ace2ae0a23497b49108f1b461  re2c-0.13.7.5.tar.gz"
sha512sums="71abaec58ac02de6f13cfffec6965d3443c44a72425c4ce8873915daddf077f7f484c2dc702e6533bab2d2f0ca72b34e354771120a4788d9a456b3b3393b6e22  re2c-0.13.7.5.tar.gz"