## Package Details: sile-git 0.12.5.r44.gbca0f36-1

Git Clone URL: https://aur.archlinux.org/sile-git.git (read-only, click to copy) sile-git Modern typesetting system inspired by TeX https://www.sile-typesetter.org MIT sile libtexpdf.so, sile alerque alerque alerque 3 0.000000 2015-06-16 11:53 (UTC) 2022-04-18 11:43 (UTC)

### Sources (2)

#### alerque commented on 2020-10-16 20:06 (UTC)

@fbrennan Oh ya, and all my AUR packages are maintained in single repo on Github if you ever want to PR against them.

#### alerque commented on 2020-10-16 20:01 (UTC)

@fbrennan I understand. It's not that heretical to me, but it goes against Arch packaging principles to bundle libraries. That's actually one of the reasons I've been changing SILE upstream to not bundle libraries itself when they are available as Luarocks.

By the way if you are interested I host this package in my Arch package repository along with all the dependencies. A good number of the AUR Luarocks packages I actively maintain, and the few that I don't I keep pretty close eyes on when updating the builds. Also as far as trust issues go, Luarocks itself is probably a weaker link than AUR. Yes the AUR can be kind of a wild west, but at least it has a paper trail!

The autoconf/automake deps should not be included because they are part of base-devel which is considered a required package to build from the AUR. Anything in there should not be listed as a make dependency. Luarocks is only a dependency for your version of the package, it should not be for the no-bundle version (although it probably will become so soon given what I want to do with SILE packages).

#### fbrennan commented on 2020-10-16 08:50 (UTC)

Hello. Here is a version of this PKGBUILD which does not use the system Luarocks:

This is heretical so I'm not expecting you to make this default. I, however, prefer it, as many of the Luarocks are AUR dependencies, and trusting that many AUR dependencies has been in my experience extremely unwise.

Also, you are missing a few dependencies, changes which you should port from my version of this PKGBUILD.

Depends: * luarocks

Make depends: * automake * autoconf

#### alerque commented on 2020-01-12 07:21 (UTC) (edited on 2020-01-14 04:38 (UTC) by alerque)

@escondida Thanks for those pointers, I've finally included the git submodule in the sources as you described.

@all Note this sile-git package is back to tracking upstream HEAD changes. It had been tracking my fork for a while because of patches that were not in master.

One thing currently in master that is less than ideal is that building the manual requires downloading some fonts into the build tree. Hopefully that will be addressed in future releases to make the -git build more light weight.

#### escondida commented on 2017-10-27 02:14 (UTC)

