blob: 55feb8c1050a292fa3659416aeb6d85af8eca121 (
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
119
120
121
122
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=casile
pkgver=0.14.5
pkgrel=1
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
lua
luarocks
m4
make
mdbook
moreutils
nodejs
pandoc-sile-git
parallel
pcre
pdftk
perl
podofo-tools
poppler
povray
procps-ng
python
ripgrep
sassc
sile
sqlite
tex-gyre-fonts
texlive-basic
texlive-binextra
ttf-hack
xcftools
xorg-server-xvfb
yq
zint
zola
zsh)
_luadeps=(colors-git
cosmo
decasify
filesystem
yaml)
_perldeps=(yaml
yaml-merge-simple)
_pydeps=(isbnlib
deepl
pandocfilters
pantable
ruamel-yaml
usfm2osis-cw-git)
_siledeps=(decasify)
depends+=("${_luadeps[@]/#/lua-}"
"${_luadeps[@]/#/lua51-}"
"${_perldeps[@]/#/perl-}"
"${_pydeps[@]/#/python-}"
"${_siledeps[@]/#/sile-}")
makedepends=(cargo
node-prune
yarn)
_archive="$pkgname-$pkgver"
source=("$url/releases/download/v$pkgver/$_archive.tar.zst"{,.asc})
sha256sums=('f70b2d3218a7fb88b1cab4ef49f8613159dfbdb8790b26d0604c3e82827dc1f2'
'SKIP')
validpgpkeys=('9F377DDB6D3153A48EB3EB1E63CC496475267693') # Caleb Maclennan <caleb@alerque.com> (@alerque)
prepare() {
cd "$_archive"
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
export CARGO_FEATURE_FLAGS==--offline
export LIBGIT2_SYS_USE_PKG_CONFIG=1
CFLAGS+=' -ffat-lto-objects'
}
build() {
_srcenv
export YARN_CACHE_FOLDER="$srcdir/node_modules"
./configure --prefix "/usr"
make
}
check() {
_srcenv
make check
}
package () {
depends+=(libgit2.so)
cd "$_archive"
make DESTDIR="$pkgdir" install
node-prune "$pkgdir/usr/share/casile/node_modules"
}
|