mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-15 05:37:01 +02:00
54 lines
1.8 KiB
Bash
54 lines
1.8 KiB
Bash
# Template file for 'sile'
|
|
pkgname=sile
|
|
version=0.15.9
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper=rust
|
|
configure_args="--with-system-lua-sources --with-system-luarocks --disable-emdedded-resources"
|
|
hostmakedepends="jq poppler cargo rust pkg-config automake luarocks-lua51"
|
|
makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
|
|
lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
|
|
lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
|
|
lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
|
|
lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
|
|
depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
|
|
lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
|
|
lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
|
|
lua51-vstruct font-sil-gentium"
|
|
short_desc="Modern typesetting system inspired by TeX"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://www.sile-typesetter.org/"
|
|
distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
|
|
checksum=fbda59503b333d82661601db647d1a2ad67aa8b7098e1ef78c6d8216844ac567
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" ${makedepends}"
|
|
fi
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
}
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
export CARGO_TARGET_TRIPLE=${XBPS_CROSS_RUST_TARGET}
|
|
fi
|
|
}
|
|
|
|
libtexpdf_package() {
|
|
short_desc="PDF library extracted from TeX's dvipdfmx"
|
|
pkg_install() {
|
|
vmove "usr/lib/libtexpdf.so.*"
|
|
}
|
|
}
|
|
|
|
libtexpdf-devel_package() {
|
|
short_desc="PDF library extracted from TeX's dvipdfmx - (development files)"
|
|
depends="libtexpdf-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|