void-packages/srcpkgs/sile/template
2019-07-30 14:18:26 +02:00

42 lines
1.1 KiB
Bash

# Template file for 'sile'
pkgname=sile
version=0.9.5.1
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="harfbuzz-devel lua51-devel lua51-lpeg luaexpat
lua51-zlib luafilesystem luasocket lua51-luasec"
depends="lua51-lpeg luaexpat lua51-zlib luafilesystem luasocket
lua51-luasec"
short_desc="Modern typesetting system inspired by TeX"
maintainer="John <johnz@posteo.net>"
license="MIT"
homepage="http://www.sile-typesetter.org/"
distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" lua51 lua51-lpeg luaexpat lua51-zlib luafilesystem
luasocket lua51-luasec"
fi
post_install() {
vlicense LICENSE
}
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"
}
}