diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 118 |
1 files changed, 60 insertions, 58 deletions
@@ -4,47 +4,49 @@ _pkgname=sile pkgname=$_pkgname-luajit-git pkgdesc='Modern typesetting system inspired by TeX' -pkgver=0.10.14.r0.g175595a +pkgver=0.10.15.r65.g7e77f89 pkgrel=1 -arch=('x86_64') -url='https://www.sile-typesetter.org' -license=('MIT') -_lua_deps=('cassowary' - 'cosmo' - 'cliargs' - 'expat' - 'filesystem' - 'linenoise' - 'lpeg' - 'luaepnf' - 'penlight' - 'repl' - 'sec' - 'socket' - 'stdlib' - 'utf8' - 'vstruct' - 'zlib') -depends=('fontconfig' - 'freetype2' - 'harfbuzz' - 'gentium-plus-font' - 'icu' - 'libpng' # this goes with libtexpdf if ever split out to a library package - 'luajit' +arch=(x86_64) +url=https://www.sile-typesetter.org +license=(MIT) +_lua_deps=(bit32 # Upstream Issue: https://github.com/sile-typesetter/sile/issues/1189 + cassowary + compat53 # Not needed for Lua 5.3+, LuaJIT is 5.1(ish) + cosmo + cliargs + expat + filesystem + linenoise + lpeg + luaepnf + penlight + repl + sec + socket + stdlib + utf8 + vstruct + zlib) +depends=(fontconfig + freetype2 + harfbuzz + gentium-plus-font + icu + libpng # this goes with libtexpdf if ever split out to a library package + luajit "${_lua_deps[@]/#/lua51-}" - 'zlib') -# Note find via find-deps; needs rebuilding any time versions of these change; + zlib) +# Note: find via find-deps; needs rebuilding any time versions of these change; # currently missing several because parent packages are missing the provides=() -depends+=('libfreetype.so' - 'libharfbuzz.so' - 'libicudata.so' - 'libicui18n.so' - 'libicuio.so' - 'libicuuc.so') -makedepends=('git') -checkdepends=('poppler') -provides=('libtexpdf.so' +depends+=(libfreetype.so + libharfbuzz.so + libicudata.so + libicui18n.so + libicuio.so + libicuuc.so) +makedepends=(git) +checkdepends=(poppler) +provides=(libtexpdf.so "$_pkgname=$pkgver") conflicts=("$_pkgname") source=("git://github.com/sile-typesetter/$_pkgname.git" @@ -53,36 +55,36 @@ sha256sums=('SKIP' 'SKIP') pkgver() { - cd "$_pkgname" - git describe --long --tags --abbrev=7 --match="v*" HEAD | - sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + 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 + 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 + cd "$_pkgname" + ./configure \ + --prefix /usr \ + --docdir /usr/share/doc/$pkgname \ + --with-luajit \ + --with-system-luarocks + make all } check () { - cd "$_pkgname" - make check + cd "$_pkgname" + make check } package () { - cd "$_pkgname" - make install DESTDIR="$pkgdir" - mv "$pkgdir/usr/share/licenses/"{sile,$pkgname} + cd "$_pkgname" + make install DESTDIR="$pkgdir" + mv "$pkgdir/usr/share/licenses/"{$_pkgname,$pkgname} } |