aboutsummaryrefslogtreecommitdiffstats
path: root/main/ragel/APKBUILD
blob: 18f085b2935703b3df3e5dda7a1f2a622901176f (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
45
46
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ragel
pkgver=6.9
pkgrel=0
pkgdesc="Finite state machine compiler"
url="http://www.complang.org/ragel/"
arch="all"
license="GPLv2+"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://www.colm.net/files/ragel/ragel-$pkgver.tar.gz"

_builddir="$srcdir"/ragel-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="0c3110d7f17f7af4d9cb774443898dc1  ragel-6.9.tar.gz"
sha256sums="6e07be0fab5ca1d9c2d9e177718a018fc666141f594a5d6e7025658620cf660a  ragel-6.9.tar.gz"
sha512sums="46886a37fa0b785574c03ba6581d99bbeaa11ca65cf4fdc37ceef42f4869bd695694cd69b4b974a25cf539f004cb106e3debda17fc26e1a9a6a4295992733dbd  ragel-6.9.tar.gz"