# Maintainer: Caleb Maclennan # Maintainer: Adrián Pérez de Castro _pkgname=sile pkgname=$_pkgname-luajit-git pkgdesc='Modern typesetting system inspired by TeX' pkgver=0.11.1.r187.g324fd91 pkgrel=1 arch=(x86_64) url=https://www.sile-typesetter.org license=(MIT) _luadeps=(bit32 cassowary cliargs compat53 # Not needed for Lua 5.3+, LuaJIT is 5.1(ish) cosmo expat filesystem linenoise lpeg luaepnf luarepl luautf8 penlight sec socket stdlib vstruct zlib) depends=(glibc fontconfig freetype2 harfbuzz gentium-plus-font git icu libpng # this goes with libtexpdf if ever split out to a library package luajit "${_luadeps[@]/#/lua51-}" zlib) depends+=(libfreetype.so libharfbuzz.so libicudata.so libicui18n.so libicuio.so libicuuc.so) optdepends=('libertinus-font: math package default font') checkdepends=(poppler) provides=(libtexpdf.so "$_pkgname=$pkgver") conflicts=("$_pkgname") source=("git://github.com/sile-typesetter/$_pkgname.git" "git://github.com/sile-typesetter/libtexpdf.git") sha256sums=('SKIP' 'SKIP') pkgver() { cd "$_pkgname" git describe --long --tags --abbrev=7 --match="v*" HEAD | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare () { cd "$_pkgname" git submodule init git config submodule.libtexpdf.url "$srcdir/libtexpdf" git submodule update ./bootstrap.sh } build () { cd "$_pkgname" ./configure \ --prefix /usr \ --docdir /usr/share/doc/$pkgname \ --with-luajit \ --with-system-luarocks make all } check () { cd "$_pkgname" make check } package () { cd "$_pkgname" make install DESTDIR="$pkgdir" mv "$pkgdir/usr/share/licenses/"{$_pkgname,$pkgname} }