# Maintainer: Caleb Maclennan # Contributor: Adrián Pérez de Castro pkgname=sile-git pkgdesc='Modern typesetting system inspired by TeX' pkgver=0.9.5.1.r271.g7e33b81 _branch='testing' pkgrel=1 arch=(any) url='http://www.sile-typesetter.org' license=('MIT') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") _lua_deps=('bit32' 'luaepnf' 'lpeg' 'cassowary>=2.2' 'linenoise' 'zlib' 'cliargs' 'luaepnf' 'filesystem' 'repl' 'sec' 'socket' 'penlight' 'stdlib' 'vstruct') depends=('fontconfig' 'harfbuzz>=1.4.2' "${_lua_deps[@]/#/lua-}" 'icu' 'ttf-gentium-plus') optmakedepents=('luajit') makedepends=('git' 'lua-busted' 'lua-luacov=0.8' 'lua-luacov-coveralls') source=("git://github.com/alerque/${pkgname%-git}.git#branch=$_branch") sha512sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare () { cd "$srcdir/${pkgname%-git}" ./bootstrap.sh } build () { cd "$srcdir/${pkgname%-git}" ./configure --prefix=/usr --with-system-luarocks make } package () { cd "$srcdir/${pkgname%-git}" make install DESTDIR="$pkgdir/" }