55 lines
1.5 KiB
Bash
55 lines
1.5 KiB
Bash
# Template file for 'sile'
|
|
pkgname=sile
|
|
version=0.9.5
|
|
revision=1
|
|
_libtexpdf_commit=1c9c3722d08e4e44695bdea41cd5a5118c8a120a
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config libtool automake"
|
|
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/archive/v${version}.tar.gz
|
|
https://github.com/simoncozens/libtexpdf/archive/${_libtexpdf_commit}.tar.gz"
|
|
checksum="89f28ee77a1eb928ca30060864b57007b4f447f08dc021dd0d013e363ccb9407
|
|
01b650ed383b7c68869bfe7f45213c1fbb6a7892d770ce9716aba787f8b380ad"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" lua51 lua51-lpeg luaexpat lua51-zlib luafilesystem
|
|
luasocket lua51-luasec"
|
|
fi
|
|
|
|
post_extract() {
|
|
mv ${wrksrc}/../libtexpdf-${_libtexpdf_commit}/* ${wrksrc}/libtexpdf
|
|
rm -rf ${wrksrc}/../libtexpdf-${_libtexpdf_commit}
|
|
}
|
|
|
|
pre_configure() {
|
|
./bootstrap.sh
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|