diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch new file mode 100644 index 00000000000..fabc9e1c50e --- /dev/null +++ b/srcpkgs/sile/patches/lua.patch @@ -0,0 +1,8 @@ +--- sile.in 2016-06-09 10:57:37.000000000 +0000 ++++ - 2018-06-21 20:22:13.514804438 +0000 +@@ -1,4 +1,4 @@ +-#!@LUA@ ++#!@LUA@@LUA_VERSION@ + package.path = (os.getenv("SILE_PATH") and + os.getenv("SILE_PATH").."/?.lua" or "") .. ';?.lua;@SILE_PATH@/?.lua;@SILE_PATH@/lua-libraries/?.lua;@SILE_PATH@/lua-libraries/?/init.lua;lua-libraries/?.lua;lua-libraries/?/init.lua;' .. package.path + package.cpath = package.cpath .. ";core/?.@SHARED_LIB_EXT@;@SILE_LIB_PATH@/?.@SHARED_LIB_EXT@;" diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template new file mode 100644 index 00000000000..f8d0d53e293 --- /dev/null +++ b/srcpkgs/sile/template @@ -0,0 +1,27 @@ +# Template file for 'sile' +pkgname=sile +version=0.9.4 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config" +makedepends="harfbuzz-devel lua51-devel lua51-lpeg luaexpat + lua51-zlib luafilesystem" +depends="lua51-lpeg luaexpat lua51-zlib luafilesystem" +short_desc="Modern typesetting system inspired by TeX" +maintainer="John " +license="MIT" +homepage="http://www.sile-typesetter.org/" +distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2" +checksum=1c696679e5243d0448705db86227eec57a000846f02a964f882b7978c46954d5 + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" lua51 lua51-lpeg luaexpat lua51-zlib luafilesystem" +fi + +post_extract() { + sed 's/rm -f core/rm -f/' -i configure +} + +post_install() { + vlicense LICENSE +}