summaryrefslogtreecommitdiff
path: root/repo/woff2/woff2.xibuild
blob: 1a94e9b6a028bd42395f706b30403b052a9ea819 (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
#!/bin/sh

NAME="woff2"
DESC="Web Open Font Format 2 reference implementation"

MAKEDEPS="brotli cmake"

PKG_VER=1.0.2
SOURCE="https://github.com/google/woff2/archive/v$PKG_VER.tar.gz"

ADDITIONAL="
dont-set-rpath.patch
install-executables.patch
"

prepare () {
    apply_patches
}

build() {
	cmake . \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_SKIP_BUILD_RPATH=ON
	make
}

package() {
	make DESTDIR="$PKG_DEST" PREFIX=/usr install
}