# Template file for 'lua-lpeg' pkgname=lua-lpeg version=1.0.0 revision=2 hostmakedepends="lua" makedepends="lua-devel" depends="lua>=5.3" short_desc="Pattern-matching library for Lua based on Parsing Expression Grammars" maintainer="Tj Vanderpoel (bougyman) " license="MIT" homepage="http://www.inf.puc-rio.br/~roberto/lpeg/" distfiles="${homepage}/${pkgname#lua-}-${version}.tar.gz" wrksrc="${pkgname#lua-}-${version}" checksum=10190ae758a22a16415429a9eb70344cf29cbda738a6962a9f94a732340abf8e CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.3" do_build() { make CC=$CC CFLAGS="$CFLAGS -fPIC" LUADIR=${XBPS_CROSS_BASE}/usr/include/lua5.3 ${makejobs} } do_install() { vinstall lpeg.so 755 usr/lib/lua/5.3/ vinstall re.lua 644 usr/share/lua/5.3/ vlicense lpeg.html }