void-packages/srcpkgs/sile/template
Đoàn Trần Công Danh a92d370caa srcpkgs: add patch_args=-Np0 en-mass
Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
2021-06-20 13:17:29 +07:00

43 lines
1.2 KiB
Bash

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