summaryrefslogtreecommitdiff
path: root/repo/system/brotli/brotli.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-22 17:47:09 +0100
committerdavidovski <david@davidovski.xyz>2022-05-22 17:47:09 +0100
commit79062a39e9bcb9731adbacd0bd9bcd0b59d19d0a (patch)
treef67d3b58f0c4387e7248967c491442afcee0cd06 /repo/system/brotli/brotli.xibuild
parent2f6c333a5bcef47d9fee59f180fa827cb24290d4 (diff)
fixes to allow for full build
Diffstat (limited to 'repo/system/brotli/brotli.xibuild')
-rw-r--r--repo/system/brotli/brotli.xibuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/repo/system/brotli/brotli.xibuild b/repo/system/brotli/brotli.xibuild
index dbdd973..d45bb4b 100644
--- a/repo/system/brotli/brotli.xibuild
+++ b/repo/system/brotli/brotli.xibuild
@@ -6,16 +6,21 @@ DEPS="musl"
SOURCE=https://github.com/google/brotli
DESC="A generic-purpose lossless compression algorithm"
+prepare () {
+ sed -i 's,/usr/bin/env bash,/bin/sh,' tests/*.sh
+ sh ./bootstrap
+}
+
build () {
- mkdir out && cd out
- ../configure-cmake
+ ./configure \
+ --prefix=/usr \
+ --disable-static
make
}
check () {
- make test
+ make check
}
package () {
make DESTDIR=$PKG_DEST install
- mv $PKG_DEST/usr/local/* $PKG_DEST/usr/
}