diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..70d27b0592d8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = sile + pkgdesc = Modern typesetting system inspired by TeX + pkgver = 0.9.0 + pkgrel = 1 + url = http://www.sile-typesetter.org/ + arch = any + license = custom + depends = lua51-lpeg + depends = lua51-lgi + depends = lua51-stdlib + depends = lua51-expat + depends = lua51-inspect + depends = lua51-epnf + depends = lua51-repl + depends = lua51-cassowary + source = https://github.com/simoncozens/sile/archive/v0.9.0.tar.gz + sha512sums = 2752ba3f08e814fede187e90b3c0ea559c682fabef085affc6afe0077b0c85195484b6dfe722040321f75f33dc01a876d15c5b7e37e6ca485ee1901b30e04195 + +pkgname = sile + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b5f64d59f52e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Adrián Pérez de Castro <aperez@igalia.com> +pkgname='sile' +pkgdesc='Modern typesetting system inspired by TeX' +pkgver='0.9.0' +pkgrel='1' +arch='any' +url='http://www.sile-typesetter.org/' +license='custom' +source=("https://github.com/simoncozens/sile/archive/v${pkgver}.tar.gz") +sha512sums=('2752ba3f08e814fede187e90b3c0ea559c682fabef085affc6afe0077b0c85195484b6dfe722040321f75f33dc01a876d15c5b7e37e6ca485ee1901b30e04195') +depends=('lua51-lpeg' + 'lua51-lgi' + 'lua51-stdlib' + 'lua51-expat' + 'lua51-inspect' + 'lua51-epnf' + 'lua51-repl' + 'lua51-cassowary') + +prepare () { + cd "${pkgname}-${pkgver}" + cat > sile.sh <<-EOF + #! /bin/sh + export SILE_PATH=/usr/lib/sile + exec /usr/bin/lua5.1 /usr/lib/sile/sile "\$@" + EOF +} + +package () { + cd "${pkgname}-${pkgver}" + + # Program. This is taken from the "install.lua" script + install -m755 -d "${pkgdir}/usr/lib/sile" + cp -ar classes core packages languages sile \ + "${pkgdir}/usr/lib/sile" + install -Dm755 sile.sh "${pkgdir}/usr/bin/sile" + + # Documentation and examples + for file in README.md ROADMAP documentation/sile.pdf ; do + install -Dm644 "${file}" \ + "${pkgdir}/usr/share/doc/${pkgname}/${file}" + done + cp -ar examples "${pkgdir}/usr/share/doc/${pkgname}/" + + # License + install -Dm644 LICENSE \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |