### this file is sourced not run
PKGVER=6.10
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=ragel-$PKGVER.tar.gz
MD5SUM=748cae8b50cffe9efcaa5acebc6abf0d
SRC_URL=http://www.colm.net/files/ragel/$TARBALL
BUNDLE=

PDF_TARBALL=ragel-guide-$PKGVER.pdf
PDF_URL=http://www.colm.net/files/ragel/$PDF_TARBALL
PDF_MD5SUM=a2dbb487d13542b5d710131b1ef9cd81

SLACKREQ='' # 
SLACKDESC="ragel: ragel $PKGVER (State Machine compiler)
ragel: 
ragel: Ragel compiles executable finite state machines from regular 
ragel: languages. Ragel targets C, C++, Obj-C, C#, D, Java, Go and Ruby. 
ragel: Ragel state machines can not only recognize byte sequences as regular 
ragel: expression machines do, but can also execute code at arbitrary points 
ragel: in the recognition of a regular language. Code embedding is done 
ragel: using inline operators that do not disrupt the regular language 
ragel: syntax.
ragel: 
ragel: http://www.colm.net/open-source/ragel/
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	TARBALL="$PDF_TARBALL" SRC_URL="$PDF_URL" MD5SUM="$PDF_MD5SUM"
	pkg_check $SRC_DIR $TARBALL $MD5SUM &&
	cp $SRC_DIR/$PDF_TARBALL tmp/pkg
}

### default pkg_package
### build
pkg_build() {
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	install -m644 /tmp/pkg/$PDF_TARBALL /usr/share/doc/ragel
}
