On 2016/05/19 02:20, Gleydson Soares wrote:
> I noticed that lua.port.mk is setting MODLUA_EXAMPLEDIR and MODLUA_DOCDIR to
> ${PREFIX}/share/examples/${FULLPKGNAME}/ and
> ${PREFIX}/share/doc/${FULLPKGNAME}/
> respectively.
>
> We must use ${DISTNAME:C/-([0-9]+\.[0-9]+).*$//g} instead of
I noticed that lua.port.mk is setting MODLUA_EXAMPLEDIR and MODLUA_DOCDIR to
${PREFIX}/share/examples/${FULLPKGNAME}/ and
${PREFIX}/share/doc/${FULLPKGNAME}/
respectively.
We must use ${DISTNAME:C/-([0-9]+\.[0-9]+).*$//g} instead of ${FULLPKGNAME}
It will strip the name correctly as expected.