blob: 14d44e88a1283afbd0aef66bb66a2545033f26f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=casile
pkgver=0.13.1
pkgrel=2
pkgdesc='Caleb’s SILE publishing toolkit'
arch=(x86_64)
url="https://github.com/sile-typesetter/$pkgname"
license=(AGPL-3.0-only)
depends=(bc
bcprov # pdftk optdepend is required
curl
decasify
entr
epubcheck
fontconfig
gcc-libs # libgcc_s.so
ghostscript
git
git-warp-time
glibc # libc.so libm.so
imagemagick
inetutils
inkscape
java-commons-lang # pdftk optdepend is required
jq
kindlegen
libertinus-font
libgit2 libgit2.so
lua
luarocks
m4
make
mdbook
moreutils
nodejs
pandoc-sile-git
pcre
pdftk
perl
podofo-tools
poppler
povray
procps-ng
python
sassc
sile
sqlite
tex-gyre-fonts
texlive-basic
texlive-binextra
ttf-hack
xcftools
xorg-server-xvfb
yq
zint
zola
zsh)
_luadeps=(colors-git
decasify
filesystem
yaml)
_perldeps=(yaml
yaml-merge-simple)
_pydeps=(isbnlib
deepl
pandocfilters
pantable
ruamel-yaml
usfm2osis-cw-git)
depends+=("${_luadeps[@]/#/lua-}"
"${_luadeps[@]/#/lua51-}"
"${_perldeps[@]/#/perl-}"
"${_pydeps[@]/#/python-}")
makedepends=(autoconf-archive
cargo
clang
mold
node-prune
yarn)
_archive="$pkgname-$pkgver"
source=("$url/releases/download/v$pkgver/$_archive.tar.xz")
sha256sums=('f1bdc08ada3286e6113c1bde96fb58fcbc9ee0ae9106571dfdade6c69773235f')
prepare() {
cd "$_archive"
sed Makefile.am -i \
-e 's/yarn \(install\|run\)/yarn --offline \1/' \
-e 's/cargo \(build\|install\|test\)/cargo --offline \1/'
autoreconf
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
export YARN_CACHE_FOLDER="$srcdir/node_modules"
yarn install --production --frozen-lockfile
}
_srcenv() {
cd "$_archive"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
}
build() {
_srcenv
export YARN_CACHE_FOLDER="$srcdir/node_modules"
./configure --prefix "/usr"
make
}
check() {
_srcenv
make check
}
package () {
cd "$_archive"
make DESTDIR="$pkgdir" install
node-prune "$pkgdir/usr/share/casile/node_modules"
}
|