Hi, caleb, thanks for packaging sile. You can stress the Internet of downloaders a little less by adding the libtexpdf submodule to the sources array and adding a quick prepare() function: prepare() { cd sile git submodule init git config submodule.libtexpdf.url "$srcdir/libtexpdf" git submodule update ./bootstrap.sh } (Though bootstrap.sh would also make sense in build(), since it makes sense in either place I've left it in.) Side note: all PKGBUILD functions begin in$srcdir, so you can simplify your cds, if you'd like; cd sile, as above, will work as is (-:

#### vgivanovic commented on 2017-02-21 17:40 (UTC)

@caleb Thanks for the explanations. I'll drop by the SILE Gitter chat room ... next week. BTW, Fontconfig hasn't given me any problems so far. I do have quite a number of fonts installed (all Google fonts, for example) if that makes a difference to SILE.

#### alerque commented on 2017-02-21 08:13 (UTC) (edited on 2017-02-21 08:13 (UTC) by alerque)

@vgivanovic There are some reasons not to include the whole examples directory on installation. Perhaps one or two examples could work, but including the whole thing would be problematic. In any event you don't have to clone the SILE repo to get them, you can just get just the ones you want to play with if you like. The 'Sawarabi Gothic' thing is not coming from SILE, that's going to be your system's default font as understood by Fontconfig. It sounds like you have some stuff a little cross-wired on your system. The Gentium default is coded into SILE, but that shouldn't be a problem for you since the Arch package for it should be a dependency. That too might change (see https://github.com/simoncozens/sile/issues/369) but the fact that it didn't find that suggests something is wrong with Fontconfig on your system. Why don't you drop by the SILE Gitter chat room (https://gitter.im/simoncozens/sile) and I'll help you work through getting SILE running and if there are any parts that the packages can make easier.

#### vgivanovic commented on 2017-02-20 19:32 (UTC)

I can't get sile to work. ~/tmp> cat hello.sil \begin{document} Hello SILE! \end{document} ~/tmp> sile hello.sil This is SILE 0.9.4 <hello.sil> ! Font 'Gentium' not available, falling back to 'Sawarabi Gothic' [1] (What an odd choice of fallback font...) If I add '\font[family="Gentium Plus",size=12pt]' after '\begin{document}' I get exactly the same output. Note: ~/tmp> fc-list | fgrep "Gentium Plus" /usr/share/fonts/TTF/GentiumPlusCompact-I.ttf: Gentium Plus Compact:style=Italic /usr/share/fonts/TTF/GentiumPlusCompact-R.ttf: Gentium Plus Compact:style=Regular /usr/share/fonts/TTF/GentiumPlus-R.ttf: Gentium Plus:style=Regular /usr/share/fonts/TTF/GentiumPlus-I.ttf: Gentium Plus:style=Italic The package 'ttf-gentium-plus' was installed when I installed 'sile-git'. I am using 'sile' because 'sile-git' doesn't work at all, either compiled from sources or from installed package 'sile-git'. [compiled from sources] ~/tmp> /usr/local/src/sile/sile hello /usr/bin/lua: /usr/local/src/sile/sile:10: module 'core/sile' not found: or [from installed packages 'sile-git'] Error detected: /usr/share/sile/core/inputs-xml.lua:11: not well-formed (invalid token)

#### vgivanovic commented on 2017-02-20 18:17 (UTC) (edited on 2017-02-20 18:20 (UTC) by vgivanovic)

Any chance we could get the 'examples' directory included in the package? Not including it means that people have to clone 'sile' in addition to installing 'sile-git'.

#### greenmanalishi commented on 2016-10-12 19:09 (UTC)

@caleb thank you for the explanation

#### alerque commented on 2016-10-03 17:04 (UTC)

@greenmanalishi This build is tracking my fork because I sometimes include stuff there that fixes issues specific to Archlinux before the build is fixed across other systems. This hasn't been happening as much recently but it was a regular thing for a while. If you look at the commit history for SILE you'll see a lot of the most recent activity on the upstream has been commits from me, and I have push access to the official git repository. The forks are rarely out of sync, but when they are the chances are my repo is going to have the latest build known to work on Archlinux.

#### haawda commented on 2015-11-20 18:35 (UTC)

To compile this, I needed a patch. diff --git a/src/fontmetrics.c b/src/fontmetrics.c index 55a6c0a..5f8b97d 100644 --- a/src/fontmetrics.c +++ b/src/fontmetrics.c @@ -1,5 +1,5 @@ #include <hb.h> -#if HB_VERSION_ATLEAST(1,0,7) +#if HB_VERSION_ATLEAST(1,1,1) #define USE_HARFBUZZ_METRICS #include <hb-ft.h> #else And a license file is needed, as MIT is a custom license. Also the package installs to /usr/local, which is forbidden by Arch Linux packaging guidelines. # Maintainer: Caleb Maclennan <caleb@alerque.com> # Contributor: Adrián Pérez de Castro <aperez@igalia.com> pkgname=sile-git pkgdesc='Modern typesetting system inspired by TeX' pkgver=0.9.3_185_g6ab82c2 _branch='master' pkgrel=1 arch=(any) url='http://www.sile-typesetter.org/' license='MIT' provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("git://github.com/simoncozens/${pkgname%-git}.git#branch=${_branch}" patch) sha512sums=('SKIP' 'SKIP') depends=('lua-lpeg' 'lua-expat' 'lua-filesystem' 'fontconfig' 'harfbuzz' 'icu') options=("!makeflags") pkgver() { cd "$srcdir/${pkgname%-git}" git describe --long --tags | sed 's/^v//;s/-/_/g' } prepare () { cd "$srcdir/${pkgname%-git}" patch -Np1 < $srcdir/patch } build () { cd "$srcdir/${pkgname%-git}" ./bootstrap.sh ./configure --prefix=/usr make } package () { cd "$srcdir/${pkgname%-git}" make install DESTDIR="${pkgdir}/" install -Dm644 LICENSE "$pkgver"/usr/share/licenses/$pkgname/LICENSE }

#### haawda commented on 2015-07-07 10:55 (UTC)

Builds fine against the lua-filesystem package provided in the [community]-repo.