blob: 4554c04413c8d2b44e7a81e959f45172622ffbb2 (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=fontship
pkgver=0.10.0
pkgrel=1
pkgdesc='A font development toolkit and collaborative work flow'
arch=(any)
url="https://github.com/theleagueof/$pkgname"
license=(GPL-3.0-only)
depends=(diffutils
entr
font-v
gftools
git
jq
libarchive
libgit2
make
psautohint
python
python-babelfont
python-brotli # fonttools optdepends
python-cffsubr # ufo2ft optdepends
python-fontmake
python-fonttools
python-fs # fonttools optdepends
python-lxml # fonttools optdepends
python-pcpp
python-skia-pathops # ufo2ft optdepends
python-ufo2ft
python-ufonormalizer
python-unicodedata2 # fonttools optdepends
python-vttlib
python-zopfli # fonttools optdepends
sfd2ufo
sfdnormalize
sfnt2woff-zopfli
ttfautohint
woff2
zsh)
makedepends=(cargo)
_archive="$pkgname-$pkgver"
source=("$url/releases/download/v$pkgver/$_archive.tar.zst"{,.asc})
sha256sums=('5c0079c6134db3acad39cfdfe92b2a65f813b9a226d63a396d87b42a7ef10f4b'
'SKIP')
validpgpkeys=('9F377DDB6D3153A48EB3EB1E63CC496475267693') # Caleb Maclennan <caleb@alerque.com> (@alerque)
prepare() {
cd "$_archive"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
_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
./configure --prefix="/usr"
make
}
check() {
_srcenv
make check
}
package() {
depends+=(libgit2.so)
cd "$_archive"
make DESTDIR="$pkgdir" install
}
|